Summary: | build Kdelibs 3.1.2 with gcc 3.3 - configure not detect STL with (workaround) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bernd Martin Wollny <bernd> |
Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gavrilao, hanno |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Bernd Martin Wollny
2003-06-11 22:33:23 UTC
Can you give a snapshot of the errors you get? -pedantic, according to the docs, only produces warnings, so I don't understand what's causing the error. http://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/Warning-Options.html#Warning%20Options I've got exactly the same problem, with arts-1.1.2 (and previous versions which I've tried to recompile). This problem occurred when I upgraded to gcc-3.3, but doesn't go away after downgrading again. Joel. Here are the errors I get, removing -pedantic or optimisations produces no errors or warnings: voodoo@lister voodoo $ gcc -c -pedantic -O2 test.cc In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/stdio.h:683, from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/g++-v3/cstdio:52, from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/g++-v3/i686-pc-linux-gnu/bits/c++io.h:35, from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/g++-v3/bits/fpos.h:44, from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/g++-v3/bits/char_traits.h:46, from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/g++-v3/string:47, from test.cc:1: /usr/include/bits/stdio.h: In function `int vprintf(const char*, char*)': /usr/include/bits/stdio.h:35: error: declaration of `int vprintf(const char*, char*)' throws different exceptions /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/stdio.h:317: error: than previous declaration `int vprintf(const char*, char*) throw ()' /usr/include/bits/stdio.h: In function `int getchar()': /usr/include/bits/stdio.h:42: error: declaration of `int getchar()' throws different exceptions /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/stdio.h:394: error: than previous declaration `int getchar() throw ()' /usr/include/bits/stdio.h: In function `int getc_unlocked(FILE*)': /usr/include/bits/stdio.h:51: error: declaration of `int getc_unlocked(FILE*)' throws different exceptions /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/stdio.h:403: error: than previous declaration `int getc_unlocked(FILE*) throw ()' /usr/include/bits/stdio.h: In function `int getchar_unlocked()': /usr/include/bits/stdio.h:58: error: declaration of `int getchar_unlocked()' throws different exceptions /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/stdio.h:404: error: than previous declaration `int getchar_unlocked() throw ()' /usr/include/bits/stdio.h: In function `int putchar(int)': /usr/include/bits/stdio.h:67: error: declaration of `int putchar(int)' throws different exceptions /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/stdio.h:419: error: 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: error: declaration of `int fputc_unlocked(int, FILE*)' throws different exceptions /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/stdio.h:428: error: 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: error: declaration of `int putc_unlocked(int, FILE*)' throws different exceptions /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/stdio.h:433: error: 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: error: declaration of `int putchar_unlocked(int)' throws different exceptions /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/stdio.h:434: error: 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: error: declaration of `__ssize_t getline(char**, size_t*, FILE*)' throws different exceptions /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/include/stdio.h:480: error: than previous declaration `__ssize_t getline(char**, size_t*, FILE*) throw ()' *** Bug 24066 has been marked as a duplicate of this bug. *** This problem is probably due to gcc not being compiled with the glibc that is installed. Check whether a remerge of gcc helps. Reemerging gcc 3.2 worked for me for the duplicate bug about kdepim. Thank you all Ok, happy to hear that. Closing the bug reemerging gcc resolved the problem also for me. Thx a lot... |