After successfully compiling stage1 and stage2 the final compile is failing: /home/doehrm/gcc-3.2/compile/gcc/xgcc -shared-libgcc -B/home/doehrm/gcc-3.2/compile/gcc/ -nostdinc++ -L/home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/src -L/home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/src/.libs -B/usr/local/i686-unknown-sysv5OpenUNIX8.0.1/bin/ -B/usr/local/i686-unknown-sysv5OpenUNIX8.0.1/lib/ -isystem /usr/local/i686-unknown-sysv5OpenUNIX8.0.1/include -I../../../../libstdc++-v3/../gcc -I../../../../libstdc++-v3/../include -I/home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/i686-unknown-sysv5OpenUNIX8.0.1 -I/home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include -I../../../../libstdc++-v3/libsupc++ -g -O2 -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -c ../../../../libstdc++-v3/libsupc++/eh_alloc.cc -o eh_alloc.o In file included from ../../../../libstdc++-v3/libsupc++/eh_alloc.cc:33: /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstdlib: In function `long int std::abs(long int)': /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstdlib:119: ` long int std::abs(long int)' conflicts with previous using declaration `long int abs(long int)' /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstdlib: In function `ldiv_t std::div(long int, long int)': /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstdlib:122: ` ldiv_t std::div(long int, long int)' conflicts with previous using declaration `ldiv_t div(long int, long int)' In file included from ../../../../libstdc++-v3/libsupc++/eh_alloc.cc:34: /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstring: In function `void* std::memchr(void*, int, unsigned int)': /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstring:101: ` void* std::memchr(void*, int, unsigned int)' conflicts with previous using declaration `void* memchr(void*, int, unsigned int)' /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstring:101: invalid conversion from `const void*' to `void*' /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstring: In function `char* std::strchr(char*, int)': /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstring:107: ` char* std::strchr(char*, int)' conflicts with previous using declaration ` char* strchr(char*, int)' /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstring: In function `char* std::strpbrk(char*, const char*)': /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstring:113: ` char* std::strpbrk(char*, const char*)' conflicts with previous using declaration `char* strpbrk(char*, const char*)' /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstring: In function `char* std::strrchr(char*, int)': /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstring:119: ` char* std::strrchr(char*, int)' conflicts with previous using declaration ` char* strrchr(char*, int)' /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstring: In function `char* std::strstr(char*, const char*)': /home/doehrm/gcc-3.2/compile/i686-unknown-sysv5OpenUNIX8.0.1/libstdc++-v3/include/cstring:125: ` char* std::strstr(char*, const char*)' conflicts with previous using declaration `char* strstr(char*, const char*)' gmake[4]: *** [eh_alloc.lo] Error 1 I attached the preprocessed output of eh_alloc.cc. Release: gcc-3.2 release Environment: - OpenUNIX ou801 5 8.0.1 i386 x86at Caldera UNIX_SVR5 - bootstrapped with gcc-2.95.3p1 - binutils 2.13 (as and ld) How-To-Repeat: Try to bootstrap gcc-3.2 on OU8
Hello, would it be possible for you to check whether this problem still occurs on gcc 3.3? The STL library has gone through quite a bit since 3.2. Thanks, Dara
Hello, just a reminder that this bug is still awaiting feedback. Does this problem still occur with gcc 3.3? Thanks, Dara
I'm investigating - please give me some more days. Thanx!
Same error still: /home/doehrm/gcc-3.3/compile/gcc/xgcc -shared-libgcc -B/home/doehrm/gcc- 3.3/compile/gcc/ -nostdinc++ -L/home/doehrm/gcc-3.3/compile/i586-unknown- sysv5/libstdc++-v3/src -L/home/doehrm/gcc-3.3/compile/i586-unknown- sysv5/libstdc++-v3/src/.libs -B/usr/gcc33/i586-unknown-sysv5/bin/ - B/usr/gcc33/i586-unknown-sysv5/lib/ -isystem /usr/gcc33/i586-unknown- sysv5/include -I../../../../libstdc++-v3/../gcc -I../../../../libstdc++- v3/../include -I/home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++- v3/include/i586-unknown-sysv5 -I/home/doehrm/gcc-3.3/compile/i586-unknown- sysv5/libstdc++-v3/include -I../../../../libstdc++-v3/libsupc++ -g -O2 -fno- implicit-templates -Wall -Wno-format -W -Wwrite-strings -fdiagnostics-show- location=once -ffunction-sections -fdata-sections -c ../../../../libstdc++- v3/libsupc++/eh_alloc.cc -o eh_alloc.o In file included from ../../../../libstdc++-v3/libsupc++/eh_alloc.cc:33: /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++-v3/include/cstdlib: In function `long int std::abs(long int)': /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++- v3/include/cstdlib:119: error: ` long int std::abs(long int)' conflicts with previous using declaration `long int abs(long int)' /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++-v3/include/cstdlib: In function `ldiv_t std::div(long int, long int)': /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++- v3/include/cstdlib:122: error: ` ldiv_t std::div(long int, long int)' conflicts with previous using declaration `ldiv_t div(long int, long int)' In file included from ../../../../libstdc++-v3/libsupc++/eh_alloc.cc:34: /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++-v3/include/cstring: In function `void* std::memchr(void*, int, unsigned int)': /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++- v3/include/cstring:101: error: ` void* std::memchr(void*, int, unsigned int)' conflicts with previous using declaration `void* memchr(void*, int, unsigned int)' /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++- v3/include/cstring:101: error: invalid conversion from `const void*' to `void*' /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++-v3/include/cstring: In function `char* std::strchr(char*, int)': /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++- v3/include/cstring:107: error: ` char* std::strchr(char*, int)' conflicts with previous using declaration ` char* strchr(char*, int)' /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++-v3/include/cstring: In function `char* std::strpbrk(char*, const char*)': /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++- v3/include/cstring:113: error: ` char* std::strpbrk(char*, const char*)' conflicts with previous using declaration `char* strpbrk(char*, const char*)' /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++-v3/include/cstring: In function `char* std::strrchr(char*, int)': /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++- v3/include/cstring:119: error: ` char* std::strrchr(char*, int)' conflicts with previous using declaration ` char* strrchr(char*, int)' /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++-v3/include/cstring: In function `char* std::strstr(char*, const char*)': /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++- v3/include/cstring:125: error: ` char* std::strstr(char*, const char*)' conflicts with previous using declaration `char* strstr(char*, const char*)' In file included from /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++- v3/include/i586-unknown-sysv5/bits/gthr-default.h:38, from /home/doehrm/gcc-3.3/compile/i586-unknown-sysv5/libstdc++- v3/include/i586-unknown-sysv5/bits/gthr.h:98, from ../../../../libstdc++-v3/libsupc++/eh_alloc.cc:39: /usr/include/unistd.h: At global scope: /usr/include/unistd.h:266: error: `exit' is already declared in this scope gmake[4]: *** [eh_alloc.lo] Error 1 gmake[4]: Leaving directory `/home/doehrm/gcc-3.3/compile/i586-unknown- sysv5/libstdc++-v3/libsupc++' gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory `/home/doehrm/gcc-3.3/compile/i586-unknown- sysv5/libstdc++-v3' gmake[2]: *** [all-recursive-am] Error 2 gmake[2]: Leaving directory `/home/doehrm/gcc-3.3/compile/i586-unknown- sysv5/libstdc++-v3' gmake[1]: *** [all-target-libstdc++-v3] Error 2 gmake[1]: Leaving directory `/home/doehrm/gcc-3.3/compile' gmake: *** [bootstrap] Error 2 Configured was ../configure --prefix=/usr/gcc33 --enable-shared --enable-static --enable- threads --host=i586-unknown-sysv5 --with-gnu-as=/usr/gnu/bin/as
Submitter confirmed it still fails with 3.3 at the same place, looks like libstc++ does not support OpenUNIX.
Does this work in 3.3.2, there were patches to fix some of SCO's OS's. Can you try 3.3.2?
This was fixed for 3.3.2.
Doesn't seem to be fixed for me :-(
That's unfortunate. Is the failure still in the same spot?
Lowest priority bug at the moment.
This is still true for 3.4.3... /home/doehrm/gcc-3.4.3/uw7/gcc/xgcc -shared-libgcc -B/home/doehrm/gcc-3.4.3/uw7/gcc/ -nostdinc++ -L/home/doehr m/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/src -L/home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++- v3/src/.libs -B/opt/gcc3/i586-unknown-sysv5/bin/ -B/opt/gcc3/i586-unknown-sysv5/lib/ -isystem /opt/gcc3/i586-u nknown-sysv5/include -isystem /opt/gcc3/i586-unknown-sysv5/sys-include -I/home/doehrm/gcc-3.4.3/libstdc++-v3/. ./gcc -I/home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/i586-unknown-sysv5 -I/home/doehrm/g cc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include -I/home/doehrm/gcc-3.4.3/libstdc++-v3/libsupc++ -O2 -g -O 2 -g -O2 -fno-implicit-templates -Wall -W -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunct ion-sections -fdata-sections -c /home/doehrm/gcc-3.4.3/libstdc++-v3/libsupc++/eh_alloc.cc -o eh_alloc.o In file included from /home/doehrm/gcc-3.4.3/libstdc++-v3/libsupc++/eh_alloc.cc:33: /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstdlib: In function `long int std::abs(lon g int)': /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstdlib:123: error: `long int std::abs(long int)' conflicts with previous using declaration `long int abs(long int)' /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstdlib: In function `ldiv_t std::div(long int, long int)': /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstdlib:126: error: `ldiv_t std::div(long i nt, long int)' conflicts with previous using declaration `ldiv_t div(long int, long int)' In file included from /home/doehrm/gcc-3.4.3/libstdc++-v3/libsupc++/eh_alloc.cc:34: /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstring: In function `void* std::memchr(voi d*, int, size_t)': /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstring:101: error: `void* std::memchr(void *, int, size_t)' conflicts with previous using declaration `void* memchr(void*, int, size_t)' /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstring:101: error: invalid conversion from `const void*' to `void*' /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstring: In function `char* std::strchr(cha r*, int)': /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstring:107: error: `char* std::strchr(char *, int)' conflicts with previous using declaration `char* strchr(char*, int)' /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstring: In function `char* std::strpbrk(ch ar*, const char*)': /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstring:113: error: `char* std::strpbrk(cha r*, const char*)' conflicts with previous using declaration `char* strpbrk(char*, const char*)' /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstring: In function `char* std::strrchr(ch ar*, int)': /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstring:119: error: `char* std::strrchr(cha r*, int)' conflicts with previous using declaration `char* strrchr(char*, int)' /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstring: In function `char* std::strstr(cha r*, const char*)': /home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/include/cstring:125: error: `char* std::strstr(char *, const char*)' conflicts with previous using declaration `char* strstr(char*, const char*)' gmake[4]: *** [eh_alloc.lo] Error 1 gmake[4]: Leaving directory `/home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3/libsupc++' gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory `/home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/home/doehrm/gcc-3.4.3/uw7/i586-unknown-sysv5/libstdc++-v3' gmake[1]: *** [all-target-libstdc++-v3] Error 2 gmake[1]: Leaving directory `/home/doehrm/gcc-3.4.3/uw7' Any news on this?
This bug also occurs on OpenServer 5 (i686-pc-sco3.2v5.0.6).
*** Bug 21776 has been marked as a duplicate of this bug. ***
This bug is still present in gcc-3.4.6 on UnixWare (running 7.1.4, but there's no reason not to suspect all versions).
To be honest, I dont't think this is, strictly speaking, a *bug*, because this target is not officially supported.
Okay, I'll buy that. FWIW, gcc-core-4.0.3 builds with no complaints. Maybe the resolution is "Upgrade".
Too old. Upgrade. :-)