|Summary:||New port: emulators/pcem Accurate PC-compatible emulator|
|Product:||Ports & Packages||Reporter:||Salvador Pardiñas <darkfm>|
|Component:||Individual Port(s)||Assignee:||Kurt Jaeger <pi>|
|Severity:||Affects Only Me||CC:||ak, ktullavik, pi|
Description Salvador Pardiñas 2019-04-19 03:20:09 UTC
Created attachment 203782 [details] Port patch PCem is a PC and PC-compatible emulator with support ranging from the original IBM PC to Socket 7 motherboards. This port allows it to be packaged on FreeBSD (using a patch that has already been submitted as a pull request). Patch summary: - Set include and library paths
Comment 1 Kurt Jaeger 2019-05-04 08:34:03 UTC
Created attachment 204211 [details] patch-v2 This patch is cleaned up from portlint -AC warnings, and a bit simplified. It still fails in poudriere with this: checking for off64_t... no ./configure: 4330: Syntax error: word unexpected (expecting ")") I'll investigate further.
Comment 2 Kurt Jaeger 2019-05-04 12:42:51 UTC
Created attachment 204215 [details] patch-v3 This version builds on 13 and 11.2, but fails on 12.0 with: checking for glGetError in -lGL... yes checking for alGetError in -lopenal... no You need to install the OpenAL library. exit: Illegal number: -1 ===> Script "configure" failed unexpectedly.
Comment 3 Kurt Jaeger 2019-05-04 12:46:16 UTC
configure:5500: cc -o conftest -O3 -I/usr/local/include -fstack-protector-strong -L/usr/local/lib conftest.c -lopenal -lGL -lpthread >&5 /usr/bin/ld: error: cannot preempt symbol: alGetError >>> defined in /usr/local/lib/libopenal.so >>> referenced by conftest.c >>> /tmp/conftest-f6e9a9.o:(main) cc: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 4 Kurt Jaeger 2019-05-04 12:52:59 UTC
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219524 for pointers to a solution for this. Testbuilding right now.
Comment 5 Kurt Jaeger 2019-05-04 13:22:24 UTC
Created attachment 204216 [details] patch-v4 This version builds on 13/12/11.2 amd64. Please comment if it's OK to commit this version.
Comment 6 ktullavik 2019-05-05 03:20:55 UTC
Created attachment 204222 [details] Log showing after failing with "Unsupported CPU".
Comment 7 ktullavik 2019-05-05 03:23:42 UTC
On up to date 13, configure fails for me with "Unsupported CPU". If it's picky about cpu that's fine, but I suspect it's just a bug. Attached my config.log. CPU: Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz (2494.28-MHz K8-class CPU) Origin="GenuineIntel" Id=0x306c3 Family=0x6 Model=0x3c Stepping=3 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0x7fdafbbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM> AMD Features2=0x21<LAHF,ABM> Structured Extended Features=0x27ab<FSGSBASE,TSCADJ,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,NFPUSG> XSAVE Features=0x1<XSAVEOPT> VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics
Comment 8 Kurt Jaeger 2019-05-05 07:19:16 UTC
(In reply to ktullavik from comment #7) what does uname -a show ?
Comment 9 ktullavik 2019-05-05 11:18:01 UTC
(In reply to Kurt Jaeger from comment #8) # uname -a FreeBSD galois 13.0-CURRENT FreeBSD 13.0-CURRENT e4bfebd8e9e(master) GALOIS amd64
Comment 10 ktullavik 2019-05-05 17:00:29 UTC
Looking at it again. It seems I either used the original patch or otherwise somehow missed the bits that explicitly sets CPU=x86_64 in the updated patch. Sorry for the trouble. I must not try to help so late at night.
Comment 11 Kurt Jaeger 2019-05-05 19:13:12 UTC
Did you do run-tests ? All fine ?
Comment 12 commit-hook 2019-05-06 03:13:40 UTC
A commit references this bug: Author: pi Date: Mon May 6 03:13:23 UTC 2019 New revision: 500881 URL: https://svnweb.freebsd.org/changeset/ports/500881 Log: New port: emulators/pcem: PC-Compatible low-level emulator striving for accuracy A very accurate (and not very fast) PC and PC-compatible emulator. Support currently ranges from the original IBM PC to Socket 7 motherboards. It also supports a wide range of peripherals, including Voodoo Graphics! WWW: https://www.pcem-emulator.co.uk PR: 237376 Submitted by: Salvador Pardinas <email@example.com> Reviewed by: tobik Changes: head/emulators/Makefile head/emulators/pcem/ head/emulators/pcem/Makefile head/emulators/pcem/distinfo head/emulators/pcem/files/ head/emulators/pcem/files/patch-configure.ac head/emulators/pcem/pkg-descr
Comment 13 Kurt Jaeger 2019-05-06 03:13:51 UTC
Committed, thanks to all involved!
Comment 14 ktullavik 2019-05-06 03:30:23 UTC
Just got around to testing a little. It segfaults too often to be usable, and there is seemingly multiple other problems as well. But I guess this PR is not the right place anymore. Have anyone done anything beyond booting into a bios?
Comment 15 Alex Kozlov 2019-05-06 06:58:28 UTC
Created attachment 204234 [details] Some improvements Thanks. I've tried to port v13.1, but then pcem was practically unusable, it crashed constantly. I've attached patch with some improvements: - Remove PATCHDIR redefinition, it's unnecessary. - Add amd64 cpu to x86_64 case - Make LOCALBASE clean and remove configure.ac patching and USES=autoreconf