>>> 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.
You need glibc-2.3.2-r3 as well ...
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 ?
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.
I've emerged glibc-2.3.2-r3 and the problem still exists.
*** Bug 27375 has been marked as a duplicate of this bug. ***
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.
hi, reducing my cflags to CFLAGS="-march=athlon-tbird -Os -pipe -fomit-frame-pointer" solved that problem
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.
Added to 2.3.2-r4.