This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/17995] gcc-3.4.2/libstdc++-v3/libsupc++/eh_alloc.cc:34


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17995

--- Comment #18 from Cary Lewis <cary.lewis at gmail dot com> ---
I took your advice, and attempted to bootstrap gcc 4.2.4 with languages=c,c++

I received a very similar error:

make[4]: Entering directory
`/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/libsupc++'
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile
/tmp/gcc-build/./gcc/xgcc -shared-libgcc -B/tmp/gcc-build/./gcc -nostdinc++
-L/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/src
-L/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/src/.libs
-B/usr/local/gcc-4.2.4/i686-pc-sco3.2v5.0.7/bin/
-B/usr/local/gcc-4.2.4/i686-pc-sco3.2v5.0.7/lib/ -isystem
/usr/local/gcc-4.2.4/i686-pc-sco3.2v5.0.7/include -isystem
/usr/local/gcc-4.2.4/i686-pc-sco3.2v5.0.7/sys-include
-I/tmp/gcc-4.2.4/libstdc++-v3/../gcc
-I/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include/i686-pc-sco3.2v5.0.7
-I/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include
-I/tmp/gcc-4.2.4/libstdc++-v3/libsupc++  -fno-implicit-templates  -Wall -Wextra
-Wwrite-strings -Wcast-qual  -fdiagnostics-show-location=once 
-ffunction-sections -fdata-sections  -g -O2   -c -o eh_alloc.lo
../../../../gcc-4.2.4/libstdc++-v3/libsupc++/eh_alloc.cc
/tmp/gcc-build/./gcc/xgcc -shared-libgcc -B/tmp/gcc-build/./gcc -nostdinc++
-L/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/src
-L/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/src/.libs
-B/usr/local/gcc-4.2.4/i686-pc-sco3.2v5.0.7/bin/
-B/usr/local/gcc-4.2.4/i686-pc-sco3.2v5.0.7/lib/ -isystem
/usr/local/gcc-4.2.4/i686-pc-sco3.2v5.0.7/include -isystem
/usr/local/gcc-4.2.4/i686-pc-sco3.2v5.0.7/sys-include
-I/tmp/gcc-4.2.4/libstdc++-v3/../gcc
-I/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include/i686-pc-sco3.2v5.0.7
-I/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include
-I/tmp/gcc-4.2.4/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra
-Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -g -O2 -c
../../../../gcc-4.2.4/libstdc++-v3/libsupc++/eh_alloc.cc
In file included from
../../../../gcc-4.2.4/libstdc++-v3/libsupc++/eh_alloc.cc:37:
/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include/cstring: In function
'void* std::memchr(void*, int, size_t)':
/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include/cstring:101: error:
'void* std::memchr(void*, int, size_t)' conflicts with previous using
declaration 'void* memchr(void*, int, size_t)'
/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include/cstring: In function
'char* std::strchr(char*, int)':
/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include/cstring:107: error:
'char* std::strchr(char*, int)' conflicts with previous using declaration
'char* strchr(char*, int)'
/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include/cstring: In function
'char* std::strpbrk(char*, const char*)':
/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include/cstring:113: error:
'char* std::strpbrk(char*, const char*)' conflicts with previous using
declaration 'char* strpbrk(char*, const char*)'
/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include/cstring: In function
'char* std::strrchr(char*, int)':
/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include/cstring:119: error:
'char* std::strrchr(char*, int)' conflicts with previous using declaration
'char* strrchr(char*, int)'
/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include/cstring: In function
'char* std::strstr(char*, const char*)':
/tmp/gcc-build/i686-pc-sco3.2v5.0.7/libstdc++-v3/include/cstring:125: error:
'char* std::strstr(char*, const char*)' conflicts with previous using 

There must be something unique about the SCO environment that leads to this
error.

Maybe the way that the gcc 2.95.3 compiler gets installed.

I tried building gcc (c++) 3.4.3 with both the gcc 3.4.3 gcc compiler and the
2.95.3 gcc compiler.

Any other suggestions?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]