Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44106 - cant emerge ttmkfdir - error message attached
Summary: cant emerge ttmkfdir - error message attached
Status: RESOLVED DUPLICATE of bug 40411
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
: 45472 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-09 01:57 UTC by Ohad Levy
Modified: 2005-07-15 07:47 UTC (History)
2 users (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 Ohad Levy 2004-03-09 01:57:24 UTC
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.
Comment 1 Benoit Boissinot 2004-03-09 04:04:42 UTC
Maybe this should be closed. Is this still relevant ?
Comment 2 Ohad Levy 2004-03-09 04:13:31 UTC
no - this is still relevant, any idea maybe?
Comment 3 Chris Russell (RETIRED) gentoo-dev 2004-03-10 01:59:08 UTC
can you post your `emerge info` please.
Comment 4 Chris Russell (RETIRED) gentoo-dev 2004-03-10 03:06:11 UTC
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.
Comment 5 Michael Montague 2004-03-11 11:53:24 UTC
My CFLAGS are "-O2 -mcpu=ultrasparc -pipe" and I get the same problems.

The following emerges with no problems:

CFLAGS="" emerge ttmkfdir

Comment 6 Christian Jiresjö 2004-03-18 01:17:56 UTC
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
Comment 7 Geordon Marchak 2004-03-23 00:07:29 UTC
*** Bug 45472 has been marked as a duplicate of this bug. ***
Comment 8 Gustavo Zacarias (RETIRED) gentoo-dev 2004-04-20 14:42:52 UTC
Does this still happen with ttmkfdir-3.0.9-r1?
Comment 9 Gerald Britton 2004-05-27 12:04:14 UTC
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
Comment 10 SpanKY gentoo-dev 2004-05-31 20:31:46 UTC
Gerald: your bug is completely unrelated to this one ... search bugzilla to find your problem
Comment 11 Caleb Tennis (RETIRED) gentoo-dev 2005-07-15 07:47:10 UTC

*** This bug has been marked as a duplicate of 40411 ***