6

I've downloaded the SDL source SDL-1.2.14.zip from the libsdl website and gotten to the make step. When I ./configure, I have no issues. However, when I make, it gets what seems like a long way through the compilation process and dies with this output:

/bin/sh ./libtool --mode=compile gcc -g -O2  -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden  -I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/video/SDL_RLEaccel.c  -o build/SDL_RLEaccel.lo
libtool: compile:  gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/video/SDL_RLEaccel.c  -fno-common -DPIC -o build/.libs/SDL_RLEaccel.o
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:1168:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:1829:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:2566:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:2836:suffix or operands invalid for `movd'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:2934:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:3884:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:4433:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:4992:suffix or operands invalid for `movq'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:5207:suffix or operands invalid for `movd'
/var/folders/l_/_b6srsss7sggnnclplzx59280000gn/T//ccG8MUwb.s:5307:suffix or operands invalid for `movq'
make: *** [build/SDL_RLEaccel.lo] Error 1

I've tried everything I could think of and done what I think is a fair amount of searching on this subject, but can't find anything that looks closely related.

Has anyone tried compiling SDL for Lion and succeeded?

DanBlakemore
  • 2,306
  • 2
  • 20
  • 23

2 Answers2

9

Try ./configure --disable-assembly.

genpfault
  • 51,148
  • 11
  • 85
  • 139
1

Assuming you don't want to take the performance hit of disabling all the assembly, it's actually a one character change to fix the build on LLVM.

Synxis
  • 9,236
  • 2
  • 42
  • 64
Arathorn
  • 68
  • 5
  • It works. I got the "invalid instruction" error which seems to be suggesting the `movq` instruction is not supported at all. Still it was solved. Don't know why, who cares. Thanks. – Meow Cat 2012 Jul 12 '19 at 11:51
  • BTW direct link to the changed character is http://hg.libsdl.org/SDL/comparison/32f0f603a0c8/src/video/mmx.h I just modified the file by hand. – Meow Cat 2012 Jul 12 '19 at 11:52