[Bug bootstrap/47147] New: gcc 4.6 fails to compile on NetBSD

js-gcc at webkeks dot org gcc-bugzilla@gcc.gnu.org
Sat Jan 1 17:43:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47147

           Summary: gcc 4.6 fails to compile on NetBSD
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: js-gcc@webkeks.org


/home/js/gcc-build/./prev-gcc/xgcc -B/home/js/gcc-build/./prev-gcc/
-B/usr/local/x86_64-unknown-netbsd5.1./bin/
-B/usr/local/x86_64-unknown-netbsd5.1./bin/
-B/usr/local/x86_64-unknown-netbsd5.1./lib/ -isystem
/usr/local/x86_64-unknown-netbsd5.1./include -isystem
/usr/local/x86_64-unknown-netbsd5.1./sys-include    -c -DHAVE_CONFIG_H -g -O2
-gtoggle  -I. -I/home/js/gcc-trunk/libiberty/../include  -W -Wall
-Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  -fpic
/home/js/gcc-trunk/libiberty/mempcpy.c -o pic/mempcpy.o; \
else true; fi
/home/js/gcc-trunk/libiberty/mempcpy.c:35:36: error: unknown type name ‘size_t’
/home/js/gcc-trunk/libiberty/mempcpy.c:38:34: error: unknown type name ‘size_t’

Looking at the file, it includes stddef.h, which does define size_t on NetBSD:

webkeks:/tmp$ cat test.c
#include <stddef.h>
size_t foo;
webkeks:/tmp$ gcc -c test.c
webkeks:/tmp$ 

So it seems that uding the build process, different headers are used which are
broken.



More information about the Gcc-bugs mailing list