From owner-freebsd-current@FreeBSD.ORG Thu May 5 16:51:38 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CCC31065673; Thu, 5 May 2011 16:51:38 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 210098FC08; Thu, 5 May 2011 16:51:37 +0000 (UTC) Received: by pzk27 with SMTP id 27so1376823pzk.13 for ; Thu, 05 May 2011 09:51:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.14.37 with SMTP id m5mr3391486pbc.474.1304614297454; Thu, 05 May 2011 09:51:37 -0700 (PDT) Received: by 10.68.40.4 with HTTP; Thu, 5 May 2011 09:51:37 -0700 (PDT) In-Reply-To: <20110505155551.GA99006@freebsd.org> References: <201105040107.p4417NTR048534@pozo.com> <4DC0F46C.3020806@FreeBSD.org> <201105041344.p44DiOId032272@pozo.com> <4DC160B9.5060004@FreeBSD.org> <4DC2A0E5.5040602@zedat.fu-berlin.de> <20110505135458.GA79622@freebsd.org> <20110505155551.GA99006@freebsd.org> Date: Thu, 5 May 2011 18:51:37 +0200 Message-ID: From: Olivier Smedts To: Roman Divacky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "O. Hartmann" , current@freebsd.org Subject: Re: Clang error make buildworld X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 05 May 2011 16:51:38 -0000 2011/5/5 Roman Divacky : >> clang -O2 -pipe -march=3Dnative -fomit-frame-pointer >> -DATJOB_DIR=3D\"/var/at/jobs/\" =A0-DLFILE=3D\"/var/at/jobs/.lockfile\" >> -DLOADAVG_MX=3D1.5 -DATSPOOL_DIR=3D\"/var/at/spool\" =A0-DVERSION=3D\"2.= 9\" >> -DDAEMON_UID=3D1 -DDAEMON_GID=3D1 =A0-DDEFAULT_BATCH_QUEUE=3D\'E\' >> -DDEFAULT_AT_QUEUE=3D\'c\' -DPERM_PATH=3D\"/var/at/\" >> -I/usr/src/libexec/atrun/../../usr.bin/at -I/usr/src/libexec/atrun >> -DLOGIN_CAP -DPAM -std=3Dgnu99 -fstack-protector -Wsystem-headers -Wall >> -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c >> /usr/src/libexec/atrun/gloadavg.c >> clang -O2 -pipe -march=3Dnative -fomit-frame-pointer >> -DATJOB_DIR=3D\"/var/at/jobs/\" =A0-DLFILE=3D\"/var/at/jobs/.lockfile\" >> -DLOADAVG_MX=3D1.5 -DATSPOOL_DIR=3D\"/var/at/spool\" =A0-DVERSION=3D\"2.= 9\" >> -DDAEMON_UID=3D1 -DDAEMON_GID=3D1 =A0-DDEFAULT_BATCH_QUEUE=3D\'E\' >> -DDEFAULT_AT_QUEUE=3D\'c\' -DPERM_PATH=3D\"/var/at/\" >> -I/usr/src/libexec/atrun/../../usr.bin/at -I/usr/src/libexec/atrun >> -DLOGIN_CAP -DPAM -std=3Dgnu99 -fstack-protector -Wsystem-headers -Wall >> -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign =A0-o atrun atrun.o >> gloadavg.o -lpam -lutil >> clang: warning: argument unused during compilation: '-std=3Dgnu99' >> /usr/obj/usr/src/tmp/usr/lib/crt1.o: In function `_start': >> /usr/src/lib/csu/amd64/crt1.c:(.text+0x5d): undefined reference to `atex= it' > > > Can you invoke this very same command (ie. linking) with -### and show me= ? > Does it work when you try to link the same .o files without specifying > -march=3Dnative ? I'm going to try. In the meantime, I did other tests on this machine, which is detected by clang as -march=3Dcorei7. Compiling this with the system's clang (which has been compiled with -march=3Dcore2) and -march=3Dcore2 is OK. Compiling this with the system's clang (which has been compiled with -march=3Dcore2) and -march=3Dnative is OK. Compiling this with the bootstrap clang (which has been compiled with -march=3Dnative) and -march=3Dnative FAILS. The problem seems to be inside the clang compiled with -march=3Dnative. Next, I'm going to try with a bootstrap clang compiled with -march=3Dcorei7. --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."