[MacPorts] #50845: libunwind: fails to find 'bits/c++config.h' on 10.5/PPC
#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
#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: Resolution: | Keywords: leopard Port: libunwind | ------------------------+------------------------ Changes (by devans@…): * keywords: => leopard Comment: See discussion in #52468. -- Ticket URL: <https://trac.macports.org/ticket/50845#comment:2> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
#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: Resolution: | Keywords: leopard Port: libunwind | ------------------------+---------------------- Comment (by ken-cunningham-webuse): adding these two bits to an area of the portfile that will be included when building on 10.5 PPC fixes the build {{{ configure.cppflags-append -I/usr/include/c++/4.0.0/powerpc-apple- darwin9 configure.cppflags-append -fPIE -pie }}} evidence {{{ LeopardG5:/ macportsdev$ port -v installed libun* The following ports are currently installed: libunwind @3.9.0_0 (active) platform='darwin 9' archs='ppc' libunwind-headers @3.9.0_0 (active) platform='darwin 9' archs='noarch' }}} now to see if I can test it to see if it actually works correctly -- K -- Ticket URL: <https://trac.macports.org/ticket/50845#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#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: Resolution: | Keywords: leopard Port: libunwind | ------------------------+---------------------- Comment (by ken-cunningham-webuse): Oh - should say I also deleted the universal requirement on PPC as trying to build it with i386 generated this error, which disappeared when building only for PPC. {{{ 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.9.0.src/src' /opt/local/bin/clang-mp-3.4 -arch i386 -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 i386 -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 UNREACHABLE executed! UNREACHABLE executed! 0 libLLVM-3.4.dylib 0x01dc4b24 llvm::sys::PrintStackTrace(__sFILE*) + 56 0 libLLVM-3.4.dylib 0x01dc4b24 llvm::sys::PrintStackTrace(__sFILE*) + 56 1 libLLVM-3.4.dylib 0x01dc514c llvm::sys::SetInterruptFunction(void (*)()) + 396 2 libSystem.B.dylib1 0x9008389c libLLVM-3.4.dylib 0x01dc514c_sigtramp + 68 llvm::sys::SetInterruptFunction(void (*)()) + 396 2 libSystem.B.dylib 0x9008389c _sigtramp + 68 Stack dump: 0. Program arguments: /opt/local/libexec/llvm-3.4/bin/clang -arch i386 -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 1. Compilation construction 2. Building compilation jobs 3. Building compilation jobs Stack dump: 0. Program arguments: /opt/local/libexec/llvm-3.4/bin/clang -arch i386 -arch ppc -I../include -I/opt/local/include -DUSE_MACPORTS_LIBUNWIND -DNDEBUG -Os -std=gnu99 -c -o UnwindLevel1.o UnwindLevel1.c 1. Compilation construction 2. Building compilation jobs 3. Building compilation jobs Makefile:76: recipe for target 'UnwindLevel1-gcc-ext.o' failed make: *** [UnwindLevel1-gcc-ext.o] Trace/BPT trap make: *** Waiting for unfinished jobs.... Makefile:76: recipe for target 'UnwindLevel1.o' failed make: *** [UnwindLevel1.o] Trace/BPT trap }}} -- Ticket URL: <https://trac.macports.org/ticket/50845#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#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: Resolution: | Keywords: leopard Port: libunwind | ------------------------+---------------------- Comment (by ken-cunningham-webuse): a bit more - for anyone who tries to build libunwind it doesn't want to build universal (i386 + ppc simultaneously) on either intel or on ppc. It delivers errors such as above when it tries to build universal. It will build for i386 alone on 10.5 Intel - if you disable the universal build. No other portfile changes needed. it will build for ppc with the configure lines mentioned above, even on an intel machine. also {{{-fPIE -pie}}} can be replaced with {{{-fPIC}}} and the build for ppc works as well. -- Ticket URL: <https://trac.macports.org/ticket/50845#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts