I'm trying to build GCC head on a newly installed amd64 FreeBSD system. In an email exchange on gcc_at_gcc.gnu.org, it was suggested that the FreeBSD system compiler may have a bug. Consider the following: cvs -qz9 -d :pserver:anoncvs_at_gcc.gnu.org:/cvs/gcc co gcc mkdir obj cd obj ../gcc/configure --enable-languages=c,f95 --prefix=$HOME gmake bootstrap This dies in stage1 with gmake[2]: Entering directory `/home/sgk/obj/gcc' gcc -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -fno-common -DHAVE_CONFIG_H -o cc1 \ c-parse.o c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-gimplify.o tree-mudflap.o c-pretty-print.o main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a ../libiberty/libiberty.a ./../intl/libintl.a ../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a libbackend.a(builtins.o)(.text+0x14018): In function `floor_log2': ../../gcc/gcc/toplev.h:180: undefined reference to `__clzdi2' libbackend.a(dwarf2out.o)(.text+0x288): In function `floor_log2': ../../gcc/gcc/toplev.h:180: undefined reference to `__clzdi2' libbackend.a(expmed.o)(.text+0x5c98): In function `floor_log2': ../../gcc/gcc/toplev.h:180: undefined reference to `__clzdi2' libbackend.a(local-alloc.o)(.text+0x38f8): In function `floor_log2': ../../gcc/gcc/toplev.h:180: undefined reference to `__clzdi2' libbackend.a(real.o)(.text+0x3138): In function `floor_log2': ../../gcc/gcc/toplev.h:180: undefined reference to `__clzdi2' libbackend.a(rtlanal.o)(.text+0x87d8):../../gcc/gcc/toplev.h:180: more undefined references to `__clzdi2' follow gmake[2]: *** [cc1] Error 1 gmake[2]: Leaving directory `/home/sgk/obj/gcc' gmake[1]: *** [stage1_build] Error 2 gmake[1]: Leaving directory `/home/sgk/obj/gcc' gmake: *** [bootstrap] Error 2 I was told that __clzdi2 should be a gcc builtin function and that it should be in libgcc.a. nm(1) does not reveal this symbol. -- SteveReceived on Tue Aug 03 2004 - 18:02:38 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:04 UTC