Re: Compiling BETA2 with clang fails

From: Volodymyr Kostyrko <c.kworr_at_gmail.com>
Date: Tue, 06 Sep 2011 19:14:02 +0300
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.
Received on Tue Sep 06 2011 - 14:14:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:17 UTC