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 - Compilation failed (by SDL_dummy_main)
Summary: Compilation failed (by SDL_dummy_main)
Status: RESOLVED DUPLICATE of bug 1431
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.0
Hardware: All Linux
: P2 blocker
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-10 14:26 UTC by Markus Rathgeb
Modified: 2013-03-21 00:31 UTC (History)
2 users (show)

See Also:


Attachments
Configure and build log. (6.52 KB, application/x-bzip)
2012-07-10 14:26 UTC, Markus Rathgeb
Details
Makefile of the build directory (30.31 KB, text/plain)
2012-07-10 14:27 UTC, Markus Rathgeb
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***