NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
toolchain/51082: build.sh fails on release cross-compilation
>Number: 51082
>Category: toolchain
>Synopsis: build.sh fails on release cross-compilation
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 21 11:50:00 +0000 2016
>Originator: Frédéric Fauberteau
>Release: netbsd-current
>Organization:
>Environment:
Linux ultralisk 4.5.1-1-ARCH #1 SMP PREEMPT Thu Apr 14 19:19:32 CEST 2016 x86_64 GNU/Linux
>Description:
I can successfuly build a netbsd-7 release for amd64 from a Linux box. But when I try to build a netbsd-current release under the same conditions as those, I get the following errors:
# compile backend/gengtype.lo
c++ -O -I. -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/usr.bin/backend/../gcc/arch/x86_64 -DIN_GCC -DHAVE_CONFIG_H -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/. -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../include -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../libcpp/include -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../libdecnumber -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../libdecnumber/dpd -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../libbacktrace -DGENERATOR_FILE -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/usr.bin/backend/.. -c -o gengtype.lo.o -UGENERATOR_FILE -DHOST_GENERATOR_FILE /home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/gengtype.c
In file included from /home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/usr.bin/backend/../gcc/arch/x86_64/config.h:12:0,
from /home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/gengtype.c:21:
/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../include/ansidecl.h:171:64: error: ambiguating new declaration of 'char* basename(const char*)'
# define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m)))
^
/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../include/libiberty.h:112:64: note: in expansion of macro 'ATTRIBUTE_NONNULL'
extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);
^
In file included from /home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/system.h:236:0,
from /home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/gengtype.c:26:
/usr/include/string.h:596:26: note: old declaration 'const char* basename(const char*)'
extern "C++" const char *basename (const char *__filename)
^
In file included from /home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/system.h:674:0,
from /home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/gengtype.c:26:
/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../include/libiberty.h:691:50: error: declaration of 'int strverscmp(const char*, const char*)' has a different exception specifier
extern int strverscmp (const char *, const char *);
^
/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../include/libiberty.h:664:12: error: from previous declaration 'int strverscmp(const char*, const char*) throw ()'
extern int strverscmp (const char *, const char *);
^
*** Failed target: gengtype.lo
*** Failed command: c++ -O -I. -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/usr.bin/backend/../gcc/arch/x86_64 -DIN_GCC -DHAVE_CONFIG_H -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/. -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../include -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../libcpp/include -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../libdecnumber -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../libdecnumber/dpd -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/../libbacktrace -DGENERATOR_FILE -I/home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/usr.bin/backend/.. -c -o gengtype.lo.o -UGENERATOR_FILE -DHOST_GENERATOR_FILE /home/triaxx/dev/nbsd/netbsd-current/usr/src/external/gpl3/gcc/dist/gcc/gengtype.
c
*** Error code 1
>How-To-Repeat:
./build.sh -m amd64 -D ../destdir -O ../objdir -R ../releasedir -T ../tooldir -U release
>Fix:
Home |
Main Index |
Thread Index |
Old Index