Created attachment 203782 [details]
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).
- Set include and library paths
Created attachment 204211 [details]
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]
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
cc: error: linker command failed with exit code 1 (use -v to see invocation)
for pointers to a solution for this. Testbuilding right now.
Created attachment 204216 [details]
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
Structured Extended Features=0x27ab<FSGSBASE,TSCADJ,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,NFPUSG>
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:
Date: Mon May 6 03:13:23 UTC 2019
New revision: 500881
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!
Submitted by: Salvador Pardinas <email@example.com>
Reviewed by: tobik
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]
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