<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div style="" class="" id="yiv1301486080"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">Thank you! I can build arm libcxx.so and compile it now. I want to run it with qemu further but fail as below. Do you know how to run the compiled code on qemu.<br style=""><br style="" class="">cschen@debian:~/test/libcxx-scripts$ clang++ -target arm-linux-gnueabihf -mcpu=cortex-a9 -mfloat-abi=hard -mfpu=neon -isystem out-arm/include -isystem out-arm/include/c++/v1 -isystem /usr/arm-linux-gnueabihf/include -Lout-arm/lib -lc++ -lpthread -lc++abi -lm -lc -lgcc_s -lgcc hello-world.cpp -o aa<br style="" class="">cschen@debian:~/test/libcxx-scripts$ ./aa<br style="" class="">bash:
 ./aa: cannot execute binary file<br style="" class="">cschen@debian:~/test/libcxx-scripts$ qemu-arm aa<br style="" class=""><br>Best regards<br><br>cschen<br style="" class="" clear="none"> <div class="" id="yiv1301486080yui_3_16_0_6_1412762009411_7" style="display: none;"> <div class="" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div style="" class="" dir="ltr"> <font style="" class="" size="2" face="Arial"> Logan Chien <tzuhsiang.chien@gmail.com> 於 2014/10/7 (週二) 2:40 PM 寫道﹕<br style="" class="" clear="none"> </font> </div>  <br style="" class="" clear="none"><br style="" class="" clear="none"> <div style="" class="" id="yiv1301486080yqt69533"><div style="" class=""><div style="" class="" id="yiv1301486080"><div style="" class=""
 dir="ltr"><div style="" class="">Hi cschen,<br style="" class="" clear="none"><br style="" class="" clear="none">It seems that libunwind (the one included in libcxxabi) is mandatory at the moment. 
 Use the second build command instead:<br style="" class="" clear="none"><br style="" class="" clear="none">$ CROSS_COMPILING=arm ENABLE_LIBUNWIND=1 ./scripts/compile-all.sh<br style="" class="" clear="none"><br style="" class="" clear="none"></div>Logan<br style="" class="" clear="none"></div><div style="" class=""><br style="" class="" clear="none"><div style="" class="">On Tue, Oct 7, 2014 at 5:32 PM, gamma_chen <span style="" class="" dir="ltr"><<a style="" class="" rel="nofollow" shape="rect" ymailto="mailto:gamma_chen@yahoo.com.tw" target="_blank" href="mailto:gamma_chen@yahoo.com.tw">gamma_chen@yahoo.com.tw</a>></span> wrote:<br style="" class="" clear="none"><blockquote class="" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;">After do "sudo
 apt-get update", the following are pass.<br style="" class="" clear="none"><br style="" class="" clear="none">Install the dependencies:<span style="" class=""><br style="" class="" clear="none"><br style="" class="" clear="none">    $ sudo apt-get install binutils clang-3.5 cmake gcc
 make<br style="" class="" clear="none"><br style="" class="" clear="none"></span>To cross-compile for ARM, install following dependencies as well:<br style="" class="" clear="none"><br style="" class="" clear="none">    $ sudo apt-get install binutils-multiarch \<br style="" class="" clear="none">                           gcc-4.7-arm-linux-gnueabihf \<br style="" class="" clear="none">                           g++-4.7-arm-linux-gnueabihf<br style="" class="" clear="none"><br style="" class="" clear="none">But now fail as follows,<br style="" class="" clear="none"><br style="" class="" clear="none">cschen@debian:~/test/libcxx-scripts$ export CROSS_COMPILING=arm<br style="" class=""
 clear="none">cschen@debian:~/test/libcxx-scripts$ CROSS_COMPILING=arm ./scripts/compile-all.sh<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/abort_message.cpp<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/cxa_aux_runtime.cpp<br style="" class="" clear="none">compile:
 /home/cschen/test/libcxx-scripts/libcxxabi/src/cxa_default_handlers.cpp<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/cxa_demangle.cpp<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/cxa_exception.cpp<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/cxa_exception_storage.cpp<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/cxa_guard.cpp<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/cxa_handlers.cpp<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/cxa_new_delete.cpp<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/cxa_personality.cpp<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/cxa_unexpected.cpp<br style="" class=""
 clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/cxa_vector.cpp<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/cxa_virtual.cpp<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/exception.cpp<br style="" class="" clear="none">compile:
 /home/cschen/test/libcxx-scripts/libcxxabi/src/private_typeinfo.cpp<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/stdexcept.cpp<br style="" class="" clear="none">compile: /home/cschen/test/libcxx-scripts/libcxxabi/src/typeinfo.cpp<br style="" class="" clear="none">link: libc++abi.so.1.0<br style="" class="" clear="none">installing ...<br style="" class="" clear="none">done.<br style="" class="" clear="none">-- The CXX compiler identification is Clang 3.5.0<br style="" class="" clear="none">-- The C compiler identification is Clang 3.5.0<br style="" class="" clear="none">-- Check for working CXX compiler: /usr/bin/clang++<br style="" class="" clear="none">-- Check for working CXX compiler: /usr/bin/clang++ -- works<br style="" class="" clear="none">-- Detecting CXX compiler ABI info<br style="" class="" clear="none">-- Detecting CXX compiler ABI info - done<br style="" class="" clear="none">-- Check for working
 C compiler: /usr/bin/clang<br style="" class="" clear="none">-- Check for working C compiler: /usr/bin/clang -- works<br style="" class="" clear="none">-- Detecting C compiler ABI info<br style="" class="" clear="none">-- Detecting C compiler ABI info - done<br style="" class="" clear="none">-- Host triple: x86_64-pc-linux<br style="" class="" clear="none">-- Target triple: arm-pc-linux<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_STDCXX11_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_STDCXX11_FLAG - Success<br style="" class="" clear="none">-- Performing Test
 LIBCXX_HAS_STDCXX1Y_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_STDCXX1Y_FLAG - Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_FPIC_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_FPIC_FLAG - Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_NO_OMIT_FRAME_POINTER_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_NO_OMIT_FRAME_POINTER_FLAG - Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_NODEFAULTLIBS_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_NODEFAULTLIBS_FLAG - Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_NOSTDINCXX_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_NOSTDINCXX_FLAG - Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_WALL_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_WALL_FLAG -
 Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_W_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_W_FLAG - Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_WNO_UNUSED_PARAMETER_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_WNO_UNUSED_PARAMETER_FLAG - Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_WWRITE_STRINGS_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_WWRITE_STRINGS_FLAG - Success<br style="" class="" clear="none">--
 Performing Test LIBCXX_HAS_WNO_LONG_LONG_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_WNO_LONG_LONG_FLAG - Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_PEDANTIC_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_PEDANTIC_FLAG - Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_WERROR_FLAG<br style="" class="" clear="none">-- Performing Test
 LIBCXX_HAS_WERROR_FLAG - Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_WNO_ERROR_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_WNO_ERROR_FLAG - Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_FNO_EXCEPTIONS_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_FNO_EXCEPTIONS_FLAG - Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_FNO_RTTI_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_FNO_RTTI_FLAG - Success<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_WX_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_WX_FLAG - Failed<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_NO_WX_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_NO_WX_FLAG - Failed<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_EHSC_FLAG<br style="" class="" clear="none">--
 Performing Test LIBCXX_HAS_EHSC_FLAG - Failed<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_NO_EHS_FLAG<br style="" class="" clear="none">-- Performing Test
 LIBCXX_HAS_NO_EHS_FLAG - Failed<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_NO_EHA_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_NO_EHA_FLAG - Failed<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_NO_GR_FLAG<br style="" class="" clear="none">-- Performing Test LIBCXX_HAS_NO_GR_FLAG - Failed<br style="" class="" clear="none">-- Looking for pthread_create in pthread<br style="" class="" clear="none">-- Looking for pthread_create in pthread - found<br style="" class="" clear="none">-- Looking for printf in c<br style="" class="" clear="none">-- Looking for printf in c - found<br style="" class="" clear="none">-- Looking for ccos in m<br style="" class="" clear="none">-- Looking for ccos in m - found<br style="" class="" clear="none">-- Looking for clock_gettime in rt<br style="" class="" clear="none">-- Looking for clock_gettime in rt - found<br style="" class="" clear="none">-- Looking for
 __gcc_personality_v0 in gcc_s<br style="" class="" clear="none">-- Looking for __gcc_personality_v0 in gcc_s - found<br style="" class="" clear="none">-- Found PythonInterp: /usr/bin/python (found
 version "2.7.3") <br style="" class="" clear="none">-- Configuring done<br style="" class="" clear="none">-- Generating done<br style="" class="" clear="none">-- Build files have been written to: /home/cschen/test/libcxx-scripts/objs-arm/libcxx<br style="" class="" clear="none">Scanning dependencies of target cxx<br style="" class="" clear="none">[  3%] [  7%] [ 11%] [ 15%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/iostream.cpp.o<br style="" class="" clear="none">Building CXX object lib/CMakeFiles/cxx.dir/__/src/future.cpp.o<br style="" class="" clear="none">Building CXX object lib/CMakeFiles/cxx.dir/__/src/algorithm.cpp.o<br style="" class="" clear="none">Building CXX object lib/CMakeFiles/cxx.dir/__/src/shared_mutex.cpp.o<br style="" class="" clear="none">[ 19%] [ 23%] [ 26%] [ 30%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/optional.cpp.o<br style="" class="" clear="none">Building CXX object
 lib/CMakeFiles/cxx.dir/__/src/typeinfo.cpp.o<br style="" class="" clear="none">[ 34%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/locale.cpp.o<br style="" class="" clear="none">[ 46%]
 [ 38%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/regex.cpp.o<br style="" class="" clear="none">Building CXX object lib/CMakeFiles/cxx.dir/__/src/utility.cpp.o<br style="" class="" clear="none">[ 42%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/valarray.cpp.o<br style="" class="" clear="none">Building CXX object lib/CMakeFiles/cxx.dir/__/src/hash.cpp.o<br style="" class="" clear="none">Building CXX object lib/CMakeFiles/cxx.dir/__/src/bind.cpp.o<br style="" class="" clear="none">[ 53%] [ 57%] [ 50%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/mutex.cpp.o<br style="" class="" clear="none">Building CXX object lib/CMakeFiles/cxx.dir/__/src/thread.cpp.o<br style="" class="" clear="none">Building CXX object lib/CMakeFiles/cxx.dir/__/src/debug.cpp.o<br style="" class="" clear="none">[ 61%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/exception.cpp.o<br style="" class="" clear="none">[ 65%] [ 69%] Building CXX object
 lib/CMakeFiles/cxx.dir/__/src/chrono.cpp.o<br style="" class="" clear="none">Building CXX object lib/CMakeFiles/cxx.dir/__/src/strstream.cpp.o<br style="" class="" clear="none">[ 73%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/stdexcept.cpp.o<br style="" class="" clear="none">[ 76%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/memory.cpp.o<br style="" class="" clear="none">[ 80%] Building CXX object
 lib/CMakeFiles/cxx.dir/__/src/string.cpp.o<br style="" class="" clear="none">[ 84%] [ 88%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/random.cpp.o<br style="" class="" clear="none">Building CXX object lib/CMakeFiles/cxx.dir/__/src/new.cpp.o<br style="" class="" clear="none">[ 92%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/ios.cpp.o<br style="" class="" clear="none">[ 96%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/condition_variable.cpp.o<br style="" class="" clear="none">[100%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/system_error.cpp.o<br style="" class="" clear="none">Linking CXX shared library libc++.so<br style="" class="" clear="none">clang: warning: argument unused during compilation: '-nostdinc++'<br style="" class="" clear="none">[100%] Built target cxx<br style="" class="" clear="none">[100%] Built
 target cxx<br style="" class="" clear="none">Install the project...<br style="" class="" clear="none">-- Install configuration: "Release"<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/cxxabi.h<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/.<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./vector<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./ratio<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./queue<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./deque<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cmath<br style="" class="" clear="none">--
 Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./thread<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__locale<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./clocale<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cstdlib<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cfloat<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./stdexcept<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__mutex_base<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./iostream<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./numeric<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./strstream<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./iosfwd<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./algorithm<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./array<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./iomanip<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./chrono<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__std_stream<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./istream<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__tuple_03<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./utility<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./climits<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__tree<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./locale<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cstdint<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./scoped_allocator<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./atomic<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__tuple<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cstring<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./ctgmath<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./csetjmp<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./initializer_list<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__functional_base_03<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./new<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__functional_base<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./complex.h<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./string<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cassert<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./condition_variable<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__undef_min_max<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./memory<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cctype<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./ctime<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./system_error<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cstdarg<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./unordered_set<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./ostream<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./tuple<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__config<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./typeindex<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./regex<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./ext<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./ext/hash_map<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./ext/__hash<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./ext/hash_set<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./ciso646<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./list<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./mutex<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cstddef<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__refstring<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./unordered_map<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./exception<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cinttypes<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./limits<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./type_traits<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./forward_list<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./sstream<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cwchar<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./stack<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./random<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./ccomplex<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__debug<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./tgmath.h<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./streambuf<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./shared_mutex<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./typeinfo<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__split_buffer<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./bitset<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./module.modulemap<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./map<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./complex<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__hash_table<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cfenv<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./codecvt<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cstdio<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./iterator<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__sso_allocator<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./valarray<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cerrno<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/android<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/android/locale_bionic.h<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/ibm<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/ibm/xlocale.h<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/ibm/limits.h<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/ibm/support.h<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/win32<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/win32/math_win32.h<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/win32/support.h<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/win32/limits_win32.h<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/win32/locale_win32.h<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/newlib<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/newlib/xlocale.h<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/solaris<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/solaris/floatingpoint.h<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/solaris/xlocale.h<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/solaris/wchar.h<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/xlocale<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./support/xlocale/xlocale.h<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cwctype<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./set<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./ios<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./functional<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./cstdbool<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__bit_reference<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./future<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./__functional_03<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./fstream<br style="" class="" clear="none">-- Installing:
 /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./experimental<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./experimental/optional<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./experimental/utility<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./experimental/dynarray<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./experimental/string_view<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./experimental/__config<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/include/c++/v1/./csignal<br style="" class="" clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/lib/libc++.so.1.0<br style="" class=""
 clear="none">-- Installing: /home/cschen/test/libcxx-scripts/out-arm/lib/libc++.so.1<br style="" class="" clear="none">--
 Installing: /home/cschen/test/libcxx-scripts/out-arm/lib/libc++.so<br style="" class="" clear="none">/home/cschen/test/libcxx-scripts/libcxxabi/test/backtrace_test.cpp<br style="" class="" clear="none">/home/cschen/test/libcxx-scripts/out-arm/lib/libc++abi.so: undefined reference to `_Unwind_VRS_Interpret'<br style="" class="" clear="none">clang: error: linker command failed with exit code 1 (use -v to see invocation)<br style="" class="" clear="none"><br style="" class="" clear="none"><br style="" class="" clear="none">cschen<br style="" class="" clear="none"><div style="" class=""><br style="" class="" clear="none"><br style="" class="" clear="none"></div><div class="" style="display:block;"> <div class="" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;"> <div class="" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;"> <div
 style="" class="" dir="ltr"> <font style="" class="" face="Arial"> Jonathan Roelofs <<a style="" class="" rel="nofollow" shape="rect" ymailto="mailto:jonathan@codesourcery.com" target="_blank" href="mailto:jonathan@codesourcery.com">jonathan@codesourcery.com</a>> 於
 2014/10/3 (週五) 12:35 PM 寫道﹕<br style="" class="" clear="none"> </font> </div><span style="" class="">  <br style="" class="" clear="none"><br style="" class="" clear="none"> </span><div style="" class=""><br style="" class="" clear="none"><br style="" class="" clear="none">On 10/3/14 10:16 AM, Dan Albert wrote:<br style="" class="" clear="none">>><br style="" class="" clear="none">>> I try to build libc++ and libc++abi for host x86_64(linux) and target<br style="" class="" clear="none">>> arm(linux) but fail.<br style="" class="" clear="none">>><br style="" class="" clear="none">> <br style="" class="" clear="none">> Failing in what way? If this isn't working out of the box, we've done<br style="" class="" clear="none">> something wrong.<br style="" class="" clear="none">Yeah, it would help to know more specifics about where you're getting stuck.<div style="" class=""><br style="" class="" clear="none">> <br
 style="" class="" clear="none">> jroelofs might
 know more...</div><br style="" class="" clear="none">For my baremetal arm toolchain, I use buildit&testit for libc++abi, and<br style="" class="" clear="none">buildit&lit for libc++... Which is a bit different than what you'll get out of<br style="" class="" clear="none">using cmake for it. Also, I've customized both buildits, the testit, and<br style="" class="" clear="none">libc++'s lit config file to do this, and those changes are very specific to my<br style="" class="" clear="none">environment (I don't recommend using buildit/testit to build either library<br style="" class="" clear="none">unless you're working on porting them to a new platform. Even then, just do it<br style="" class="" clear="none">the "right way" with cmake, and don't be stupid like me ;] ).<br style="" class="" clear="none"><br style="" class="" clear="none"><br style="" class="" clear="none">Cheers,<br style="" class="" clear="none"><br style="" class=""
 clear="none">Jon<br style="" class="" clear="none"><br style="" class="" clear="none">-- <br style="" class="" clear="none">Jon Roelofs<br style="" class="" clear="none"><a style="" class="" rel="nofollow" shape="rect" ymailto="mailto:jonathan@codesourcery.com" target="_blank" href="mailto:jonathan@codesourcery.com">jonathan@codesourcery.com</a><br style="" class="" clear="none">CodeSourcery / Mentor Embedded<div style="" class=""><br style="" class="" clear="none"></div><br style="" class="" clear="none"><br style="" class="" clear="none"></div>  </div> </div>  </div> </div></div><br style="" class="" clear="none">_______________________________________________<br style="" class="" clear="none">
LLVM Developers mailing list<br style="" class="" clear="none">
<a style="" class="" rel="nofollow" shape="rect" ymailto="mailto:LLVMdev@cs.uiuc.edu" target="_blank" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://llvm.cs.uiuc.edu/">http://llvm.cs.uiuc.edu</a><br style="" class="" clear="none">
<a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br style="" class="" clear="none">
<br style="" class="" clear="none"></blockquote></div><br style="" class="" clear="none"></div></div><br style="" class="" clear="none"><br style="" class="" clear="none"></div></div>  </div> </div>  </div> </div></div></div></div></body></html>