[MacPorts] #38934: libstdcxx 4.8-20130411 fails to build on PPC Tiger because of overloaded function

MacPorts noreply at macports.org
Fri Apr 26 03:33:58 PDT 2013


#38934: libstdcxx 4.8-20130411 fails to build on PPC Tiger because of overloaded
function
------------------------------+-------------------
  Reporter:  Peter_Dyballa@…  |      Owner:  mww@…
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.1.3
Resolution:                   |   Keywords:
      Port:  libstdcxx        |
------------------------------+-------------------

Comment (by Peter_Dyballa@…):

 Replying to [comment:2 jeremyhu@…]:

 >
 > Yes, I suspect applc-gcc-4.2 is needed.

 I tried with

 {{{
 port install libstdcxx configure.compiler=apple-gcc-4.2
 }}}

 which lead to a somehow familiar error, one that I met when I tried to
 build on Snow Leopard software that would also run on Tiger:

 {{{
 /opt/local/bin/g++-apple-4.2 -c  -DIN_GCC_FRONTEND -pipe -O2 -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 -I. -I.
 -I../../gcc-4.8-20130411/gcc -I../../gcc-4.8-20130411/gcc/.
 -I../../gcc-4.8-20130411/gcc/../include
 -I../../gcc-4.8-20130411/gcc/../libcpp/include -I/opt/local/include
 -I/opt/local/include -I/opt/local/include
 -I../../gcc-4.8-20130411/gcc/../libdecnumber
 -I../../gcc-4.8-20130411/gcc/../libdecnumber/dpd -I../libdecnumber
 -I../../gcc-4.8-20130411/gcc/../libbacktrace -DCLOOG_INT_GMP
 -I/opt/local/include  -I/opt/local/include cc1-checksum.c -o
 cc1-checksum.o
 /opt/local/bin/g++-apple-4.2   -pipe -O2 -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 -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_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_gcc48/libstdcxx/work/build/gcc'
 }}}

 This -mlong-branch flag is disturbing quite often. How can I build sane
 crt1.o and crt3.o object files for GCC 4.2 with MacPorts?

-- 
Ticket URL: <https://trac.macports.org/ticket/38934#comment:5>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list