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> | ||||||||||||||
Status: | Closed FIXED | ||||||||||||||||
Severity: | Affects Only Me | CC: | ak, ktullavik, pi | ||||||||||||||
Priority: | --- | ||||||||||||||||
Version: | Latest | ||||||||||||||||
Hardware: | Any | ||||||||||||||||
OS: | Any | ||||||||||||||||
Attachments: |
|
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.
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.
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)
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219524 for pointers to a solution for this. Testbuilding right now. 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.
Created attachment 204222 [details]
Log showing after failing with "Unsupported CPU".
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 (In reply to ktullavik from comment #7) what does uname -a show ? (In reply to Kurt Jaeger from comment #8) # uname -a FreeBSD galois 13.0-CURRENT FreeBSD 13.0-CURRENT e4bfebd8e9e(master) GALOIS amd64 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. Did you do run-tests ? All fine ? 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 <darkfm@vera.com.uy> 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 Committed, thanks to all involved! 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? 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
|
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