This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bug compiling libstdc++ under solaris
- To: brendan at cygnus dot com
- Subject: Re: bug compiling libstdc++ under solaris
- From: baron at peanut dot engr dot sgi dot com (Baron Roberts)
- Date: Wed, 17 Feb 1999 11:57:57 -0800 (PST)
- Cc: baron at sgi dot com, jason at cygnus dot com, egcs-bugs at cygnus dot com
I don't have a Sun handy but one interesting data point is that RedHat
Linux does not provide a getwchar function or macro. So this would
explain why I did not hit this problem when building egcs on Linux.
Another interesting data point is that my patch did not include anything
that would trigger a call to getwchar. Perhaps I am misunderstanding your
question. Is this just something else that came up when trying to get
the wchar_t support working rather than a problem with the patch I sent?
In any case I am not sure where the call to getwchar is coming from.
If I can get hold of a Sun (not too many at SGI :-)) I will try to reproduce
this.
By the way, I sent another patch this morning to fix the operator<<
in bastring.cc. The call to the write method must use
s.length() * sizeof(charT)
instead of just s.length() when specifying the stream size. The way
it is now will work for char* but not for wchar_t*.
Sorry I cannot be of more direct help.
Baron
Brendan Kehoe writes:
> With the introduction of the wchar stuff, I'm seeing this building under
> solaris2.5.1:
>
> bld-egcs/gcc/xgcc -Bbld-egcs/gcc/ -Begcs-inst/egcs/sparc-sun-solaris2.5.1/bin/ -c -g -O2 -Wpointer-arith -Wnested-externs -Woverloaded-virtual -Wbad-function-cast -Winline -Wwrite-strings -pedantic -Wno-long-long -fno-implicit-templates -I/home/brendan/egcs/libstdc++ -I/home/brendan/egcs/libstdc++/stl -I../libio -I/home/brendan/egcs/libstdc++/../libio -nostdinc++ -DC `for N in REP MAIN TRAITS ADDSS ADDPS ADDCS ADDSP ADDSC EQSS EQPS EQSP NESS NEPS NESP LTSS LTPS LTSP GTSS GTPS GTSP LESS LEPS LESP GESS GEPS GESP; do echo " -D${N}"; done` \
> egcs/libstdc++/sinst.cc -o cstrmain.o
> In file included from egcs/libstdc++/cwchar:6,
> from egcs/libstdc++/std/straits.h:139,
> from egcs/libstdc++/std/bastring.h:36,
> from egcs/libstdc++/string:6,
> from egcs/libstdc++/sinst.cc:36:
> /usr/include/wchar.h:60: arguments given to macro `getwchar'
> make[2]: *** [bigstmp-string] Error 1
>
> B
>
> --
> Brendan Kehoe brendan@cygnus.com
> Cygnus Solutions, Sunnyvale, CA +1 408 542 9600
>
> Web page: http://www.zen.org/~brendan/
>
____________________________________________________
Baron Roberts Phone (650) 933-1653
http://www.sgi.com mailto:baron@sgi.com
Application Technology Group, Silicon Graphics Inc.
____________________________________________________