From owner-freebsd-current@FreeBSD.ORG Tue Aug 3 20:02:38 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E4A216A4CE for ; Tue, 3 Aug 2004 20:02:38 +0000 (GMT) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BE5043D2F for ; Tue, 3 Aug 2004 20:02:38 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) i73K2aQD001646 for ; Tue, 3 Aug 2004 13:02:37 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost)i73K2a7c001645 for freebsd-current@freebsd.org; Tue, 3 Aug 2004 13:02:36 -0700 (PDT) (envelope-from sgk) Date: Tue, 3 Aug 2004 13:02:36 -0700 From: Steve Kargl To: freebsd-current@freebsd.org Message-ID: <20040803200236.GA1607@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: possible bug in gcc 3.4.2 on AMD64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 20:02:38 -0000 I'm trying to build GCC head on a newly installed amd64 FreeBSD system. In an email exchange on gcc@gcc.gnu.org, it was suggested that the FreeBSD system compiler may have a bug. Consider the following: cvs -qz9 -d :pserver:anoncvs@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. -- Steve