error building stable/9 on FreeBSD 10

From: Luigi Rizzo <rizzo_at_iet.unipi.it>
Date: Thu, 31 Oct 2013 20:57:56 +0100
I am having trouble building stable/9 on FreeBSD 10:

luigi_at_bsd10:~ # uname -a
FreeBSD bsd10 10.0-BETA1 FreeBSD 10.0-BETA1 #0 r256420: Sun Oct 13 01:43:07 UTC
2013     root_at_snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

# ./do TREE TARGET
#	is a script that invokes a make in the source tree (first argument),
#	for a speciic target (second argument) and with a few options to
#	do the build in a local subtree.
#	Works fine building head on FreeBSD 10 and
#	building 9 and head on FreeBSD 9

luigi_at_bsd10:~ ./do RELENG_9 toolchain

<snip>
...
===> gnu/usr.bin/cc/cc_tools (depend)
--- genattrtab ---
--- genautomata ---
--- genconditions ---
--- genconfig ---
--- genconstants ---
--- genemit ---
--- genopinit ---
--- genoutput ---
--- genconstants ---
cc -O2 -pipe -I. -DGCCVER=\"4.2\" -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr/home/luigi/FreeBSD/RELENG_9/../usr/obj-pico-amd64/usr/home/luigi/FreeBSD/RELENG_9/tmp/usr\" -I/usr/home/luigi/FreeBSD/RELENG_9/../usr/obj-pico-amd64/usr/home/luigi/FreeBSD/RELENG_9/tmp/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -I/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/include -I/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libcpp/include -I/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libdecnumber -g -DGENERATOR_FILE -DHAVE_CONFIG_H -std=gnu89   -I/usr/home/luigi/FreeBSD/RELENG_9/../usr/obj-pico-amd64/usr/home/luigi/FreeBSD/RELENG_9/tmp/legacy/usr/include  -static -L/usr/home/luigi/FreeBSD/RELENG_9/../usr/obj-pico-amd64/usr/home/luigi/FreeBSD/RELENG_9/tmp/legacy/usr/lib -o genconstants genconstants.o rtl.o read-rtl.o ggc-none.o vec.o min-insn-modes.o gensupport.o print-rtl.o errors.o libiberty.a -lm
print-rtl.o: In function `print_rtx':
/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/print-rtl.c:(.text+0x631): undefined reference to `dump_addr'
/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/print-rtl.c:(.text+0x6d1): undefined reference to `insn_file'
/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/print-rtl.c:(.text+0x6e9): undefined reference to `insn_file'
/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/print-rtl.c:(.text+0x6f4): undefined reference to `insn_line'
/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/print-rtl.c:(.text+0x772): undefined reference to `reg_names'
/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/print-rtl.c:(.text+0xc04): undefined reference to `dump_addr'
/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/print-rtl.c:(.text+0xc61): undefined reference to `print_node_brief'
/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/print-rtl.c:(.text+0xd39): undefined reference to `bitmap_print'
/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/print-rtl.c:(.text+0xe62): undefined reference to `real_to_decimal'
/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/print-rtl.c:(.text+0xe90): undefined reference to `real_to_hexadecimal'
/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/print-rtl.c:(.text+0xfac): undefined reference to `mode_size'
/usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/print-rtl.c:(.text+0x1027): undefined reference to `mode_size'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [genconstants] Error code 1

make[4]: stopped in /usr/home/luigi/FreeBSD/RELENG_9/gnu/usr.bin/cc/cc_tools
<more of the same>


any idea on what is going wrong ?

cheers
luigi
Received on Thu Oct 31 2013 - 18:56:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:43 UTC