error building stable/9 on FreeBSD 10

Alexander Yerenkow yerenkow at gmail.com
Fri Nov 1 06:49:35 UTC 2013


I had same issues, since 10 is have some CLANG changes it is not ready to
cross-build 9.
I think this deserve PR as major problem.


2013/10/31 Luigi Rizzo <rizzo at iet.unipi.it>

> 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
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
>



-- 
Regards,
Alexander Yerenkow


More information about the freebsd-current mailing list