Changes between Version 1 and Version 2 of Ticket #53184, comment 21


Ignore:
Timestamp:
Dec 21, 2018, 5:01:10 PM (5 years ago)
Author:
kencu (Ken)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53184, comment 21

    v1 v2  
    5151Hello World!
    5252}}}
     53
     54or with libc++ (copy over from an Intel system for now where you build it with a PPC slice):
     55{{{
     56$ clang -v -Wl,-v  -lc++ -stdlib=libc++ -o helloworld helloworld.cpp
     57clang version 5.0.2 (tags/RELEASE_502/final)
     58Target: powerpc-apple-darwin9.8.0
     59Thread model: posix
     60InstalledDir: /opt/local/libexec/llvm-5.0/bin
     61 "/opt/local/libexec/llvm-5.0/bin/clang" -cc1 -triple powerpc-apple-macosx10.5.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name helloworld.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -faligned-alloc-unavailable -mfloat-abi hard -target-linker-version 127.2 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir /opt/local/libexec/llvm-5.0/lib/clang/5.0.2 -stdlib=libc++ -fdeprecated-macro -fdebug-compilation-dir /opt/local/var/macports/build/_opt_myports_devel_helloworld/helloworld/work/helloworld-9767fc3cc248797fa2df16b0f8926131aed9d6ce -ferror-limit 19 -fmessage-length 160 -femulated-tls -stack-protector 1 -fobjc-runtime=macosx-fragile-10.5.0 -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Tmp-/helloworld-a22afc.o -x c++ helloworld.cpp
     62clang -cc1 version 5.0.2 based upon LLVM 5.0.2 default target powerpc-apple-darwin9.8.0
     63ignoring nonexistent directory "/usr/include/c++/v1"
     64ignoring nonexistent directory "/usr/local/include"
     65#include "..." search starts here:
     66#include <...> search starts here:
     67 /opt/local/libexec/llvm-5.0/include/c++/v1
     68 /opt/local/libexec/llvm-5.0/lib/clang/5.0.2/include
     69 /usr/include
     70 /System/Library/Frameworks (framework directory)
     71 /Library/Frameworks (framework directory)
     72End of search list.
     73 "/opt/local/libexec/llvm-5.0/bin/ld" -demangle -dynamic -arch ppc -macosx_version_min 10.5.0 -o helloworld -lcrt1.10.5.o -v -lc++ /var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Tmp-/helloworld-a22afc.o -lSystem -lgcc_s.10.5
     74@(#)PROGRAM:ld  PROJECT:ld64-127.2
     75configured to support archs: i386 x86_64 ppc ppc64 armv6 armv7
     76Library search paths:
     77        /usr/lib
     78        /usr/local/lib
     79Framework search paths:
     80        /Library/Frameworks/
     81        /System/Library/Frameworks/
     82
     83$ ./helloworld
     84Hello World!
     85
     86}}}
    5387Now have to get `clang_rt` sorted out.