Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76612 - media-libs/libsdl-1.2.8 fails to compile with gcc 3.4.3
Summary: media-libs/libsdl-1.2.8 fails to compile with gcc 3.4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 76664 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-04 02:20 UTC by Raphael Jacquot
Modified: 2011-09-14 20:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output from breaking compiler statement with -E appended as requested (errors.txt,276.27 KB, text/plain)
2005-01-08 08:49 UTC, Max
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Jacquot 2005-01-04 02:20:53 UTC
looks like a compiler bug to me...

 x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL\" -DVERSION=\"1.2.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_LIBASOUND=1 -I. -I. -O1 -march=nocona -pipe -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN -DOSS_SUPPORT -DALSA_SUPPORT -DALSA_DYNAMIC=libasound.so.2 -DUSE_DLVSYM -DESD_SUPPORT -DESD_DYNAMIC=libesd.so.0 -DNAS_SUPPORT -I/usr/X11R6/include/ -I/usr/X11R6/include -DENABLE_X11 -DXTHREADS -I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA -Isrc/video -DENABLE_DGA -DENABLE_FBCON -I/usr/X11R6/include -DENABLE_GGI -DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT -DSDL_USE_PTHREADS -DHAVE_SIGACTION -I../../../include -I../../../include/SDL -I../../../src -I../../../src/main/linux -I../../../src/audio -I../../../src/video -I../../../src/video/XFree86/extensions -I../../../src/events -I../../../src/joystick -I../../../src/cdrom -I../../../src/thread -I../../../src/timer -I../../../src/endian -I../../../src/file -I../../../src/thread -c SDL_fbevents.c  -fPIC -DPIC -o .libs/SDL_fbevents.o
SDL_fbevents.c: In function `switch_vt':
SDL_fbevents.c:849: error: invalid lvalue in assignment
make: *** [SDL_fbevents.lo] Error 1

--- gcc details:
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/specs
Configured with: /var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include/g++-v3 --host=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --enable-multilib --disable-libgcj --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)
Comment 1 SpanKY gentoo-dev 2005-01-04 10:24:55 UTC
you neglected to provide `emerge info` like the bug report said to

the error looks more like a kernel issue
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-04 10:41:44 UTC
*** Bug 76664 has been marked as a duplicate of this bug. ***
Comment 3 Stian Skjelstad 2005-01-04 12:20:52 UTC
#define current get_current()

for instance is one possible glitch if defect kernel-like header is missing an ifdef.

Enter the build-directory and issue the faulted gcc command and apply -E and rename the output file provided by -o. The preprocessed output should show the deep secrets of what's happening there.
Comment 4 Max 2005-01-08 08:49:37 UTC
Created attachment 47943 [details]
Output from breaking compiler statement with -E appended as requested

Okay, supposing I did this right - IANAP - the outputfile (errors.txt) is
attached and my emerge info is shown beneath. I'm not the same guy as the
reporter, but I got the same error, so I hope this helps.

Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10 x86_64)
=================================================================
System uname: 2.6.10 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.8
Python: 	     dev-lang/python-2.3.4 [2.3.4 (#1, Dec 16 2004, 12:17:50)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.3, 1.8.5-r2, 1.5, 1.6.3, 1.7.9, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon64 -ffast-math -funroll-all-loops -funit-at-a-time
-fpeel-loops -ftracer -funswitch-loops -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon64 -ffast-math -funroll-all-loops -funit-at-a-time
-fpeel-loops -ftracer -funswitch-loops -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mir.zyrianes.net/gentoo/
ftp://mir.zyrianes.net/gentoo/ http://gentoo.zie.pg.gda.pl"
LDFLAGS=""
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="amd64 2 S3TC X aalib aavm acpi acpi4linux alsa amd apache2 ared arts
audiofileautofs avantgo berkdb bitmap-fonts bluetooth bonobo bzlib cairo caps
cddb cdparanoia cdr clamav codecs crypt cups curl dba dga directfb divx4linux
dv dvd dvdr dvdread eds esd evo ex f77 faad fam fbcon fbdev ffmpeg flac
foomaticdb fortran freetype fs gd gdbm gif gimp gnome gphoto2 gpm gstreamer gtk
gtkhtml guile hal imagemagick imap imlib ipv6 irmc java javascript joystick jp2
jpeg jpeg2k junit kde ldap libwww live lm_sensors lzo lzw lzw-tiff mad maildir
mailwrapper mikmod mime motif mozilla moznocompose moznoirc mozsvg mp3 mplayer
msn multilib mysql ncurses network nptl nptlonly offensive oggvorbis openal
opengl opens operanom2 oscar oss pam pda pdflib perl php pic png posix ppds
procmail pthreads python qt radeon readline rtc samba scanner sdl session slang
smime sockets spamassassin sqlite ssl stencil-buffer svg tcltk tcpd theora tiff
timidity truetype truetype-fonts type1-fonts unicode usb userlocales videos
wxwindows xine xml xml2 xmms xosd xpm xrandr xv xvid xvmc yahoo zlib"
Comment 5 Stian Skjelstad 2005-01-08 09:47:06 UTC
> get_current() = vtstate.v_active;

that is the bogus line. Somewhere you have a broken kernel-header file, or something defines __KERNEL__

Try to reemerge kernel-headers or such alike.
Comment 6 Stian Skjelstad 2005-01-08 10:04:23 UTC
/usr/src/linux/include/asm-x86_64/sigcontext.h

seems to be the trouble-maker. In my 2.6.9 tree, it does NOT include /usr/src/linux/include/asm-x86_64/processor.h which again includes /usr/src/linux/include/asm-x86_64/current.h . Is this a 2.6.10 change? That include should have an #ifdef __KERNEL__ mask around it. Kernel-up-stream bug? A temporary fix would be to

#ifdef current
#undef current
#endif

after including files, in SDL, but temporary fixes are dirty, and the source of the problem should be fixed.

please reopen bug
Comment 7 SpanKY gentoo-dev 2005-01-09 13:05:55 UTC
dupe ...
Comment 8 SpanKY gentoo-dev 2005-01-09 13:06:05 UTC

*** This bug has been marked as a duplicate of 74608 ***
Comment 9 Stian Skjelstad 2005-01-09 14:57:37 UTC
What does these two bugs have in common except that it affects amd64 and libSDL. The bug you set this to be a duplicate is compiler-related, while this one is due du a kernel-header-fuckup somewhere that defines current to get_current() which is supposed only to be defined and used by the kernel, and not user-space?
Comment 10 SpanKY gentoo-dev 2005-01-09 15:06:28 UTC
(1) watch your language
(2) i was looking at multiple sdl bugs at the sametime and marked this as a dupe of the wrong bug

chill out dude
Comment 11 SpanKY gentoo-dev 2005-01-09 15:06:37 UTC

*** This bug has been marked as a duplicate of 74608 ***
Comment 12 Mr. Bones. (RETIRED) gentoo-dev 2005-05-19 09:06:47 UTC
Closing to clean up after bugzilla upgrade.  reopen if closed in error.  Thanks.
Comment 13 Mr. Bones. (RETIRED) gentoo-dev 2011-09-14 20:40:03 UTC
clean up bug list after bugzilla update