We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1541

Summary: Compilation failed (by SDL_dummy_main)
Product: SDL Reporter: Markus Rathgeb <maggu2810>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2 CC: carles.pages, leycec
Version: HG 2.0   
Hardware: All   
OS: Linux   
Attachments: Configure and build log.
Makefile of the build directory

Description Markus Rathgeb 2012-07-10 14:26:32 UTC
Created attachment 898 [details]
Configure and build log.

Hello!

I have written a (test) Gentoo live ebuild for v2.0.
After setting up the most configure options, the build have.
Can you have a look at?


libtool: compile:  i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -O2 -march=native -pipe -ggdb -DUSING_GENERATED_CONFIG_H -Iinclude -I/var/tmp/portage/media-libs/libsdl-2.0.9999/work/libsdl-2.0.9999/include -mmmx -m3dnow -msse -msse2 -fvisibility=hidden -D_REENTRANT -D_REENTRANT -DHAVE_LINUX_VERSION_H -Wall -MMD -MT build/SDL.lo -c /var/tmp/portage/media-libs/libsdl-2.0.9999/work/libsdl-2.0.9999/src/SDL.c  -fPIC -DPIC -o build/.libs/SDL.o
i686-pc-linux-gnu-ar cru build/libSDL2main.a build/SDL_dummy_main.o
i686-pc-linux-gnu-ar: build/SDL_dummy_main.o: No such file or directory
make: *** [build/libSDL2main.a] Error 1
make: *** Waiting for unfinished jobs....

The (generated) Makefile contains a lot of "...lo" targets, but the last is a simply object file "SDL_dummy_main.o"
Comment 1 Markus Rathgeb 2012-07-10 14:27:30 UTC
Created attachment 899 [details]
Makefile of the build directory

Out of source build (separate build directory)
Comment 2 Cecil Curry 2012-08-27 17:02:06 UTC
Interestingly, I receive the same compilation error on x86_64.
Comment 3 Cecil Curry 2012-08-27 17:18:52 UTC
(In reply to comment #2)
> Interestingly, I receive the same compilation error on x86_64.

On inspection, "build/.libs/SDL_dummy_main.o" does exist. It's just in the wrong directory. This smacks of a "Makefile" quandry, but I'm afraid my make-foo isn't quite what it was.
Comment 4 Carles Pagès 2013-03-20 17:42:57 UTC
I just stumbled upon this problem as well, but this was already reported in #1431. A temporary solution is to pass --enable-static
Comment 5 Sam Lantinga 2013-03-21 00:31:33 UTC

*** This bug has been marked as a duplicate of bug 1431 ***