Date: Tue, 06 Sep 2011 19:14:02 +0300 From: Volodymyr Kostyrko <c.kworr@gmail.com> To: Olivier Smedts <olivier@gid0.org> Cc: freebsd-current@freebsd.org, Dimitry Andric <dim@freebsd.org> Subject: Re: Compiling BETA2 with clang fails Message-ID: <4E6646CA.8050404@gmail.com> In-Reply-To: <CABzXLYPZSN8kzsyauA_TpjkPyo_xA_OXWfCjkLsc=s6vkt-%2BbQ@mail.gmail.com> References: <j3u29f$bv8$1@dough.gmane.org> <4E62915E.1010405@FreeBSD.org> <4E6294E0.5010104@gmail.com> <4E6298DE.5090007@FreeBSD.org> <4E644993.4090703@gmail.com> <4E660BA3.8080103@FreeBSD.org> <CABzXLYPUPvubXa4a%2BRkAftCOCyr===v6SOw=o=qtZ%2BHDTiJywg@mail.gmail.com> <4E66162F.8090406@gmail.com> <CABzXLYOxgYbFtSJ%2BVHwLHRYmUsC2jVGhuJOmG-KGPiqjACH9AQ@mail.gmail.com> <4E661B1C.2030608@gmail.com> <CABzXLYPZSN8kzsyauA_TpjkPyo_xA_OXWfCjkLsc=s6vkt-%2BbQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E6646CA.8050404>