Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55256 - gcc-3.4.0-r6 compile failure with 2.6.7 headers, cppcharset.o
Summary: gcc-3.4.0-r6 compile failure with 2.6.7 headers, cppcharset.o
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 All
: High normal
Assignee: Tim Yamin (RETIRED)
URL: http://gcc.gnu.org/ml/gcc/2004-01/msg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-26 09:47 UTC by Hinrik Örn Sigurðsson
Modified: 2004-06-29 12:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hinrik Örn Sigurðsson 2004-06-26 09:47:17 UTC
This is a showstopper for me(during bootstrap):

/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc -I/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/. -I/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/../include  /var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/cppcharset.c -o cppcharset.o
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c   -march=athlon-xp -pipe -O2 -fprofile-generate -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition     -DHAVE_CONFIG_H    -I. -I. -I/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc -I/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/. -I/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/../include  /var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/hashtable.c -o hashtable.o
/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/cppcharset.c: In function `convert_utf8_utf16':
/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/cppcharset.c:338: sorry, unimplemented: inlining failed in call to 'one_utf8_to_utf16': originally indirect function calls never inlined
/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/cppcharset.c:471: sorry, unimplemented: called from here
make[2]: *** [cppcharset.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.0-r6/work/build/gcc'
make[1]: *** [stageprofile_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.0-r6/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.0-r6 failed.
!!! Function src_compile, Line 635, Exitcode 2
!!! (no error message)



Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9,2.3.3.20040420-r0, 2.6.7)
=================================================================
System uname: 2.6.7 i686
Gentoo Base System version 1.4.3.13
Autoconf:
Automake:
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.rhnet.is/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://ftp.rhnet.is/gentoo-portage"
USE="3dnow X acpi alsa avi cdr cups dga encode esd faad fam fbcon flac foomatidb gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml imlib jpeg mad mmx moznocompose moznoirc moznomail mozsvg mpeg ncurses nls nptl offensive oggvorbis opengl pam perl pic png python quicktime readline samba sdl spell sse ssl svga truetype unicode v4l v4l2 wxwindows x86 xml xml2 xv xvid zlib"
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2004-06-26 15:00:37 UTC
so... what glibc -are- you using? 2.3.2-r9 or this strange r0 2.3.3 ebuild that never could have existed in the main tree? also, are you using our official gcc 3.4.0-r6 ebuild from the portage tree?

note that gcc 3.4 isnt supported yet on x86, and not with glibc 2.3.2 either.
Comment 2 Hinrik Örn Sigurðsson 2004-06-26 16:00:48 UTC
I am using the offcial gcc-3.4.0-r6 ebuild.

emerge -pvO glibc
[ebuild   R   ] sys-libs/glibc-2.3.3.20040420  -build -debug -debug -erandom +nls +nptl +pic

I'm going to try a newer glibc...
Comment 3 Hinrik Örn Sigurðsson 2004-06-26 17:09:48 UTC
Same error with glibc-2.3.4.20040619.
Comment 4 Christopher Origer 2004-06-26 23:42:41 UTC
same result


0/gcc -I/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/. -I/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/../include  /var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/cppcharset.c -o cppcharset.o
/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/cppcharset.c: In function `convert_utf8_utf16':
/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/cppcharset.c:338: sorry, unimplemented: inlining failed in call to 'one_utf8_to_utf16': originally indirect function calls never inlined
/var/tmp/portage/gcc-3.4.0-r6/work/gcc-3.4.0/gcc/cppcharset.c:471: sorry, unimplemented: called from here
make[2]: *** [cppcharset.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.0-r6/work/build/gcc'
make[1]: *** [stageprofile_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.0-r6/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.0-r6 failed.
!!! Function src_compile, Line 635, Exitcode 2
!!! (no error message)


eading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/specs
Configured with: /var/tmp/portage/gcc-3.3.4/work/gcc-3.3.4/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --disable-nls --disable-multilib --enable-__cxa_atexit --enable-clocale=generic
Thread model: posix
gcc version 3.3.4  (Gentoo Linux 3.3.4, ssp-3.3.2-2)


linuxheaders 2.6.7 ebuild

glibc-2.3.4.20040619.ebuild

gentoo-dev-sources-2.6.7-r6.ebuild


commentary from LFS-hackers list regarding gcc list:


'OK, we have an answer. The person who originally reported this on the 
gcc list responded back to me that this problem is caused by using raw 
2.6 kernel headers in /usr/include, instead of sanitized ones. I do not 
have a technical explanation as to exactly what is causing gcc to have 
this problem, but I will switch my /usr/include over to PLD headers and 
report back if that does _NOT_ resolve the problem. Otherwise, please 
assume that this was the cause... this might be good information for 
someone who wants to switch from an old "hackers" LFS build to a BE-LFS 
build, like me.'
Comment 5 Travis Tilley (RETIRED) gentoo-dev 2004-06-27 01:13:35 UTC
Hinrik - are you also using 2.6.7 linux-headers and/or gcc 3.3.4?

2.6.7 is known to break, well... a lot. even compiling X was broken at some point (i think plasmaroo might have fixed this already). i havent even marked those headers as testing on amd64 for this reason. we're currently using 2.6.6-r1 which has an additional fix for compiling iproute2.
Comment 6 Christopher Origer 2004-06-27 08:29:14 UTC
Here is the bug id and link, status resolved/fixed (from 04/04)

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15030
Comment 7 Hinrik Örn Sigurðsson 2004-06-27 11:17:24 UTC
Travis: Yes I am using linux-headers-2.6.7, and I'm using gcc-3.4.0 as I have mentioned before.
Comment 8 Hinrik Örn Sigurðsson 2004-06-27 17:48:32 UTC
Works fine with linux-headers-2.4.22.
Comment 9 Hinrik Örn Sigurðsson 2004-06-27 17:52:11 UTC
Bah, sorry, I meant 2.4.21-r1.
Comment 10 Travis Tilley (RETIRED) gentoo-dev 2004-06-27 18:07:29 UTC
re-assigning to plasmaroo, he's the header guru :)

though i'd like to note that it should also work with 2.6.6-r1
Comment 11 Tim Yamin (RETIRED) gentoo-dev 2004-06-28 09:28:57 UTC
Can you try linux-headers-2.6.7-r1 please and tell me how those work? Thanks...
Comment 12 Hinrik Örn Sigurðsson 2004-06-28 19:22:54 UTC
Works. :)
Comment 13 Tim Yamin (RETIRED) gentoo-dev 2004-06-29 12:26:38 UTC
Closing as FIXED. Thanks!