[MacPorts] #50845: libunwind: fails to find 'bits/c++config.h' on 10.5/PPC

MacPorts noreply at macports.org
Wed Mar 9 07:36:43 PST 2016


#50845: libunwind: fails to find 'bits/c++config.h' on 10.5/PPC
---------------------+------------------------
 Reporter:  mojca@…  |      Owner:  jeremyhu@…
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:
 Keywords:           |       Port:  libunwind
---------------------+------------------------
 Building libunwind fails on 10.5/PPC with:
 {{{
 --->  Building libunwind
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libunwind/libunwind/work/libunwind-3.7.0.src/src'
 /opt/local/bin/clang-mp-3.4 -arch ppc  -I../include -I/opt/local/include
 -DUSE_MACPORTS_LIBUNWIND -DNDEBUG -Os -std=gnu99 -c -o UnwindLevel1.o
 UnwindLevel1.c
 /opt/local/bin/clang-mp-3.4 -arch ppc  -I../include -I/opt/local/include
 -DUSE_MACPORTS_LIBUNWIND -DNDEBUG -Os -std=gnu99 -c -o UnwindLevel1-gcc-
 ext.o UnwindLevel1-gcc-ext.c
 /opt/local/bin/clang-mp-3.4 -arch ppc  -I../include -I/opt/local/include
 -DUSE_MACPORTS_LIBUNWIND -DNDEBUG -Os -std=gnu99 -c -o Unwind-sjlj.o
 Unwind-sjlj.c
 /opt/local/bin/clang++-mp-3.4 -arch ppc  -I../include -I/opt/local/include
 -DUSE_MACPORTS_LIBUNWIND -DNDEBUG -Os -stdlib=libstdc++ -c -o
 Unwind_AppleExtras.o Unwind_AppleExtras.cpp
 /opt/local/bin/clang++-mp-3.4 -arch ppc  -I../include -I/opt/local/include
 -DUSE_MACPORTS_LIBUNWIND -DNDEBUG -Os -stdlib=libstdc++ -c -o libunwind.o
 libunwind.cpp
 In file included from libunwind.cpp:19:
 In file included from /usr/include/c++/4.0.0/algorithm:65:
 /usr/include/c++/4.0.0/bits/stl_algobase.h:64:10: fatal error:
 'bits/c++config.h' file not found
 #include <bits/c++config.h>
          ^
 1 error generated.
 make: *** [libunwind.o] Error 1
 }}}

 The file exists though ([http://stackoverflow.com/questions/9201521/g-4-6
 -issue-no-bits-cconfig-h-file-as-required-by-the-header-cstring I cheated
 from this site]):
 {{{
 > locate c++config.h
 /Developer/SDKs/MacOSX10.4u.sdk/[...]
 /Developer/SDKs/MacOSX10.5.sdk/[...]
 /usr/include/c++/4.0.0/i686-apple-darwin9/bits/c++config.h
 /usr/include/c++/4.0.0/powerpc-apple-darwin9/bits/c++config.h
 /usr/include/c++/4.0.0/powerpc64-apple-darwin9/bits/c++config.h
 /usr/include/c++/4.0.0/x86_64-apple-darwin9/bits/c++config.h
 }}}

 Running
 {{{
 /opt/local/bin/clang++-mp-3.4 -arch ppc  -I../include -I/opt/local/include
 -DUSE_MACPORTS_LIBUNWIND -DNDEBUG -Os -stdlib=libstdc++
 -I/usr/include/c++/4.0.0/powerpc-apple-darwin9 -c -o libunwind.o
 libunwind.cpp
 }}}
 manually seems to be successful. That is, adding
 "`-I/usr/include/c++/4.0.0/powerpc-apple-darwin9`" seems to help.

 The build nevertheless fails later on:
 {{{
 /opt/local/bin/clang++-mp-3.4 -o libunwind.1.dylib -arch ppc
 -L/opt/local/lib -Wl,-headerpad_max_install_names -lmacho
 -stdlib=libstdc++ \
             -dynamiclib -install_name /opt/local/lib/libunwind.1.dylib \
             -compatibility_version 1.0.0 -current_version 3.7.0 \
             ./UnwindLevel1.o ./UnwindLevel1-gcc-ext.o ./Unwind-sjlj.o
 ./Unwind_AppleExtras.o ./libunwind.o ./Unwind-EHABI.o
 ./UnwindRegistersRestore.o ./UnwindRegistersSave.o
 ld warning: codegen with reference kind 17 in
 libunwind::checkKeyMgrRegisteredFDEs(unsigned long, void*&)prevents image
 from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::checkKeyMgrRegisteredFDEs(unsigned long, void*&)prevents image
 from loading in dyld shared cache
 ld warning: codegen with reference kind 17 in _unw_init_local prevents
 image from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in _unw_init_local prevents
 image from loading in dyld shared cache
 ld warning: codegen with reference kind 17 in __unw_add_dynamic_fde
 prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in __unw_add_dynamic_fde
 prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::iterateCacheEntries(void
 (*)(unsigned long long, unsigned long long, unsigned long long, unsigned
 long long))prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::iterateCacheEntries(void
 (*)(unsigned long long, unsigned long long, unsigned long long, unsigned
 long long))prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::iterateCacheEntries(void
 (*)(unsigned long long, unsigned long long, unsigned long long, unsigned
 long long))prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::iterateCacheEntries(void
 (*)(unsigned long long, unsigned long long, unsigned long long, unsigned
 long long))prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::iterateCacheEntries(void
 (*)(unsigned long long, unsigned long long, unsigned long long, unsigned
 long long))prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::iterateCacheEntries(void
 (*)(unsigned long long, unsigned long long, unsigned long long, unsigned
 long long))prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::iterateCacheEntries(void
 (*)(unsigned long long, unsigned long long, unsigned long long, unsigned
 long long))prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::add(unsigned int,
 unsigned int, unsigned int, unsigned int)prevents image from loading in
 dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::removeAllIn(unsigned
 int)prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::removeAllIn(unsigned
 int)prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::removeAllIn(unsigned
 int)prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::removeAllIn(unsigned
 int)prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::removeAllIn(unsigned
 int)prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::removeAllIn(unsigned
 int)prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::removeAllIn(unsigned
 int)prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::findFDE(unsigned
 int, unsigned int)prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::findFDE(unsigned
 int, unsigned int)prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::findFDE(unsigned
 int, unsigned int)prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 17 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::findFDE(unsigned
 int, unsigned int)prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::findFDE(unsigned
 int, unsigned int)prevents image from loading in dyld shared cache
 ld warning: codegen with reference kind 14 in
 libunwind::DwarfFDECache<libunwind::LocalAddressSpace>::findFDE(unsigned
 int, unsigned int)prevents image from loading in dyld shared cache
 ld: absolute addressing (perhaps -mdynamic-no-pic) used in _unwind_phase2
 from ./UnwindLevel1.o not allowed in slidable image. Use
 '-read_only_relocs suppress' to enable text relocs
 collect2: ld returned 1 exit status
 clang: error: linker (via gcc) command failed with exit code 1 (use -v to
 see invocation)
 make: *** [libunwind.1.dylib] Error 1
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libunwind/libunwind/work/libunwind-3.7.0.src/src'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libunwind/libunwind/work/libunwind-3.7.0.src/src"
 && /usr/bin/make -w all PREFIX="/opt/local" CC="/opt/local/bin/clang-
 mp-3.4" CXX="/opt/local/bin/clang++-mp-3.4" CPPFLAGS="-I/opt/local/include
 -DUSE_MACPORTS_LIBUNWIND -DNDEBUG" CFLAGS="-Os -std=gnu99" CXXFLAGS="-Os
 -stdlib=libstdc++" ASFLAGS="" LDFLAGS="-L/opt/local/lib
 -Wl,-headerpad_max_install_names -lmacho -stdlib=libstdc++" RC_ARCHS="ppc"
 LIBUNWIND_CURRENT_VERSION=3.7.0 AR=/opt/local/bin/ar
 RANLIB=/opt/local/bin/ranlib
 Exit code: 2
 }}}

 (No problem in case this is not / will not be supported.)

-- 
Ticket URL: <https://trac.macports.org/ticket/50845>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list