[MacPorts] #39791: libstdcxx 4.8.1 fails to build on PPC Tiger because of undefined symbols
#39791: libstdcxx 4.8.1 fails to build on PPC Tiger because of undefined symbols -----------------------------+-------------------------------- Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Keywords: | Port: libstdcxx -----------------------------+-------------------------------- /opt/local/bin/g++-apple-4.2 -arch ppc -pipe -Os -DIN_GCC -fno- exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno- variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -L/opt/local/lib -Wl,-headerpad_max_install_names -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux- info.o c/c-objc-common.o c/c-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c -pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o tree- mudflap.o darwin-c.o rs6000-c.o \ cc1-checksum.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a -liconv ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/opt/local/lib -lcloog-isl -lisl -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lmpc -lmpfr -lgmp -lz ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /usr/lib/crt1.o ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /opt/local/lib/apple-gcc42/gcc/powerpc-apple-darwin8/4.2.1/crt3.o Undefined symbols: "__Unwind_GetIPInfo", referenced from: _unwind in libbacktrace.a(backtrace.o) ld: symbol(s) not found collect2: ld returned 1 exit status make[2]: *** [cc1] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_gcc48/libstdcxx/work/build/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_gcc48/libstdcxx/work/build' make: *** [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_gcc48/libstdcxx/work/build' Command failed: cd "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_gcc48/libstdcxx/work/build" && /usr/bin/make -w all Exit code: 2 Error: org.macports.build for port libstdcxx returned: command execution failed DEBUG: Error code: CHILDSTATUS 4827 2 DEBUG: Backtrace: command execution failed -- Ticket URL: <https://trac.macports.org/ticket/39791> MacPorts <http://www.macports.org/> Ports system for OS X
#39791: libstdcxx 4.8.1 fails to build on PPC Tiger because of undefined symbols ------------------------------+----------------------------- Reporter: Peter_Dyballa@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Resolution: | Keywords: ppc ppc64 tiger Port: libstdcxx | ------------------------------+----------------------------- Changes (by larryv@…): * owner: macports-tickets@… => mww@… * cc: mww@… (removed) * keywords: => ppc ppc64 tiger Old description:
/opt/local/bin/g++-apple-4.2 -arch ppc -pipe -Os -DIN_GCC -fno- exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite- strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -L/opt/local/lib -Wl,-headerpad_max_install_names -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o tree-mudflap.o darwin-c.o rs6000-c.o \ cc1-checksum.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a -liconv ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/opt/local/lib -lcloog-isl -lisl -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lmpc -lmpfr -lgmp -lz ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /usr/lib/crt1.o ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /opt/local/lib/apple-gcc42/gcc/powerpc-apple-darwin8/4.2.1/crt3.o Undefined symbols: "__Unwind_GetIPInfo", referenced from: _unwind in libbacktrace.a(backtrace.o) ld: symbol(s) not found collect2: ld returned 1 exit status make[2]: *** [cc1] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_gcc48/libstdcxx/work/build/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_gcc48/libstdcxx/work/build' make: *** [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_gcc48/libstdcxx/work/build' Command failed: cd "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_gcc48/libstdcxx/work/build" && /usr/bin/make -w all Exit code: 2 Error: org.macports.build for port libstdcxx returned: command execution failed DEBUG: Error code: CHILDSTATUS 4827 2 DEBUG: Backtrace: command execution failed
New description: {{{ /opt/local/bin/g++-apple-4.2 -arch ppc -pipe -Os -DIN_GCC -fno- exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno- variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -L/opt/local/lib -Wl,-headerpad_max_install_names -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux- info.o c/c-objc-common.o c/c-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c -pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o tree- mudflap.o darwin-c.o rs6000-c.o \ cc1-checksum.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a -liconv ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/opt/local/lib -lcloog-isl -lisl -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lmpc -lmpfr -lgmp -lz ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /usr/lib/crt1.o ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /opt/local/lib/apple-gcc42/gcc/powerpc-apple-darwin8/4.2.1/crt3.o Undefined symbols: "__Unwind_GetIPInfo", referenced from: _unwind in libbacktrace.a(backtrace.o) ld: symbol(s) not found collect2: ld returned 1 exit status make[2]: *** [cc1] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_gcc48/libstdcxx/work/build/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_gcc48/libstdcxx/work/build' make: *** [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_gcc48/libstdcxx/work/build' Command failed: cd "/opt/local/var/macports/build/_opt_mports_trunk_dports_lang_gcc48/libstdcxx/work/build" && /usr/bin/make -w all Exit code: 2 Error: org.macports.build for port libstdcxx returned: command execution failed DEBUG: Error code: CHILDSTATUS 4827 2 DEBUG: Backtrace: command execution failed }}} -- -- Ticket URL: <https://trac.macports.org/ticket/39791#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39791: libstdcxx 4.8.1 fails to build on PPC Tiger because of undefined symbols ------------------------------+----------------------------- Reporter: Peter_Dyballa@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Resolution: | Keywords: ppc ppc64 tiger Port: libstdcxx | ------------------------------+----------------------------- Comment (by egall@…): OP, what does `port installed libunwind-headers` return for you? -- Ticket URL: <https://trac.macports.org/ticket/39791#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39791: libstdcxx 4.8.1 fails to build on PPC Tiger because of undefined symbols ------------------------------+----------------------------- Reporter: Peter_Dyballa@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Resolution: | Keywords: ppc ppc64 tiger Port: libstdcxx | ------------------------------+----------------------------- Comment (by Peter_Dyballa@…): Replying to [comment:2 egall@…]:
OP, what does `port installed libunwind-headers` return for you?
libunwind-headers @35.1_0 (active) -- Ticket URL: <https://trac.macports.org/ticket/39791#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#39791: libstdcxx 4.8.1 fails to build on PPC Tiger because of undefined symbols ------------------------------+----------------------------- Reporter: Peter_Dyballa@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Resolution: | Keywords: ppc ppc64 tiger Port: libstdcxx | ------------------------------+----------------------------- Comment (by Peter_Dyballa@…): Replying to [comment:2 egall@…]:
OP, what does `port installed libunwind-headers` return for you? I made an experiment and removed these header files. The build fails with exactly the same error:
{{{ /opt/local/bin/g++-apple-4.2 -arch ppc -pipe -Os -DIN_GCC -fno- exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno- variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -L/opt/local/lib -Wl,-headerpad_max_install_names -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux- info.o c/c-objc-common.o c/c-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c -pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o tree- mudflap.o darwin-c.o rs6000-c.o \ cc1-checksum.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a -liconv ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/opt/local/lib -lcloog-isl -lisl -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lmpc -lmpfr -lgmp -lz ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /usr/lib/crt1.o ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /opt/local/lib/apple-gcc42/gcc/powerpc-apple-darwin8/4.2.1/crt3.o Undefined symbols: "__Unwind_GetIPInfo", referenced from: _unwind in libbacktrace.a(backtrace.o) ld: symbol(s) not found }}} I also made a comparison of the two main.log files – there are no real differences, just dates. The documentation of libbacktrace states: {{{ As of September 2012, libbacktrace only supports ELF executables with DWARF debugging information. The library is written to make it straightforward to add support for other object file and debugging formats. }}} In Mac OS X DWARF2 is used and ELF executables are not used – what is libbacktrace then good for? -- Ticket URL: <https://trac.macports.org/ticket/39791#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#39791: libstdcxx 4.8.1 fails to build on PPC Tiger because of undefined symbols ------------------------------+----------------------------- Reporter: Peter_Dyballa@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Resolution: | Keywords: ppc ppc64 tiger Port: libstdcxx | ------------------------------+----------------------------- Comment (by Peter_Dyballa@…): When tried to build libstdcxx, port told me that it was now (named) libgcc. This package could be built, which might also be used as status for libstdcxx, which can be close as fixed or will never be fixed… -- Ticket URL: <https://trac.macports.org/ticket/39791#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#39791: libstdcxx 4.8.1 fails to build on PPC Tiger because of undefined symbols ------------------------------+------------------------------------- Reporter: Peter_Dyballa@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.99 Resolution: | Keywords: powerpc powerpc64 tiger Port: libstdcxx | ------------------------------+------------------------------------- Changes (by mf2k@…): * keywords: ppc ppc64 tiger => powerpc powerpc64 tiger Comment: Unify powerpc keywords. -- Ticket URL: <https://trac.macports.org/ticket/39791#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts