Trouble compiling latest source on Windows 10 with MSYS mingw32

Support and general discussion.
Post Reply
User avatar
mforan89
Posts: 12
Joined: Sat 10 May, 2014 3:30 pm

Trouble compiling latest source on Windows 10 with MSYS mingw32

Post by mforan89 » Sun 22 Mar, 2020 9:54 pm

I was able to run the configure script ok with the following command line:

Code: Select all

./configure --enable-networking 
When I try to run make; partway through the compile process I get the following:

Code: Select all

D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-386_dynarec.o:386_dynarec.c:(.text+0x1e57): undefined reference to `x87_timings'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-386_dynarec.o:386_dynarec.c:(.text+0x1eda): undefined reference to `x87_timings'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-386_dynarec.o:386_dynarec.c:(.text+0x1f9c): undefined reference to `x87_timings'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-386_dynarec.o:386_dynarec.c:(.text+0x2039): undefined reference to `x87_timings'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-386_dynarec.o:386_dynarec.c:(.text+0x20d7): undefined reference to `x87_timings'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-386_dynarec.o:386_dynarec.c:(.text+0x2157): more undefined references to `x87_timings' follow
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-cpu.o:cpu.c:(.text+0x15e3): undefined reference to `x87_timings_8087'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-cpu.o:cpu.c:(.text+0x1601): undefined reference to `x87_timings'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-cpu.o:cpu.c:(.text+0x1606): undefined reference to `x87_timings_387'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-cpu.o:cpu.c:(.text+0x1651): undefined reference to `x87_timings'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-cpu.o:cpu.c:(.text+0x1656): undefined reference to `x87_timings_287'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-cpu.o:cpu.c:(.text+0x1671): undefined reference to `x87_timings'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-cpu.o:cpu.c:(.text+0x1676): undefined reference to `x87_timings_486'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-hdd.o:hdd.c:(.data+0x434): undefined reference to `scsi_ibm_device'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-model.o:model.c:(.text+0x1921): undefined reference to `vl82c480_init'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-model.o:model.c:(.text+0x1264): undefined reference to `cs8230_init'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-model.o:model.c:(.text+0x14a4): undefined reference to `scamp_init'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-model.o:model.c:(.data+0x1c2c): undefined reference to `f82c710_upc_device'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-sound.o:sound.c:(.data+0x580): undefined reference to `azt2316a_device'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-sound.o:sound.c:(.data+0x5dc): undefined reference to `azt1605_device'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-sound_sb_dsp.o:sound_sb_dsp.c:(.text+0x2cc5): undefined reference to `azt2316a_enable_wss'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-sound_sb_dsp.o:sound_sb_dsp.c:(.text+0x2d4b): undefined reference to `azt2316a_enable_wss'
D:/dev/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.3.0/../../../../i686-w64-mingw32/bin/ld.exe: pcem-video.o:video.c:(.data+0xcf8): undefined reference to `mystique_device'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:901: pcem.exe] Error 1
make[1]: Leaving directory '/home/mfora/Emulators/pcem/src'
make: *** [Makefile:365: all-recursive] Error 1
Any help would be greatly appreciated.

User avatar
SarahWalker
Site Admin
Posts: 1836
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Trouble compiling latest source on Windows 10 with MSYS mingw32

Post by SarahWalker » Sun 22 Mar, 2020 10:29 pm

The configure script in the bitbucket repo is usually out of date. Always run autoreconf on any checkout.

User avatar
mforan89
Posts: 12
Joined: Sat 10 May, 2014 3:30 pm

Re: Trouble compiling latest source on Windows 10 with MSYS mingw32

Post by mforan89 » Sun 22 Mar, 2020 11:00 pm

Ok, I got that much working and it compiled successfully. However, when I copy the relevant dlls to the same directory as the exe I get an error saying the application was unable to start correctly.

User avatar
mforan89
Posts: 12
Joined: Sat 10 May, 2014 3:30 pm

Re: Trouble compiling latest source on Windows 10 with MSYS mingw32

Post by mforan89 » Mon 23 Mar, 2020 5:13 pm

Bump

User avatar
SarahWalker
Site Admin
Posts: 1836
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Trouble compiling latest source on Windows 10 with MSYS mingw32

Post by SarahWalker » Mon 23 Mar, 2020 9:44 pm

That's a pretty vague error message.

User avatar
omarsis81
Posts: 806
Joined: Thu 17 Dec, 2015 6:20 pm

Re: Trouble compiling latest source on Windows 10 with MSYS mingw32

Post by omarsis81 » Mon 23 Mar, 2020 10:07 pm

mforan89 wrote:
Sun 22 Mar, 2020 11:00 pm
Ok, I got that much working and it compiled successfully. However, when I copy the relevant dlls to the same directory as the exe I get an error saying the application was unable to start correctly.
I think I had the same problem.
Look here: http://pcem-emulator.co.uk/phpBB3/viewtopic.php?f=3&t=845

User avatar
mforan89
Posts: 12
Joined: Sat 10 May, 2014 3:30 pm

Re: Trouble compiling latest source on Windows 10 with MSYS mingw32

Post by mforan89 » Tue 24 Mar, 2020 1:39 am

omarsis81 wrote:
Mon 23 Mar, 2020 10:07 pm
mforan89 wrote:
Sun 22 Mar, 2020 11:00 pm
Ok, I got that much working and it compiled successfully. However, when I copy the relevant dlls to the same directory as the exe I get an error saying the application was unable to start correctly.
I think I had the same problem.
Look here: http://pcem-emulator.co.uk/phpBB3/viewtopic.php?f=3&t=845
Thanks for that! I completely forgot about that guide. I'm able to launch it without any errors now.

Post Reply