MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

Ashura-X
MAME Compiler!
Reged: 01/22/04
Posts: 408
Send PM


Issues compiling latest MAME source
#394634 - 08/07/22 05:01 PM


I´ve just tried on Win10 x64, Win7 and latest MACOS operational system and still got a lot of errors when finishing the main .exe compile and no luck.

Would anyone gimme an idea about it?


Code:

Compiling generated/mame/mame/drivlist.cpp...
Linking mame.exe...
D:/compile/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../../mingw-gcc/bin/x64/Release/libemu.a(emumem_aspace.o):emumem_aspace.:(.text+0x7fd): undefined reference to `vtable for address_space'
D:/compile/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../../mingw-gcc/bin/x64/Release/libemu.a(emumem_aspace.o):emumem_aspace.:(.text+0xa9e): undefined reference to `vtable for address_space'
D:/compile/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../../mingw-gcc/bin/x64/Release/libemu.a(emumem_aspace.o):emumem_aspace.:(.text+0xb04): undefined reference to `vtable for std::_Sp_counted_ptr_inplace, (__gnu_cxx::_Lock_policy)2>'
D:/compile/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../../mingw-gcc/bin/x64/Release/libemu.a(emumem_aspace.o):emumem_aspace.:(.text+0x1bc8): undefined reference to `vtable for std::_Sp_counted_ptr_inplace, (__gnu_cxx::_Lock_policy)2>'
D:/compile/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../../mingw-gcc/bin/x64/Release/libemu.a(emumem_aspace.o):emumem_aspace.:(.text$_ZN22address_space_specificILi1ELi3ELin3ELN4util10endiannessE1EED1Ev[_ZN22address_space_specificILi1ELi3ELin3ELN4util10endiannessE1EED1Ev]+0x9): undefined reference to `vtable for address_space_specific<1, 3, -3, (util::endianness)1>'
D:/compile/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../../mingw-gcc/bin/x64/Release/libemu.a(emumem_aspace.o):emumem_aspace.:(.text$_ZN22address_space_specificILi1ELi3ELin3ELN4util10endiannessE0EED1Ev[_ZN22address_space_specificILi1ELi3ELin3ELN4util10endiannessE0EED1Ev]+0x9): undefined reference to `vtable for address_space_specific<1, 3, -3, (util::endianness)0>'
D:/compile/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../../mingw-gcc/bin/x64/Release/libemu.a(emumem_aspace.o):emumem_aspace.:(.text$_ZN22address_space_specificILi0ELi3ELin3ELN4util10endiannessE1EED1Ev[_ZN22address_space_specificILi0ELi3ELin3ELN4util10endiannessE1EED1Ev]+0x9): undefined reference to `vtable for address_space_specific<0, 3, -3, (util::endianness)1>'




Olivier Galibert
Semi-Lurker
Reged: 09/21/03
Posts: 398
Send PM


Re: Issues compiling latest MAME source new [Re: Ashura-X]
#394638 - 08/07/22 10:57 PM


Link with lld.

https://docs.mamedev.org/initialsetup/compilingmame.html#linking-using-the-llvm-linker



Ashura-X
MAME Compiler!
Reged: 01/22/04
Posts: 408
Send PM


Re: Issues compiling latest MAME source new [Re: Olivier Galibert]
#394639 - 08/08/22 12:10 AM


Hi Galibert how are you doing? I hope all ok there !

Thank you for the support and tip !
It´s worked and in a very fast way than the old GCC method if take ages to compile all the project here!

make LDFLAGS=-fuse-ld=lld SUBTARGET=arcade



VasiliyFamiliya
MAME Fan
Reged: 08/18/17
Posts: 92
Send PM


Re: Issues compiling latest MAME source new [Re: Ashura-X]
#394898 - 10/03/22 02:28 PM


My MSYS2 gives this error:

Code:

user@DESKTOP-VEIGDIO MSYS ~/mame
$ make
GCC detected
Creating obj/Release
Creating obj/Release/src/host
Creating obj/Release/src/host/lua-5.3.0/src
Creating ../../bin/windows
lapi.c
/bin/sh: line 1: gcc: command not found
make[1]: *** [genie.make:284: obj/Release/src/host/lua-5.3.0/src/lapi.o] Error 127
make: *** [makefile:1527: 3rdparty/genie/bin/windows/genie.exe] Error 2



Althought I installed all necessary packages beforehand.



Ashura-X
MAME Compiler!
Reged: 01/22/04
Posts: 408
Send PM


Re: Issues compiling latest MAME source new [Re: VasiliyFamiliya]
#394899 - 10/03/22 04:10 PM


Did you tried to clean your latest /obj folder and do a clean compile?


Code:

make clean



Also, tried to do an update in to latest compile tools with pacman -Syu option?



VasiliyFamiliya
MAME Fan
Reged: 08/18/17
Posts: 92
Send PM


Re: Issues compiling latest MAME source new [Re: Ashura-X]
#394900 - 10/03/22 06:46 PM


Where MSYS usually stores an obj directories?



Ashura-X
MAME Compiler!
Reged: 01/22/04
Posts: 408
Send PM


Re: Issues compiling latest MAME source new [Re: VasiliyFamiliya]
#394901 - 10/03/22 08:20 PM


Just do the make clean command in your prompt and all content in to obj folder will be delete.



VasiliyFamiliya
MAME Fan
Reged: 08/18/17
Posts: 92
Send PM


Re: Issues compiling latest MAME source new [Re: Ashura-X]
#394906 - 10/04/22 02:38 AM


> Also, tried to do an update in to latest compile tools with pacman -Syu option?

There's another error:

Code:

error: failed retrieving file 'mame.db.sig' from repo.mamedev.org : The requested URL returned error: 404




Ashura-X
MAME Compiler!
Reged: 01/22/04
Posts: 408
Send PM


Re: Issues compiling latest MAME source new [Re: VasiliyFamiliya]
#394907 - 10/04/22 02:53 AM


Which version of MinGW Mame tools are you using?
The last one?



VasiliyFamiliya
MAME Fan
Reged: 08/18/17
Posts: 92
Send PM


Re: Issues compiling latest MAME source new [Re: Ashura-X]
#394908 - 10/04/22 03:05 AM


> Which version of MinGW Mame tools are you using?
> The last one?

20220904



Ashura-X
MAME Compiler!
Reged: 01/22/04
Posts: 408
Send PM


Re: Issues compiling latest MAME source new [Re: VasiliyFamiliya]
#394909 - 10/04/22 03:41 AM


Well.. do a make clean and after that the command make -j3 STRIP_SYMBOLS=1 REGENIE=1



VasiliyFamiliya
MAME Fan
Reged: 08/18/17
Posts: 92
Send PM


Re: Issues compiling latest MAME source new [Re: Ashura-X]
#394910 - 10/04/22 05:00 AM



Code:

$ make -j3 STRIP_SYMBOLS=1 REGENIE=1
GCC detected
Creating obj/Release
Converting translation language/Afrikaans/strings.po...
Creating obj/Release/src/host
Creating obj/Release/src/host/lua-5.3.0/src
Converting translation language/Albanian/strings.po...
os_chdir.c
/bin/sh: line 1: gcc: command not found
make[1]: *** [genie.make:416: obj/Release/src/host/os_chdir.o] Error 127
make: *** [makefile:1527: 3rdparty/genie/bin/windows/genie.exe] Error 2
make: *** Waiting for unfinished jobs....




VasiliyFamiliya
MAME Fan
Reged: 08/18/17
Posts: 92
Send PM


Some source files are "cursed". new [Re: Ashura-X]
#398159 - 03/16/24 03:35 PM


After reaching them, the MAME compilation process are stucks on both officially recomended copy of MSYS, WSL and Ubuntu virtual machine. The first of such files is emu/emumem_aspace.cpp.

Edited by VasiliyFamiliya (03/17/24 04:58 AM)



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2261
Send PM


Re: Some source files are "cursed". new [Re: VasiliyFamiliya]
#398167 - 03/18/24 06:08 AM


> After reaching them, the MAME compilation process are stucks on both officially
> recomended copy of MSYS, WSL and Ubuntu virtual machine. The first of such files is
> emu/emumem_aspace.cpp.

Nah, they compile just fine. They require quite a bit of memory due to the amount of templates involved, but the reality is you're just too dumb to actually understand any of this.

Consider never looking at MAME again and doing something that's more your speed, like eating crayons.


Pages: 1

MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Pi 
0 registered and 18 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 545