Previous Thread
Next Thread
Print Thread
Page 19 of 44 1 2 17 18 19 20 21 43 44
Joined: Mar 2001
Posts: 17,258
Likes: 267
R
Very Senior Member
Very Senior Member
R Online: Content
Joined: Mar 2001
Posts: 17,258
Likes: 267
Fixed. For future reports, please follow the guidelines as we are unable to debug psychically:

Please attempt to reproduce with normal MAME/MESS (not UME, it's not supported by the SDL team). If it happens, state your Linux distro, architecture (x86, x64, PowerPC, ARM...), and gcc --version.

Last edited by R. Belmont; 09/20/14 02:28 AM.
Joined: Aug 2012
Posts: 74
Member
Member
Joined: Aug 2012
Posts: 74
I'm having trouble compiling the latest source.
Using the commandline:
Code
make -j5 TARGET=mess NOWERROR=1 PTR64=1 USE_NETWORK=1 sse4=1

Gives the following:

Code
/usr/bin/sh: objwindows64buildmakelist.exe: command not found
makefile:966: recipe for target 'obj/windows64/mess/mess/drivlist.c' failed
make: *** [obj/windows64/mess/mess/drivlist.c] Error 127
make: *** Waiting for unfinished jobs....

Why is it referencing the Linux bash shell?

If I try to continue, this happens:

Code
Linking mess64.exe...
obj/windows64/libemu.a(clifront.o):clifront.c:(.rdata$.refptr._ZN11driver_list14
s_driver_countE[.refptr._ZN11driver_list14s_driver_countE]+0x0): undefined refer
ence to `driver_list::s_driver_count'
obj/windows64/libemu.a(clifront.o):clifront.c:(.rdata$.refptr._ZN11driver_list16
s_drivers_sortedE[.refptr._ZN11driver_list16s_drivers_sortedE]+0x0): undefined r
eference to `driver_list::s_drivers_sorted'
C:/mingw/mingw64-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86_64-
w64-mingw32/bin/ld.exe: obj/windows64/libemu.a(clifront.o): bad reloc address 0x
0 in section `.rdata$.refptr._ZN11driver_list16s_drivers_sortedE[.refptr._ZN11dr
iver_list16s_drivers_sortedE]'
collect2.exe: error: ld returned 1 exit status
makefile:897: recipe for target 'mess64.exe' failed
make: *** [mess64.exe] Error 1

Any ideas?

Joined: Jan 2012
Posts: 892
Likes: 17
C
Senior Member
Senior Member
C Offline
Joined: Jan 2012
Posts: 892
Likes: 17
Maybe add SHELL=cmd to your command line.

Joined: Aug 2012
Posts: 74
Member
Member
Joined: Aug 2012
Posts: 74
That worked perfectly. Thanks! smile

Also, what changed in the source that SHELL=cmd is required for the Windows build? Just curious.

Joined: Jun 2014
Posts: 95
Likes: 3
P
Member
Member
P Offline
Joined: Jun 2014
Posts: 95
Likes: 3
I'm trying a clean build with the latest MinGW, but I also see the same problem with MSVC:
make.exe: *** No rule to make target 'obj/windowsd/MESS/MESS.o', needed by 'MESSd.exe'. Stop.
MAME builds without issue, and I have built MESS successfully on this system, but quite some time in the past.
It's the only file that won't build. I can build the mess.o manually by swapping the MAME and MESS .c files, and then asking MAME to build it, but obviously that's not how it's supposed to be.

Joined: Aug 2004
Posts: 1,458
Likes: 9
Very Senior Member
Very Senior Member
Joined: Aug 2004
Posts: 1,458
Likes: 9
Just built mess and messui at r32478 with standard tools, no problem (non-debug build). Looking at your error message it looks like you have TARGET=MESS instead of TARGET=mess. I believe the name of the target should be in lower case.

Joined: Jun 2014
Posts: 95
Likes: 3
P
Member
Member
P Offline
Joined: Jun 2014
Posts: 95
Likes: 3
Yes, that was exactly the problem. I had it in uppercase because the other variables are in uppercase. I should have read the .mak more closely. It's clear now.
Thanks.

Joined: Aug 2011
Posts: 22
Likes: 4
D
Member
Member
D Offline
Joined: Aug 2011
Posts: 22
Likes: 4
This is a description of a problem I had with the new always-enabled SDL2 MAME building and my fix for making it work.

OS: CentOS 6.5

There is no CentOS rpm for SDL2, but I used this rpm maker here :
https://github.com/danfoster/SDL

There is no CentOS rpm for SDL2_ttf, so I downloaded and built the code from here :
https://www.libsdl.org/projects/SDL_ttf/

mame64 built with no issues, but running the debugger caused crashes. Turns out the makefile was building with the correct Qt library, but dynamically linking to an incorrect .so. I have two versions of Qt insttaled, and somehow running mame64 was ignoring my LD_LIBRARY_PATH. This was because the script named 'sdl2-config' (which gets installed with sdl2) embedded /usr/lib64 as an RPATH in the binary. The script that shipped with SDL1, 'sdl-config' did no such thing.

So I edited sdl2-config, and removed all occurrences of '-rpath /usr/lib64.' Then I built SDL_ttf, and rebuild MAME, and it worked.

YMMV. Just letting you know my experience :-).

Joined: Mar 2001
Posts: 17,258
Likes: 267
R
Very Senior Member
Very Senior Member
R Online: Content
Joined: Mar 2001
Posts: 17,258
Likes: 267
Just build with SDL 1.2 if you're stuck on an outdated distro. It's not ideal, but the 1.2 codepath isn't going away until at least next year.

Joined: Dec 2012
Posts: 247
Likes: 1
L
Senior Member
Senior Member
L Offline
Joined: Dec 2012
Posts: 247
Likes: 1
Using official tools and Windows 8
Code
bash.exe: warning: could not find /tmp, please create!
/bin/sh: gcc: command not found
makefile:935: recipe for target 'obj/windows64/mame/drivers/goldstar.o' failed
make: *** [obj/windows64/mame/drivers/goldstar.o] Error 127
make: *** Waiting for unfinished jobs....
and then later
Code
Linking mess64.exe...
obj/windows64/libemu.a(clifront.o):clifront.c:(.rdata$.refptr._ZN11driver_list14s_driver_countE[.refptr._ZN11driver_list14s_driver_countE]+0x0): undefined reference to `driver_list::s_driver_count'
obj/windows64/libemu.a(clifront.o):clifront.c:(.rdata$.refptr._ZN11driver_list16s_drivers_sortedE[.refptr._ZN11driver_list16s_drivers_sortedE]+0x0): undefined reference to `driver_list::s_drivers_sorted'
C:/xx/mingw64-w64/bin/../lib/gcc/x86_64-w64-mingw32
/4.9.1/../../../../x86_64-w64-mingw32/bin/ld.exe: obj/windows64/libemu.a(clifront.o): bad reloc address 0x0 in section `.rdata$.refptr._ZN11driver_list16s_drivers_sortedE[.refptr._ZN11driver_list16s_drivers_sortedE]'
collect2.exe: error: ld returned 1 exit status
makefile:910: recipe for target 'mess64.exe' failed
make: *** [mess64.exe] Error 1

Last edited by LoganB; 11/04/14 07:32 PM.
Page 19 of 44 1 2 17 18 19 20 21 43 44

Link Copied to Clipboard
Who's Online Now
0 members (), 142 guests, and 0 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,355
Posts122,423
Members5,082
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Powered by UBB.threads™ PHP Forum Software 8.0.0