|
|
Joined: Sep 2021
Posts: 38 Likes: 2
Member
|
OP
Member
Joined: Sep 2021
Posts: 38 Likes: 2 |
Hello,
I've tried to compile MAME on Slackware 15 with gcc 11.2 that is its standard compiler. Everything seemed to go well but then ld skipped a number of incompatible libraries.
It's my first compiling MAME so I'm indeed missing some information on the prerequisites to compile. I know there is a maintainer for Slackware but seems to be unreachable.
The existing threads here seems to be outdated. Any suggestions would be very appreciated, many thanks.
|
|
|
|
Joined: Mar 2001
Posts: 17,215 Likes: 234
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,215 Likes: 234 |
Can you paste the actual errors you're seeing? GCC 11 is a supported compiler, although probably not too many people use it now.
|
|
|
|
Joined: Sep 2021
Posts: 38 Likes: 2
Member
|
OP
Member
Joined: Sep 2021
Posts: 38 Likes: 2 |
Can you paste the actual errors you're seeing? GCC 11 is a supported compiler, although probably not too many people use it now. It's something like: /usr/bin/ld: skipping incompatible <libname>.so.<number> To paste the exact errors I guess I should run make again, it took three hours. I need to find that time again. Unless I can just run ld but I don't know against which file(s). Sorry, I'm a beginner
|
|
|
|
Joined: Mar 2001
Posts: 17,215 Likes: 234
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,215 Likes: 234 |
If you just run make again it should skip any work it's already done. Also, add the -jX parameter to make and it goes much faster. X is the number of CPU cores you want to throw at it (usually all of them that your system has, but if you want the machine to be usable while the make runs 1 or 2 less is a good idea).
|
|
|
|
Joined: Sep 2021
Posts: 38 Likes: 2
Member
|
OP
Member
Joined: Sep 2021
Posts: 38 Likes: 2 |
This is the output: __________________________________________________________________________________________________________
bash-5.1$ make -j4
GCC 11.2.0 detected Compiling src/osd/modules/debugger/debugqt.cpp... Compiling src/osd/interface/inputseq.cpp... Compiling src/osd/modules/debugger/qt/breakpointswindow.cpp... Archiving libosd_sdl.a... Archiving libqtdbg_sdl.a... Linking mame... /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libdl.so when searching for -ldl /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libdl.a when searching for -ldl /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libdl.so when searching for -ldl /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libdl.a when searching for -ldl /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/librt.so when searching for -lrt /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/librt.a when searching for -lrt /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/librt.so when searching for -lrt /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/librt.a when searching for -lrt /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libSDL2.so when searching for -lSDL2 /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libSDL2.so when searching for -lSDL2 /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libpthread.so when searching for -lpthread /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libpthread.a when searching for -lpthread /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libpthread.so when searching for -lpthread /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libpthread.a when searching for -lpthread /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libutil.so when searching for -lutil /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libutil.a when searching for -lutil /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libutil.so when searching for -lutil /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libutil.a when searching for -lutil /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libGL.so when searching for -lGL /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libGL.so when searching for -lGL /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libasound.so when searching for -lasound /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libasound.so when searching for -lasound /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libQt5Widgets.so when searching for -lQt5Widgets /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libQt5Widgets.so when searching for -lQt5Widgets /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libQt5Gui.so when searching for -lQt5Gui /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libQt5Gui.so when searching for -lQt5Gui /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libQt5Core.so when searching for -lQt5Core /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libQt5Core.so when searching for -lQt5Core /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libpulse.so when searching for -lpulse /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libpulse.so when searching for -lpulse /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libX11.so when searching for -lX11 /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libX11.so when searching for -lX11 /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libXinerama.so when searching for -lXinerama /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libXinerama.so when searching for -lXinerama /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libXext.so when searching for -lXext /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libXext.so when searching for -lXext /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libXi.so when searching for -lXi /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libXi.so when searching for -lXi /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libSDL2_ttf.so when searching for -lSDL2_ttf /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libSDL2_ttf.so when searching for -lSDL2_ttf /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libfontconfig.so when searching for -lfontconfig /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libfontconfig.so when searching for -lfontconfig /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libfreetype.so when searching for -lfreetype /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libfreetype.so when searching for -lfreetype /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libstdc++.so when searching for -lstdc++ /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libstdc++.a when searching for -lstdc++ /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libstdc++.so when searching for -lstdc++ /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libstdc++.a when searching for -lstdc++ /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libm.so when searching for -lm /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libm.a when searching for -lm /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libm.so when searching for -lm /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libm.a when searching for -lm /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libc.a when searching for -lc /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libc.a when searching for -lc /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 /usr/bin/ld: skipping incompatible ../../../../../../../../../usr/X11R6/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 __________________________________________________________________________________________________________
About the first one:
bash-5.1$ locate libdl.so
/boot/initrd-tree/lib64/libdl.so.2 /lib/libdl.so.2 /lib64/libdl.so.2 /usr/lib/libdl.so /usr/lib64/libdl.so
|
|
|
|
Joined: Mar 2001
Posts: 17,215 Likes: 234
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,215 Likes: 234 |
That feels like a 32/64-bit mismatch. I don't know how Slackware handles that but on Fedora there are separate 32 and 64 bit versions of each library and you have to install the 64-bit versions to build 64-bit MAME.
|
|
|
|
Joined: Sep 2021
Posts: 38 Likes: 2
Member
|
OP
Member
Joined: Sep 2021
Posts: 38 Likes: 2 |
Thank you so much for inspiring me. Setting LD_LIBRARY_PATH did the trick.
|
|
|
|
Joined: Mar 2001
Posts: 17,215 Likes: 234
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,215 Likes: 234 |
Great! Glad I could get you going.
|
|
|
1 members (Lord Nightmare),
273
guests, and
1
robot. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics9,320
Posts121,929
Members5,074
|
Most Online1,283 Dec 21st, 2022
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|
|