This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Installation problem with gcc 3.0?
- To: gcc at gcc dot gnu dot org
- Subject: Installation problem with gcc 3.0?
- From: Roscoe A Bartlett <roscoe at andrew dot cmu dot edu>
- Date: Fri, 6 Jul 2001 19:47:03 -0400 (EDT)
Hello,
I downloaded the sources for gcc 3.0, followed the installation
instructions and there seems to be problems in the header files for the
C++ standard library.
I ran the command
g++ -v -c -o junk.o junk.cpp >& build.junk.cpp.out
on the attached file junk.cpp and produced the attached file
build.junk.cpp.out. It seems from the error message that there is a
problem with some configuration setting were things are being #defined and
#undefined etc.
If anyone has any ideas what the problem could be please let me know.
Thanks,
Roscoe
--------------------------------------
| Roscoe Bartlett |
| Ph.D. student |
| Department of Chemical Engineering |
| Carnegie Mellon University |
| email: roscoe@andrew.cmu.edu |
| work phone: (412) 268 - 2238 |
--------------------------------------
#include <string.h>
#include <sstream>
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ../gcc-3.0/configure
Thread model: single
gcc version 3.0
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ junk.cpp -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase junk.cpp -version -o /tmp/ccJ5cj3s.s
GNU CPP version 3.0 (cpplib) (i386 Linux/ELF)
GNU C++ version 3.0 (i686-pc-linux-gnu)
compiled by GNU C version 3.0.
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include/g++-v3
/usr/local/include/g++-v3/i686-pc-linux-gnu
/usr/local/include/g++-v3/backward
/usr/local/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/include
/usr/local/i686-pc-linux-gnu/include
/usr/include
End of search list.
In file included from /usr/local/include/g++-v3/bits/fpos.h:40,
from /usr/local/include/g++-v3/bits/std_iosfwd.h:41,
from /usr/local/include/g++-v3/bits/std_ios.h:39,
from /usr/local/include/g++-v3/bits/std_istream.h:39,
from /usr/local/include/g++-v3/bits/std_sstream.h:39,
from /usr/local/include/g++-v3/sstream:31,
from junk.cpp:2:
/usr/local/include/g++-v3/bits/std_cwchar.h:125: `btowc' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:126: `fgetwc' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:127: `fgetws' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:128: `fputwc' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:129: `fputws' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:130: `fwide' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:131: `fwprintf' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:132: `fwscanf' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:133: `getwc' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:134: `getwchar' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:135: `mbrlen' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:136: `mbrtowc' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:137: `mbsinit' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:138: `mbsrtowcs' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:139: `putwc' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:140: `putwchar' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:141: `swprintf' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:142: `swscanf' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:143: `ungetwc' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:144: `vfwprintf' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:145: `vfwscanf' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:146: `vswprintf' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:147: `vswscanf' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:148: `vwprintf' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:149: `vwscanf' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:150: `wcrtomb' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:151: `wcscat' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:152: `wcscmp' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:153: `wcscoll' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:154: `wcscpy' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:155: `wcscspn' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:156: `wcsftime' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:157: `wcslen' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:158: `wcsncat' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:159: `wcsncmp' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:160: `wcsncpy' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:161: `wcsrtombs' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:162: `wcsspn' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:163: `wcstod' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:164: `wcstof' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:165: `wcstok' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:166: `wcstol' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:167: `wcstoul' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:168: `wcsxfrm' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:169: `wctob' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:170: `wmemcmp' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:171: `wmemcpy' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:172: `wmemmove' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:173: `wmemset' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:174: `wprintf' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:175: `wscanf' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h:177: `wcschr' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h: In function `wchar_t*
std::wcschr(wchar_t*, wchar_t)':
/usr/local/include/g++-v3/bits/std_cwchar.h:181: cannot convert `const
wchar_t*' to `wchar_t*' for argument `1' to `wchar_t* std::wcschr(wchar_t*,
wchar_t)'
/usr/local/include/g++-v3/bits/std_cwchar.h: At global scope:
/usr/local/include/g++-v3/bits/std_cwchar.h:183: `wcspbrk' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h: In function `wchar_t*
std::wcspbrk(wchar_t*, wchar_t*)':
/usr/local/include/g++-v3/bits/std_cwchar.h:187: cannot convert `const
wchar_t*' to `wchar_t*' for argument `1' to `wchar_t* std::wcspbrk(wchar_t*,
wchar_t*)'
/usr/local/include/g++-v3/bits/std_cwchar.h: At global scope:
/usr/local/include/g++-v3/bits/std_cwchar.h:189: `wcsrchr' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h: In function `wchar_t*
std::wcsrchr(wchar_t*, wchar_t)':
/usr/local/include/g++-v3/bits/std_cwchar.h:193: cannot convert `const
wchar_t*' to `wchar_t*' for argument `1' to `wchar_t* std::wcsrchr(wchar_t*,
wchar_t)'
/usr/local/include/g++-v3/bits/std_cwchar.h: At global scope:
/usr/local/include/g++-v3/bits/std_cwchar.h:195: `wcsstr' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h: In function `wchar_t*
std::wcsstr(wchar_t*, wchar_t*)':
/usr/local/include/g++-v3/bits/std_cwchar.h:199: cannot convert `const
wchar_t*' to `wchar_t*' for argument `1' to `wchar_t* std::wcsstr(wchar_t*,
wchar_t*)'
/usr/local/include/g++-v3/bits/std_cwchar.h: At global scope:
/usr/local/include/g++-v3/bits/std_cwchar.h:201: `wmemchr' not declared
/usr/local/include/g++-v3/bits/std_cwchar.h: In function `wchar_t*
std::wmemchr(wchar_t*, wchar_t, unsigned int)':
/usr/local/include/g++-v3/bits/std_cwchar.h:205: cannot convert `const
wchar_t*' to `wchar_t*' for argument `1' to `wchar_t* std::wmemchr(wchar_t*,
wchar_t, unsigned int)'
In file included from /usr/local/include/g++-v3/bits/std_ios.h:41,
from /usr/local/include/g++-v3/bits/std_istream.h:39,
from /usr/local/include/g++-v3/bits/std_sstream.h:39,
from /usr/local/include/g++-v3/sstream:31,
from junk.cpp:2:
/usr/local/include/g++-v3/bits/char_traits.h: In static member function `static
int std::char_traits<wchar_t>::compare(const wchar_t*, const wchar_t*,
unsigned int)':
/usr/local/include/g++-v3/bits/char_traits.h:223: `wmemcmp' undeclared (first
use this function)
/usr/local/include/g++-v3/bits/char_traits.h:223: (Each undeclared identifier
is reported only once for each function it appears in.)
/usr/local/include/g++-v3/bits/char_traits.h: In static member function `static
size_t std::char_traits<wchar_t>::length(const wchar_t*)':
/usr/local/include/g++-v3/bits/char_traits.h:227: `wcslen' undeclared (first
use this function)
/usr/local/include/g++-v3/bits/char_traits.h: In static member function `static
const wchar_t* std::char_traits<wchar_t>::find(const wchar_t*, unsigned int,
const wchar_t&)':
/usr/local/include/g++-v3/bits/char_traits.h:231: cannot convert `const
wchar_t*' to `wchar_t*' for argument `1' to `wchar_t* std::wmemchr(wchar_t*,
wchar_t, unsigned int)'
/usr/local/include/g++-v3/bits/char_traits.h: In static member function `static
wchar_t* std::char_traits<wchar_t>::move(wchar_t*, const wchar_t*, unsigned
int)':
/usr/local/include/g++-v3/bits/char_traits.h:235: `wmemmove' undeclared (first
use this function)
/usr/local/include/g++-v3/bits/char_traits.h: In static member function `static
wchar_t* std::char_traits<wchar_t>::copy(wchar_t*, const wchar_t*, unsigned
int)':
/usr/local/include/g++-v3/bits/char_traits.h:239: `wmemcpy' undeclared (first
use this function)
/usr/local/include/g++-v3/bits/char_traits.h: In static member function `static
wchar_t* std::char_traits<wchar_t>::assign(wchar_t*, unsigned int,
wchar_t)':
/usr/local/include/g++-v3/bits/char_traits.h:243: `wmemset' undeclared (first
use this function)
/usr/local/include/g++-v3/bits/char_traits.h: In static member function `static
wint_t std::char_traits<wchar_t>::eof()':
/usr/local/include/g++-v3/bits/char_traits.h:256: `WEOF' undeclared (first use
this function)
In file included from /usr/local/include/g++-v3/bits/std_memory.h:21,
from /usr/local/include/g++-v3/bits/std_string.h:43,
from /usr/local/include/g++-v3/bits/localefwd.h:42,
from /usr/local/include/g++-v3/bits/std_ios.h:43,
from /usr/local/include/g++-v3/bits/std_istream.h:39,
from /usr/local/include/g++-v3/bits/std_sstream.h:39,
from /usr/local/include/g++-v3/sstream:31,
from junk.cpp:2:
/usr/local/include/g++-v3/bits/stl_alloc.h: At global scope:
/usr/local/include/g++-v3/bits/stl_alloc.h:259: parse error before `[' token
/usr/local/include/g++-v3/bits/stl_alloc.h: In static member function `static
void* std::__default_alloc_template<threads, inst>::allocate(unsigned int)':
/usr/local/include/g++-v3/bits/stl_alloc.h:302: parse error before `;' token
/usr/local/include/g++-v3/bits/stl_alloc.h: In static member function `static
void std::__default_alloc_template<threads, inst>::deallocate(void*,
unsigned int)':
/usr/local/include/g++-v3/bits/stl_alloc.h:329: parse error before `;' token
/usr/local/include/g++-v3/bits/stl_alloc.h: In static member function `static
char* std::__default_alloc_template<threads, inst>::_S_chunk_alloc(unsigned
int, int&)':
/usr/local/include/g++-v3/bits/stl_alloc.h:395: parse error before `*' token
/usr/local/include/g++-v3/bits/stl_alloc.h:404: parse error before `*' token
/usr/local/include/g++-v3/bits/stl_alloc.h: In static member function `static
void* std::__default_alloc_template<threads, inst>::_S_refill(unsigned
int)':
/usr/local/include/g++-v3/bits/stl_alloc.h:445: parse error before `*' token
/usr/local/include/g++-v3/bits/stl_alloc.h: At global scope:
/usr/local/include/g++-v3/bits/stl_alloc.h:509: syntax error before `<' token
/usr/local/include/g++-v3/bits/stl_alloc.h:509: `__threads' was not declared in
this scope
/usr/local/include/g++-v3/bits/stl_alloc.h:509: `__inst' was not declared in
this scope
/usr/local/include/g++-v3/bits/stl_alloc.h:509: template argument 1 is invalid
/usr/local/include/g++-v3/bits/stl_alloc.h:509: template argument 2 is invalid
/usr/local/include/g++-v3/bits/stl_alloc.h:510: `__threads' was not declared in
this scope
/usr/local/include/g++-v3/bits/stl_alloc.h:510: `__inst' was not declared in
this scope
/usr/local/include/g++-v3/bits/stl_alloc.h:510: template argument 1 is invalid
/usr/local/include/g++-v3/bits/stl_alloc.h:510: template argument 2 is invalid
/usr/local/include/g++-v3/bits/stl_alloc.h:511: `::_NFREELISTS' undeclared
(first use here)
/usr/local/include/g++-v3/bits/stl_alloc.h:511: assignment (not initialization)
in declaration
/usr/local/include/g++-v3/bits/stl_alloc.h:542: parse error in method
specification before `{' token
/usr/local/include/g++-v3/bits/stl_alloc.h:542: parse error before `}' token
/usr/local/include/g++-v3/bits/stl_alloc.h:543: missing ';' before right brace
/usr/local/include/g++-v3/bits/stl_alloc.h:544: semicolon missing after
declaration of `std::allocator<_Alloc>'
/usr/local/include/g++-v3/bits/stl_alloc.h:542: parse error at end of saved
function text
/usr/local/include/g++-v3/bits/stl_alloc.h:544: confused by earlier errors, bailing out