emerge ttmkfdir Calculating dependencies ...done! >>> emerge (1 of 1) 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 -O2 -mcpu=ultrasparc -o ttmkfdir.o -c ttmkfdir.cpp mkdir .libs g++ -Wall -pedantic -I/usr/include/freetype2 -O2 -mcpu=ultrasparc -c ttmkfdir.cpp -fPIC -DPIC -o .libs/ttmkfdir.lo In file included from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/stdio.h:683, from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/g++-v3/cstdio:52, from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/g++-v3/sparc-unknown-linux-gnu/bits/c++io.h:35, from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/g++-v3/bits/fpos.h:44, from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/g++-v3/iosfwd:46, from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/g++-v3/ios:44, from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/g++-v3/ostream:45, from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/g++-v3/iostream:45, from ttmkfdir.cpp:2: /usr/include/bits/stdio.h: In function `int getchar()': /usr/include/bits/stdio.h:42: declaration of `int getchar()' throws different exceptions /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/stdio.h:394: than previous declaration `int getchar() throw ()' /usr/include/bits/stdio.h: In function `int getc_unlocked(FILE*)': /usr/include/bits/stdio.h:51: declaration of `int getc_unlocked(FILE*)' throws different exceptions /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/stdio.h:403: than previous declaration `int getc_unlocked(FILE*) throw ()' /usr/include/bits/stdio.h: In function `int getchar_unlocked()': /usr/include/bits/stdio.h:58: declaration of `int getchar_unlocked()' throws different exceptions /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/stdio.h:404: than previous declaration `int getchar_unlocked() throw ()' /usr/include/bits/stdio.h: In function `int putchar(int)': /usr/include/bits/stdio.h:67: declaration of `int putchar(int)' throws different exceptions /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/stdio.h:419: than previous declaration `int putchar(int) throw ()' /usr/include/bits/stdio.h: In function `int fputc_unlocked(int, FILE*)': /usr/include/bits/stdio.h:76: declaration of `int fputc_unlocked(int, FILE*)' throws different exceptions /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/stdio.h:428: than previous declaration `int fputc_unlocked(int, FILE*) throw ()' /usr/include/bits/stdio.h: In function `int putc_unlocked(int, FILE*)': /usr/include/bits/stdio.h:86: declaration of `int putc_unlocked(int, FILE*)' throws different exceptions /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/stdio.h:433: than previous declaration `int putc_unlocked(int, FILE*) throw ()' /usr/include/bits/stdio.h: In function `int putchar_unlocked(int)': /usr/include/bits/stdio.h:93: declaration of `int putchar_unlocked(int)' throws different exceptions /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/stdio.h:434: than previous declaration `int putchar_unlocked(int) throw ()' /usr/include/bits/stdio.h: In function `__ssize_t getline(char**, size_t*, FILE*)': /usr/include/bits/stdio.h:103: declaration of `__ssize_t getline(char**, size_t*, FILE*)' throws different exceptions /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/include/stdio.h:480: than previous declaration `__ssize_t getline(char**, size_t*, FILE*) throw ()' make: *** [ttmkfdir.o] Error 1 !!! ERROR: x11-misc/ttmkfdir-3.0.9 failed. !!! Function src_compile, Line 31, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. 2. 3.
Maybe this should be closed. Is this still relevant ?
no - this is still relevant, any idea maybe?
can you post your `emerge info` please.
I'm seeing this also when building afresh - just had to wait for the old slow machine to catch up on the dependancies. freetype-2.1.5-r1 merged ok, ttmkfdir-3.0.9 failed the same way as the bug reporter. /usr/include/bits/stdio.h is part of glibc, (at 2.3.2-r9 right now) Also, I looked back through the emerge.log and found I'd compiled ttmkfdir-3.0.9 ok on my ultra5 when I rebuilt last July, freetype was at 2.1.4 then, and glibc was at 2.3.1-r4 so something has changed to break it.
My CFLAGS are "-O2 -mcpu=ultrasparc -pipe" and I get the same problems. The following emerges with no problems: CFLAGS="" emerge ttmkfdir
It seems like ttmkfdir cant be compile with optimizations on at least sparc. There fore someone added a filter-flags statement to remove these flags i assume but filter-flags in flag-o-matic doesn't remove them while filter-flags in portage does (if you move -O to the end of the filterstatement but that is another bug). So if you remove the inherit eutils flag-o-matic and move -O to the end of filter-flags it compiles nicely
*** Bug 45472 has been marked as a duplicate of this bug. ***
Does this still happen with ttmkfdir-3.0.9-r1?
Fails for me too, Slightly different messages: ws-5130 ttmkfdir # emerge =x11-misc/ttmkfdir-3.0.9-r1 Calculating dependencies ...done! >>> emerge (1 of 1) x11-misc/ttmkfdir-3.0.9-r1 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-r1/work [ ok ]ing ttmkfdir-3.0.9-cpp.patch... [ ok ]ing ttmkfdir-3.0.9-zlib.patch... [ ok ]ing ttmkfdir-3.0.9-gcc34.patch... >>> Source unpacked. libtool --mode=compile g++ -Wall -pedantic -I/usr/include/freetype2 -march=i686 -fomit-frame-pointer -o ttmkfdir.o -c ttmkfdir.cpp libtool --mode=compile g++ -Wall -pedantic -I/usr/include/freetype2 -march=i686 -fomit-frame-pointer -o directory.o -c directory.cpp mkdir .libs g++ -Wall -pedantic -I/usr/include/freetype2 -march=i686 -fomit-frame-pointer -c ttmkfdir.cpp -fPIC -DPIC -o .libs/ttmkfdir.lo rm -f .libs/directory.lo g++ -Wall -pedantic -I/usr/include/freetype2 -march=i686 -fomit-frame-pointer -c directory.cpp -fPIC -DPIC -o .libs/directory.lo g++ -Wall -pedantic -I/usr/include/freetype2 -march=i686 -fomit-frame-pointer -c directory.cpp -o directory.o >/dev/null 2>&1 In file included from ttf.h:6, from ttmkfdir.cpp:8: /usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!" /usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files." /usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:" /usr/include/freetype2/freetype/freetype.h:23:2: #error " #include <ft2build.h>" /usr/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H" In file included from ttmkfdir.cpp:8: ttf.h:11:31: freetype/ftmodule.h: No such file or directory mv -f .libs/directory.lo directory.lo libtool --mode=compile g++ -Wall -pedantic -I/usr/include/freetype2 -march=i686 -fomit-frame-pointer -o commandline.o -c commandline.cpp rm -f .libs/commandline.lo g++ -Wall -pedantic -I/usr/include/freetype2 -march=i686 -fomit-frame-pointer -c commandline.cpp -fPIC -DPIC -o .libs/commandline.lo commandline.cpp:3:1: warning: "_GNU_SOURCE" redefined <command line>:4:1: warning: this is the location of the previous definition make: *** [ttmkfdir.o] Error 1 make: *** Waiting for unfinished jobs.... g++ -Wall -pedantic -I/usr/include/freetype2 -march=i686 -fomit-frame-pointer -c commandline.cpp -o commandline.o >/dev/null 2>&1 mv -f .libs/commandline.lo commandline.lo !!! ERROR: x11-misc/ttmkfdir-3.0.9-r1 failed. !!! Function src_compile, Line 38, Exitcode 2 !!! emake failed NOTE: gcc 3.3.2-r5
Gerald: your bug is completely unrelated to this one ... search bugzilla to find your problem
*** This bug has been marked as a duplicate of 40411 ***