tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
build.sh Failure on Ubuntu
I was building for the MIPS Creator CI20 on Ubuntu 15.04 with the system
compiler. It was a fresh CVS checkout from this morning with nothing in
the objdir.
The tools and kernel built fine, but the first library to be compiled
(csu) failed:
./build.sh -U -a mipsel -m evbmips -j4 -u kernel=CI20 release
[...]
do-lib ===> .
--- do-lib ---
build_install ===> lib
--- build_install ---
dependall-csu ===> lib
dependall ===> lib/csu
--- dependall ---
--- gcrt0.o ---
--- crtbeginS.o ---
--- crt0.o ---
--- sysident_assym.h ---
--- gcrt0.o ---
# compile csu/gcrt0.o
/home/mike/netbsd/src/obj/tooldir.Linux-3.19.0-22-generic-x86_64/bin/mipsel--netbsd-gcc --sysroot=/home/mike/netbsd/src/obj/destdir.evbmips -I/home/mike/netbsd/src/lib/csu/arch/mips -DELFSIZE=_MIPS_SZPTR -I/home/mike/netbsd/src/libexec/ld.elf_so -I/home/mike/netbsd/src/lib/csu/common -I. -x assembler-with-cpp -c /home/mike/netbsd/src/lib/csu/arch/mips/crt0.S -o gcrt0.o.S.o
--- crtbeginS.o ---
# compile csu/crtbeginS.o
/home/mike/netbsd/src/obj/tooldir.Linux-3.19.0-22-generic-x86_64/bin/mipsel--netbsd-gcc -O2 -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror --sysroot=/home/mike/netbsd/src/obj/destdir.evbmips -I/home/mike/netbsd/src/lib/csu/arch/mips -DELFSIZE=_MIPS_SZPTR -I/home/mike/netbsd/src/libexec/ld.elf_so -I/home/mike/netbsd/src/lib/csu/common -I. -c -fPIC -DSHARED /home/mike/netbsd/src/lib/csu/common/crtbegin.c -o crtbeginS.o.o
--- crt0.o ---
# compile csu/crt0.o
/home/mike/netbsd/src/obj/tooldir.Linux-3.19.0-22-generic-x86_64/bin/mipsel--netbsd-gcc --sysroot=/home/mike/netbsd/src/obj/destdir.evbmips -I/home/mike/netbsd/src/lib/csu/arch/mips -DELFSIZE=_MIPS_SZPTR -I/home/mike/netbsd/src/libexec/ld.elf_so -I/home/mike/netbsd/src/lib/csu/common -I. -x assembler-with-cpp -c /home/mike/netbsd/src/lib/csu/arch/mips/crt0.S -o crt0.o.S.o
--- sysident_assym.h ---
# create csu/sysident_assym.h
cat /home/mike/netbsd/src/lib/csu/common/sysident_assym.cf | /home/mike/netbsd/src/obj/tooldir.Linux-3.19.0-22-generic-x86_64/bin/nbgenassym -- /home/mike/netbsd/src/obj/tooldir.Linux-3.19.0-22-generic-x86_64/bin/mipsel--netbsd-gcc -O2 -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror --sysroot=/home/mike/netbsd/src/obj/destdir.evbmips -I/home/mike/netbsd/src/lib/csu/arch/mips -DELFSIZE=_MIPS_SZPTR -I/home/mike/netbsd/src/libexec/ld.elf_so -I/home/mike/netbsd/src/lib/csu/common -I. > sysident_assym.h.tmp && mv -f sysident_assym.h.tmp sysident_assym.h
--- crtbeginS.o ---
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:30:9: error: expected declaration specifiers or '...' before string constant
__RCSID("$NetBSD: crtbegin.c,v 1.9 2014/05/06 16:02:10 joerg Exp $");
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:36:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
__dso_hidden const fptr_t __JCR_LIST__[0] __section(".jcr");
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:38:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
__weakref_visible void Jv_RegisterClasses(const fptr_t *)
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:42:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
__dso_hidden const fptr_t __aligned(sizeof(void *)) __CTOR_LIST__[] __section(".ctors") = {
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:45:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
__dso_hidden extern const fptr_t __CTOR_LIST_END__[];
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:49:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
__dso_hidden void *__dso_handle = &__dso_handle;
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:51:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
__weakref_visible void cxa_finalize(void *)
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:62:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'
long __EH_FRAME_LIST__[0] __section(".eh_frame");
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:64:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
__weakref_visible void register_frame_info(const void *, const void *)
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:66:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
__weakref_visible void deregister_frame_info(const void *)
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c: In function '__do_global_ctors_aux':
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:72:41: error: expected declaration specifiers before '__used'
static void __do_global_ctors_aux(void) __used;
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:74:23: error: expected declaration specifiers or '...' before string constant
static void __section(".text.startup")
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:101:1: error: expected declaration specifiers before '__dso_hidden'
__dso_hidden const fptr_t __aligned(sizeof(void *)) __DTOR_LIST__[] __section(".dtors") = {
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:103:2: error: expected declaration specifiers before ';' token
};
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:104:1: error: expected declaration specifiers before '__dso_hidden'
__dso_hidden extern const fptr_t __DTOR_LIST_END__[];
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:107:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__used'
static void __do_global_dtors_aux(void) __used;
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:109:23: error: expected declaration specifiers or '...' before string constant
static void __section(".text.exit")
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:134:1: error: expected '{' at end of input
}
^
/home/mike/netbsd/src/lib/csu/common/crtbegin.c: At top level:
--- crt0.o ---
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S: Assembler messages:
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:51: Error: : no such section
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:51: Error: junk at end of line, first unrecognized character is `('
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:51: Error: junk at end of line, first unrecognized character is `('
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:51: Error: Unrecognized opcode `_c_label(__start):'
--- crtbeginS.o ---
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:69:13: error: 'dwarf_eh_object' defined but not used [-Werror=unused-variable]
static long dwarf_eh_object[8];
^
--- crt0.o ---
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:56: Error: missing ')'
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:56: Error: bad expression
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:56: Error: Illegal operands `lw $25,%call16(_C_LABEL(___start))($28)'
--- crtbeginS.o ---
/home/mike/netbsd/src/lib/csu/common/crtbegin.c:72:13: error: '__do_global_ctors_aux' defined but not used [-Werror=unused-function]
static void __do_global_ctors_aux(void) __used;
^
--- crt0.o ---
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:60: Error: junk at end of line, first unrecognized character is `('
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:60: Error: expected comma after name `_C_LABEL' in .size directive
--- crtbeginS.o ---
cc1: all warnings being treated as errors
*** [crtbeginS.o] Error code 1
nbmake[7]: stopped in /home/mike/netbsd/src/lib/csu
--- crt0.o ---
*** [crt0.o] Error code 1
nbmake[7]: stopped in /home/mike/netbsd/src/lib/csu
--- gcrt0.o ---
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S: Assembler messages:
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:51: Error: : no such section
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:51: Error: junk at end of line, first unrecognized character is `('
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:51: Error: junk at end of line, first unrecognized character is `('
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:51: Error: Unrecognized opcode `_c_label(__start):'
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:56: Error: missing ')'
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:56: Error: bad expression
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:56: Error: Illegal operands `lw $25,%call16(_C_LABEL(___start))($28)'
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:60: Error: junk at end of line, first unrecognized character is `('
/home/mike/netbsd/src/lib/csu/arch/mips/crt0.S:60: Error: expected comma after name `_C_LABEL' in .size directive
*** [gcrt0.o] Error code 1
nbmake[7]: stopped in /home/mike/netbsd/src/lib/csu
--- sysident_assym.h ---
In file included from /usr/include/sys/param.h:23:0,
from /tmp/genassym.VqajXB/assym.c:6:
/home/mike/netbsd/src/obj/destdir.evbmips/usr/include/stddef.h:58:20: error: missing binary operator before token "("
#if __GNUC_PREREQ__(4, 0)
^
/tmp/genassym.VqajXB/assym.c: In function 'f4':
/tmp/genassym.VqajXB/assym.c:13:46: error: '__NetBSD_Version__' undeclared (first use in this function)
__asm("XYZZY __NetBSD_Version__ %0" : : "n" (__NetBSD_Version__));
^
/tmp/genassym.VqajXB/assym.c:13:46: note: each undeclared identifier is reported only once for each function it appears in
*** [sysident_assym.h] Error code 1
nbmake[7]: stopped in /home/mike/netbsd/src/lib/csu
4 errors
nbmake[7]: stopped in /home/mike/netbsd/src/lib/csu
*** [dependall] Error code 2
nbmake[6]: stopped in /home/mike/netbsd/src/lib/csu
1 error
nbmake[6]: stopped in /home/mike/netbsd/src/lib/csu
*** Failed target: dependall-csu
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="lib/"; real="/home/mike/netbsd/src/lib" ;; *) this="lib/${dir}/"; real="/home/mike/netbsd/src/lib/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/mike/netbsd/src/obj/tooldir.Linux-3.19.0-22-generic-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget csu dependall
*** Error code 2
Stop.
nbmake[5]: stopped in /home/mike/netbsd/src/lib
*** [build_install] Error code 1
nbmake[4]: stopped in /home/mike/netbsd/src/lib
1 error
nbmake[4]: stopped in /home/mike/netbsd/src/lib
*** [do-lib] Error code 2
nbmake[3]: stopped in /home/mike/netbsd/src
1 error
nbmake[3]: stopped in /home/mike/netbsd/src
*** [build] Error code 2
nbmake[2]: stopped in /home/mike/netbsd/src
1 error
nbmake[2]: stopped in /home/mike/netbsd/src
*** [distribution] Error code 2
nbmake[1]: stopped in /home/mike/netbsd/src
1 error
nbmake[1]: stopped in /home/mike/netbsd/src
*** [release] Error code 2
nbmake: stopped in /home/mike/netbsd/src
1 error
nbmake: stopped in /home/mike/netbsd/src
ERROR: Failed to make release
*** BUILD ABORTED ***
Home |
Main Index |
Thread Index |
Old Index