Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27142 - glibc and gcc-3.3.1 problem
Summary: glibc and gcc-3.3.1 problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 27375 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-22 13:42 UTC by Andrei Ivanov
Modified: 2003-09-08 13:46 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 Andrei Ivanov 2003-08-22 13:42:12 UTC
>>> emerge (1 of 7) x11-misc/ttmkfdir-3.0.9 to /
>>> md5 src_uri ;-) ttmkfdir-3.0.9.tar.bz2
>>> Unpacking source...
>>> Unpacking ttmkfdir-3.0.9.tar.bz2 to /var/tmp/portage/ttmkfdir-3.0.9/work
 * Applying ttmkfdir-3.0.9-gcc33.patch...                                 [ ok ]
>>> Source unpacked.
libtool --mode=compile g++ -Wall -pedantic -I/usr/include/freetype2  -
march=pentium2 -O3 -pipe -fomit-frame-pointer -ffast-mat
h -fforce-addr -falign-functions=4 -o ttmkfdir.o -c ttmkfdir.cpp
mkdir .libs
g++ -Wall -pedantic -I/usr/include/freetype2 -march=pentium2 -O3 -pipe -fomit-
frame-pointer -ffast-math -fforce-addr -falign-f
unctions=4 -c ttmkfdir.cpp    -fPIC -DPIC -o .libs/ttmkfdir.lo
In file included from /usr/include/math.h:362,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-
v3/cmath:51,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-
v3/bits/locale_facets.tcc:41,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-
v3/locale:47,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-
v3/bits/ostream.tcc:37,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-
v3/ostream:535,
                 from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-
v3/iostream:45,
                 from ttmkfdir.cpp:2:
/usr/include/bits/mathinline.h: In function `long double __expm1l(long double)
   ':
/usr/include/bits/mathinline.h:385: error: ISO C++ forbids omitting the middle
   term of a ?: expression
/usr/include/bits/mathinline.h: In function `double expm1(double)':
/usr/include/bits/mathinline.h:532: error: ISO C++ forbids omitting the middle
   term of a ?: expression
/usr/include/bits/mathinline.h: In function `float expm1f(float)':
/usr/include/bits/mathinline.h:532: error: ISO C++ forbids omitting the middle
   term of a ?: expression
/usr/include/bits/mathinline.h: In function `long double expm1l(long double)':
/usr/include/bits/mathinline.h:532: error: ISO C++ forbids omitting the middle
   term of a ?: expression
make: *** [ttmkfdir.o] Error 1

!!! ERROR: x11-misc/ttmkfdir-3.0.9 failed.
!!! Function src_compile, Line 30, Exitcode 2
!!! (no error message)

I found this http://gcc.gnu.org/ml/gcc/2003-08/msg00738.html, which says that 
on gentoo, this problem shouldn't exist, but it does. I've started this gentoo 
installation yesterday, and I've unmasked gcc-3.3.1.
I've applied the patch found at that url, and everything seems to work fine now.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-24 00:52:24 UTC
You need glibc-2.3.2-r3 as well ...
Comment 2 Andrei Ivanov 2003-08-24 01:02:19 UTC
I thought about that too, but, while compiling (it takes ages to compile it on my celeron 400Mhz), I looked through to sources, and /usr/include/bits/mathinline.h looked the same as in r1, and I interrupted the compilation. Was there a patch that was going to be applied later or am I missing something ?
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-24 01:22:39 UTC
Err, sorry, it is fixed in -r2, but -r3 it is 'broken' again, although -r3 allow
me to compile ttmkfdir without any problem ....

You on -r1 ?  Could you try -r3 just to verify that it was not fixed somewhere
else, and that patch not needed anymore ?  Thanks.
Comment 4 Andrei Ivanov 2003-08-25 06:44:43 UTC
I've emerged glibc-2.3.2-r3 and the problem still exists.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-26 12:42:36 UTC
*** Bug 27375 has been marked as a duplicate of this bug. ***
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-26 12:50:29 UTC
Still works fine here, although I have a bit later versions of both - that fix
from Jelinek is not in there though.  I will add to -r4 in the next few days,
please just patch manually until then.
Comment 7 Deimos 2003-08-29 08:13:15 UTC
hi,

reducing my cflags to CFLAGS="-march=athlon-tbird -Os -pipe -fomit-frame-pointer" solved that problem
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-01 11:06:55 UTC
Hmm, guess it could be flag related - those inlines not being used with some
flags ?  Anyhow, I still think it might be good practice to add it though.
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-08 13:46:15 UTC
Added to 2.3.2-r4.