Bug 7979 - OpenUNIX8/Unixware stage 3 failing in eh_alloc.cc
Summary: OpenUNIX8/Unixware stage 3 failing in eh_alloc.cc
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 3.3
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build
: 21776 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-19 13:46 UTC by wantbottom
Modified: 2006-05-04 21:10 UTC (History)
3 users (show)

See Also:
Host: i686-unknown-sysv5
Target: i686-unknown-sysv5
Build: i686-unknown-sysv5
Known to work:
Known to fail:
Last reconfirmed: 2003-06-26 20:34:51


Attachments
eh_alloc.i (4.63 KB, text/x-c)
2003-05-21 15:15 UTC, wantbottom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wantbottom 2002-09-19 13:46:00 UTC
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
Comment 1 Dara Hazeghi 2003-05-25 05:18:51 UTC
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
Comment 2 Dara Hazeghi 2003-06-21 01:01:41 UTC
Hello,

just a reminder that this bug is still awaiting feedback. Does this problem still occur with gcc 3.3? 
Thanks,

Dara
Comment 3 wantbottom 2003-06-25 01:47:30 UTC
I'm investigating - please give me some more days. Thanx!
Comment 4 wantbottom 2003-06-26 12:09:23 UTC
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 

Comment 5 Andrew Pinski 2003-06-26 20:34:51 UTC
Submitter confirmed it still fails with 3.3 at the same place, looks like libstc++ does not 
support OpenUNIX.
Comment 6 Andrew Pinski 2003-11-08 23:47:58 UTC
Does this work in 3.3.2, there were patches to fix some of SCO's OS's. Can you try 3.3.2?
Comment 7 Andrew Pinski 2003-12-01 00:52:33 UTC
This was fixed for 3.3.2.
Comment 8 Andreas Leitgeb 2003-12-10 17:51:58 UTC
Doesn't seem to be fixed for me :-(
Comment 9 Dara Hazeghi 2003-12-10 18:03:00 UTC
That's unfortunate. Is the failure still in the same spot?
Comment 10 Benjamin Kosnik 2003-12-10 22:10:53 UTC
Lowest priority bug at the moment.
Comment 11 wantbottom 2004-11-25 14:46:33 UTC
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?
Comment 12 David Sullivan 2005-04-13 22:46:29 UTC
This bug also occurs on OpenServer 5 (i686-pc-sco3.2v5.0.6).
Comment 13 Andrew Pinski 2005-05-27 01:09:15 UTC
*** Bug 21776 has been marked as a duplicate of this bug. ***
Comment 14 Eric Brunson 2006-05-04 17:43:04 UTC
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).
Comment 15 Paolo Carlini 2006-05-04 18:34:16 UTC
To be honest, I dont't think this is, strictly speaking, a *bug*, because this target is not officially supported.
Comment 16 Eric Brunson 2006-05-04 19:44:44 UTC
Okay, I'll buy that.

FWIW, gcc-core-4.0.3 builds with no complaints.  Maybe the resolution is "Upgrade".
Comment 17 Steven Bosscher 2006-05-04 21:10:13 UTC
Too old.  Upgrade.  :-)