Build failure after recent checkins
Jan-Benedict Glaw
jbglaw at lug-owl.de
Sun Nov 27 23:27:16 UTC 2005
On Sun, 2005-11-27 23:52:49 +0100, Peter S. Mazinger <ps.m at gmx.net> wrote:
> On Sun, 27 Nov 2005, Jan-Benedict Glaw wrote:
> > 12537 worked for me, 12544 doesn't:
> > [...]
> > vax-linux-uclibc-gcc -c libc/string/stpcpy.c -o libc/string/stpcpy.o -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-stack-protector -fno-builtin -nostdinc -D_LIBC -I./include -I. -Os -funit-at-a-time -isystem /home/jbglaw/vax-linux/scm/build-20051127-143504-vax-linux-uclibc/install/usr/lib/gcc/vax-linux-uclibc/4.2.0/include -DNDEBUG
> > In file included from libc/string/stpcpy.c:10:
> > libc/string/wstring.c:75: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
> > libc/string/wstring.c:76: warning: type defaults to 'int' in declaration of 'wchar_t'
> > libc/string/wstring.c:76: error: expected ';', ',' or ')' before '*' token
> > libc/string/wstring.c:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
> > libc/string/wstring.c:79: warning: type defaults to 'int' in declaration of 'wchar_t'
> > libc/string/wstring.c:79: error: expected ';', ',' or ')' before '*' token
> > libc/string/wstring.c:80: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
> > make: *** [libc/string/stpcpy.o] Error 1
> >
> > My cross-gcc is an up-to-date 4.2.0 snapshot. This looks like being a
> > problem with the recent hiding work.
>
> I didn't even know that 4.1 is out, well try to move attribute_hidden
4.1 has been already branched off, 4.2 is the current SVN HEAD.
> around in the line and see where it is accepted. If the current syntax
> fails, then not even glibc can be built.
Just tracked it down, really. It's not related to the hidden
visibility at all. What seems to be missing is a typedef for wchar_t
at this point. The error message is just wrong. If I change
s/wchar_t/char/ in that specific file (at around line 75), gcc accepts
this.
If we look at the head of wstring.c, <wchar.h> is only included in the
WANT_WIDE case. So it's probably only broken for #undef WANT_WIDE...
MfG, JBG
--
Jan-Benedict Glaw jbglaw at lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20051128/39e4a928/attachment-0002.pgp
More information about the uClibc
mailing list