Opened 7 years ago

Closed 7 years ago

#54984 closed defect (wontfix)

Libunwind 3.9.1 can't compile, osx 10.5 ppc

Reported by: snigel Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version:
Keywords: powerpc Cc:
Port: libunwind

Description

Trying to build libunwind 3.9.1 on 10.5 ppc fails.

From libunwind/main.log:

:notice:build --->  Building libunwind
:debug:build Executing org.macports.build (libunwind)
:debug:build Environment:
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libunwind/libunwind/work/.CC_PRINT_OPTIONS'
:debug:build CPATH='/opt/local/include'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='10.5'
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libunwind/libunwind/work/libunwind-3.9.1.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" OTHER_CPPFLAGS="-I/opt/local/include -DUSE_MACPORTS_LIBUNWIND -DNDEBUG" OTHER_CFLAGS="-Os -std=gnu99" OTHER_CXXFLAGS="-Os -stdlib=libstdc++ -stdlib=libstdc++" OTHER_ASFLAGS="-fno-integrated-as" OTHER_LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -lmacho -stdlib=libstdc++" RC_ARCHS="i386 ppc" LIBUNWIND_CURRENT_VERSION=3.9.1 AR=/opt/local/bin/ar RANLIB=/opt/local/bin/ranlib
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libunwind/libunwind/work/libunwind-3.9.1.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" OTHER_CPPFLAGS="-I/opt/local/include -DUSE_MACPORTS_LIBUNWIND -DNDEBUG" OTHER_CFLAGS="-Os -std=gnu99" OTHER_CXXFLAGS="-Os -stdlib=libstdc++ -stdlib=libstdc++" OTHER_ASFLAGS="-fno-integrated-as" OTHER_LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -lmacho -stdlib=libstdc++" RC_ARCHS="i386 ppc" LIBUNWIND_CURRENT_VERSION=3.9.1 AR=/opt/local/bin/ar RANLIB=/opt/local/bin/ranlib
:info:build 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.1.src/src'
:info:build /opt/local/bin/clang-mp-3.4 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_LIBUNWIND_IS_NATIVE_ONLY -U__STRICT_ANSI__  -I../include -I/opt/local/include -DUSE_MACPORTS_LIBUNWIND -DNDEBUG -arch i386 -arch ppc -fvisibility-inlines-hidden -fvisibility-inlines-hidden -fno-rtti -fstrict-aliasing -fno-exceptions -fPIC -funwind-tables -Os -std=gnu99 -c -o UnwindLevel1.o UnwindLevel1.c
:info:build UNREACHABLE executed!
:info:build 0  libLLVM-3.4.dylib 0x01dc3b24 llvm::sys::PrintStackTrace(__sFILE*) + 56
:info:build 1  libLLVM-3.4.dylib 0x01dc414c llvm::sys::SetInterruptFunction(void (*)()) + 396
:info:build 2  libSystem.B.dylib 0x91fa189c _sigtramp + 68
:info:build Stack dump:
:info:build 0.  Program arguments: /opt/local/libexec/llvm-3.4/bin/clang -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_LIBUNWIND_IS_NATIVE_ONLY -U__STRICT_ANSI__ -I../include -I/opt/local/include -DUSE_MACPORTS_LIBUNWIND -DNDEBUG -arch i386 -arch ppc -fvisibility-inlines-hidden -fvisibility-inlines-hidden -fno-rtti -fstrict-aliasing -fno-exceptions -fPIC -funwind-tables -Os -std=gnu99 -c -o UnwindLevel1.o UnwindLevel1.c
:info:build 1.  Compilation construction
:info:build 2.  Building compilation jobs
:info:build 3.  Building compilation jobs
:info:build make: *** [UnwindLevel1.o] Trace/BPT trap
:info:build 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.9.1.src/src'
:info:build 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.9.1.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" OTHER_CPPFLAGS="-I/opt/local/include -DUSE_MACPORTS_LIBUNWIND -DNDEBUG" OTHER_CFLAGS="-Os -std=gnu99" OTHER_CXXFLAGS="-Os -stdlib=libstdc++ -stdlib=libstdc++" OTHER_ASFLAGS="-fno-integrated-as" OTHER_LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -lmacho -stdlib=libstdc++" RC_ARCHS="i386 ppc" LIBUNWIND_CURRENT_VERSION=3.9.1 AR=/opt/local/bin/ar RANLIB=/opt/local/bin/ranlib
:info:build Exit code: 2
:error:build Failed to build libunwind: command execution failed
:debug:build Error code: CHILDSTATUS 95338 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:debug:build Failed to locate 'lbzip2' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
:debug:build     while executing
:debug:build "error "$eMessage or at its MacPorts configuration time location, did you move it?""
:debug:build     invoked from within
:debug:build "try -pass_signal {
:debug:build             set cmd_path [macports::binaryInPath $prog]
:debug:build             return $cmd_path
:debug:build         } catch {{*} eCode eMessage} {
:debug:build        ..."
:debug:build     (procedure "macports::findBinary" line 5)
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libunwind/libunwind/main.log for details.

Change History (4)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Keywords: powerpc added; libunwind ppc 10.5 removed
Owner: set to jeremyhu
Status: newassigned

In the future, please Cc the port maintainers (port info --maintainers libunwind), if any.

comment:2 Changed 7 years ago by kencu (Ken)

yes, clang-3.4 can't build anything much reliably on PowerPC. It should somehow get blacklisted in macports' compiler choice settings. I built libunwind on 10.5 Intel with a ppc slice, and copied that over to a 10.5 PPC machine to get it installed.

Do you mind if I ask what you are up to on PPC that needs libunwind?

I do have clang-3.8 working on PPC quite well. You can see 53184 for some info on that. It's almost ready for a Portfile release. Just was hoping ian sandhoe or somebody with that level of skills and some free cycles and interest would help me fix the issue with eh_frames and exceptions...

Last edited 7 years ago by kencu (Ken) (previous) (diff)

comment:3 Changed 7 years ago by kencu (Ken)

Jeremy, I rather suppose you might feel it's OK to close this as a wontfix and refer the OP to 53184.

comment:4 Changed 7 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: wontfix
Status: assignedclosed

Yeah, this is just one of those cases where I admire the desire to keep 15 year old hardware working but it's never going to bubble up as a priority for me.

Note: See TracTickets for help on using tickets.