From owner-freebsd-current@FreeBSD.ORG Tue Sep 6 16:14:07 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 450AD106566B; Tue, 6 Sep 2011 16:14:07 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id A01D68FC08; Tue, 6 Sep 2011 16:14:06 +0000 (UTC) Received: by ewy1 with SMTP id 1so3394490ewy.13 for ; Tue, 06 Sep 2011 09:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=TOhzYKK/f9Ph4DWq6Y/jKWX7KjcmLYihy8pBCaQDmoo=; b=TXSU5qvFdJ2K8ub1SWulE4FszuAOkcTqwkintvPS2keGHMkwD9/9KeqSs0i9TWKOzh FhDshjUDU2NWowxVzt3oY7X9BPer6BbiPAvukyKPodTaryFUmJ9KigXpVNK0aCHWxRyL y/jV2x/1MfBrkTpOtpx+jTf9RLb8A058zQgDA= Received: by 10.213.5.19 with SMTP id 19mr1348967ebt.147.1315325645500; Tue, 06 Sep 2011 09:14:05 -0700 (PDT) Received: from limbo.lan ([195.225.157.86]) by mx.google.com with ESMTPS id w19sm1043820eeh.6.2011.09.06.09.14.04 (version=SSLv3 cipher=OTHER); Tue, 06 Sep 2011 09:14:04 -0700 (PDT) Message-ID: <4E6646CA.8050404@gmail.com> Date: Tue, 06 Sep 2011 19:14:02 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:6.0.1) Gecko/20110902 Thunderbird/6.0.1 MIME-Version: 1.0 To: Olivier Smedts References: <4E62915E.1010405@FreeBSD.org> <4E6294E0.5010104@gmail.com> <4E6298DE.5090007@FreeBSD.org> <4E644993.4090703@gmail.com> <4E660BA3.8080103@FreeBSD.org> <4E66162F.8090406@gmail.com> <4E661B1C.2030608@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Dimitry Andric Subject: Re: Compiling BETA2 with clang fails 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: Tue, 06 Sep 2011 16:14:07 -0000 06.09.2011 16:25, Olivier Smedts wrote: > Can you compile the Host.cpp file referenced in : > http://lists.freebsd.org/pipermail/freebsd-current/2011-May/024499.html > > And see which arch the resulting binary detects ? > > %clang++ Host.cpp -o Host > %./Host > cpu = corei7 cpu = athlon-xp > Also, do you have the same problem for a clean buildworld with > "-march=athlon-xp" instead of "-march=native" in your make.conf ? I'm proceeding with buildworld but I don't think this would get you anyway: [limbo] ~> clang++ -v -march=athlon-xp Host.cpp FreeBSD clang version 3.0 (trunk 135360) 20110717 Target: i386-unknown-freebsd9.0 Thread model: posix "/usr/bin/clang++" -cc1 -triple i386-unknown-freebsd9.0 -emit-obj -mrelax-all -disable-free -main-file-name Host.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu athlon-xp -momit-leaf-frame-pointer -v -resource-dir /usr/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 144 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-Cq9USc.o -x c++ Host.cpp clang -cc1 version 3.0 based upon llvm 3.0svn hosted on i386-unknown-freebsd9.0 ignoring nonexistent directory "/usr/include/c++/4.2/backward/backward" ignoring nonexistent directory "/usr/bin/../lib/clang/3.0/include" ignoring duplicate directory "/usr/include/c++/4.2" ignoring duplicate directory "/usr/include/c++/4.2/backward" ignoring duplicate directory "/usr/include/c++/4.2/backward" #include "..." search starts here: #include <...> search starts here: /usr/include/c++/4.2 /usr/include/c++/4.2/backward /usr/include/clang/3.0 /usr/include End of search list. "/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 -m elf_i386_fbsd -o a.out /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib /tmp/cc-Cq9USc.o -lstdc++ -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o [limbo] ~> clang++ -v -march=native Host.cpp FreeBSD clang version 3.0 (trunk 135360) 20110717 Target: i386-unknown-freebsd9.0 Thread model: posix "/usr/bin/clang++" -cc1 -triple i386-unknown-freebsd9.0 -emit-obj -mrelax-all -disable-free -main-file-name Host.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu athlon-xp -momit-leaf-frame-pointer -v -resource-dir /usr/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19 -fmessage-length 144 -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-7bAsbw.o -x c++ Host.cpp clang -cc1 version 3.0 based upon llvm 3.0svn hosted on i386-unknown-freebsd9.0 ignoring nonexistent directory "/usr/include/c++/4.2/backward/backward" ignoring nonexistent directory "/usr/bin/../lib/clang/3.0/include" ignoring duplicate directory "/usr/include/c++/4.2" ignoring duplicate directory "/usr/include/c++/4.2/backward" ignoring duplicate directory "/usr/include/c++/4.2/backward" #include "..." search starts here: #include <...> search starts here: /usr/include/c++/4.2 /usr/include/c++/4.2/backward /usr/include/clang/3.0 /usr/include End of search list. "/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 -m elf_i386_fbsd -o a.out /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib /tmp/cc-7bAsbw.o -lstdc++ -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o -- Sphinx of black quartz judge my vow.