[MacPorts] #55135: gcc5 @5.5.0 fails to build on Snow Leopard, Mac OS X 10.6.8, because linker command failed with undefined symbols for architecture x86_64

MacPorts noreply at macports.org
Tue Oct 24 03:03:00 UTC 2017


#55135: gcc5 @5.5.0 fails to build on Snow Leopard, Mac OS X 10.6.8, because linker
command failed with undefined symbols for architecture x86_64
------------------------+-------------------------
  Reporter:  ballapete  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.2
Resolution:             |   Keywords:  snowleopard
      Port:  gcc5       |
------------------------+-------------------------

Comment (by kencu):

 I can't reproduce this error on my systems. gcc5 builds without issue for
 me using several different compilers. It just sails right past the
 specific area where Peter had the issue above. I think it must be
 something specific to his setup, therefore...
 {{{
 rm -rf libbackend.a
 ar rc libbackend.a insn-attrtab.o insn-automata.o insn-dfatab.o insn-
 emit.o insn-extract.o insn-latencytab.o insn-modes.o insn-opinit.o insn-
 output.o insn-peep.o insn-preds.o insn-recog.o insn-enums.o ggc-page.o
 alias.o alloc-pool.o auto-inc-dec.o auto-profile.o bb-reorder.o bitmap.o
 bt-load.o builtins.o caller-save.o calls.o ccmp.o cfg.o cfganal.o
 cfgbuild.o cfgcleanup.o cfgexpand.o cfghooks.o cfgloop.o cfgloopanal.o
 cfgloopmanip.o cfgrtl.o symtab.o cgraph.o cgraphbuild.o cgraphunit.o
 cgraphclones.o cilk-common.o combine.o combine-stack-adj.o compare-elim.o
 context.o convert.o coverage.o cppbuiltin.o cppdefault.o cprop.o cse.o
 cselib.o data-streamer.o data-streamer-in.o data-streamer-out.o dbxout.o
 dbgcnt.o dce.o ddg.o debug.o df-core.o df-problems.o df-scan.o dfp.o
 dojump.o dominance.o domwalk.o double-int.o dse.o dumpfile.o dwarf2asm.o
 dwarf2cfi.o dwarf2out.o emit-rtl.o et-forest.o except.o explow.o expmed.o
 expr.o final.o fixed-value.o fold-const.o function.o fwprop.o gcse.o gcse-
 common.o ggc-common.o gimple.o gimple-builder.o gimple-expr.o gimple-
 iterator.o gimple-fold.o gimple-low.o gimple-match.o generic-match.o
 gimple-pretty-print.o gimple-ssa-isolate-paths.o gimple-ssa-strength-
 reduction.o gimple-streamer-in.o gimple-streamer-out.o gimple-walk.o
 gimplify.o gimplify-me.o godump.o graph.o graphds.o graphite.o graphite-
 blocking.o graphite-isl-ast-to-gimple.o graphite-dependences.o graphite-
 interchange.o graphite-optimize-isl.o graphite-poly.o graphite-scop-
 detection.o graphite-sese-to-poly.o gtype-desc.o haifa-sched.o hw-doloop.o
 hwint.o ifcvt.o ree.o inchash.o incpath.o init-regs.o internal-fn.o ipa-
 chkp.o ipa-cp.o ipa-devirt.o ipa-polymorphic-call.o ipa-split.o ipa-
 inline.o ipa-comdats.o ipa-visibility.o ipa-inline-analysis.o ipa-inline-
 transform.o ipa-profile.o ipa-prop.o ipa-pure-const.o ipa-icf.o ipa-icf-
 gimple.o ipa-reference.o ipa-ref.o ipa-utils.o ipa.o ira.o ira-build.o
 ira-costs.o ira-conflicts.o ira-color.o ira-emit.o ira-lives.o jump.o
 langhooks.o lcm.o lists.o loop-doloop.o loop-init.o loop-invariant.o loop-
 iv.o loop-unroll.o lower-subreg.o lra.o lra-assigns.o lra-coalesce.o lra-
 constraints.o lra-eliminations.o lra-lives.o lra-remat.o lra-spills.o lto-
 cgraph.o lto-streamer.o lto-streamer-in.o lto-streamer-out.o lto-section-
 in.o lto-section-out.o lto-opts.o lto-compress.o mcf.o mode-switching.o
 modulo-sched.o omega.o omp-low.o optabs.o options-save.o opts-global.o
 passes.o plugin.o postreload-gcse.o postreload.o predict.o print-rtl.o
 print-tree.o profile.o real.o realmpfr.o recog.o reg-stack.o regcprop.o
 reginfo.o regrename.o regstat.o reload.o reload1.o reorg.o resource.o rtl-
 chkp.o rtl-error.o rtl.o rtlhash.o rtlanal.o rtlhooks.o sbitmap.o sched-
 deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout.o sel-sched-ir.o sel-
 sched-dump.o sel-sched.o sese.o shrink-wrap.o simplify-rtx.o sparseset.o
 sreal.o stack-ptr-mod.o statistics.o stmt.o stor-layout.o store-motion.o
 streamer-hooks.o stringpool.o target-globals.o targhooks.o timevar.o
 toplev.o tracer.o trans-mem.o tree-affine.o asan.o tsan.o ubsan.o sanopt.o
 tree-call-cdce.o tree-cfg.o tree-cfgcleanup.o tree-chrec.o tree-complex.o
 tree-data-ref.o tree-dfa.o tree-diagnostic.o tree-dump.o tree-eh.o tree-
 emutls.o tree-if-conv.o tree-inline.o tree-into-ssa.o tree-iterator.o
 tree-loop-distribution.o tree-nested.o tree-nrv.o tree-object-size.o tree-
 outof-ssa.o tree-parloops.o tree-phinodes.o tree-chkp.o tree-chkp-opt.o
 tree-predcom.o tree-pretty-print.o tree-profile.o tree-scalar-evolution.o
 tree-sra.o tree-switch-conversion.o tree-ssa-address.o tree-ssa-alias.o
 tree-ssa-ccp.o tree-ssa-coalesce.o tree-ssa-copy.o tree-ssa-copyrename.o
 tree-ssa-dce.o tree-ssa-dom.o tree-ssa-dse.o tree-ssa-forwprop.o tree-ssa-
 ifcombine.o tree-ssa-live.o tree-ssa-loop-ch.o tree-ssa-loop-im.o tree-
 ssa-loop-ivcanon.o tree-ssa-loop-ivopts.o tree-ssa-loop-manip.o tree-ssa-
 loop-niter.o tree-ssa-loop-prefetch.o tree-ssa-loop-unswitch.o tree-ssa-
 loop.o tree-ssa-math-opts.o tree-ssa-operands.o tree-ssa-phiopt.o tree-
 ssa-phiprop.o tree-ssa-pre.o tree-ssa-propagate.o tree-ssa-reassoc.o tree-
 ssa-sccvn.o tree-ssa-sink.o tree-ssa-strlen.o tree-ssa-structalias.o tree-
 ssa-tail-merge.o tree-ssa-ter.o tree-ssa-threadedge.o tree-ssa-
 threadupdate.o tree-ssa-uncprop.o tree-ssa-uninit.o tree-ssa.o tree-
 ssanames.o tree-stdarg.o tree-streamer.o tree-streamer-in.o tree-streamer-
 out.o tree-tailcall.o tree-vect-generic.o tree-vect-patterns.o tree-vect-
 data-refs.o tree-vect-stmts.o tree-vect-loop.o tree-vect-loop-manip.o
 tree-vect-slp.o tree-vectorizer.o tree-vrp.o tree.o valtrack.o value-
 prof.o var-tracking.o varasm.o varpool.o vmsdbgout.o vtable-verify.o web.o
 wide-int.o wide-int-print.o xcoffout.o i386.o darwin.o host-darwin.o
 host-i386-darwin.o
 /opt/local/bin/ranlib: file: libbackend.a(insn-peep.o) has no symbols
 /opt/local/bin/ranlib: file: libbackend.a(hw-doloop.o) has no symbols
 /opt/local/bin/ranlib: file: libbackend.a(loop-doloop.o) has no symbols
 /opt/local/bin/ranlib: file: libbackend.a(vmsdbgout.o) has no symbols
 /opt/local/bin/ranlib: file: libbackend.a(xcoffout.o) has no symbols
 ranlib  libbackend.a
 ranlib: file: libbackend.a(insn-peep.o) has no symbols
 ranlib: file: libbackend.a(hw-doloop.o) has no symbols
 ranlib: file: libbackend.a(loop-doloop.o) has no symbols
 ranlib: file: libbackend.a(vmsdbgout.o) has no symbols
 ranlib: file: libbackend.a(xcoffout.o) has no symbols
 build/genchecksum 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/c-array-notation.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
 c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o
 c-family/c-ubsan.o i386-c.o darwin-c.o libbackend.a main.o tree-browser.o
 libcommon-target.a libcommon.a ../libcpp/libcpp.a
 ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a
 ../libiberty/libiberty.a   ../libdecnumber/libdecnumber.a
 ../libbacktrace/.libs/libbacktrace.a \
                      checksum-options > cc1-checksum.c.tmp &&            \
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc5/gcc5/work/gcc-5.5.0/gcc
 /../move-if-change cc1-checksum.c.tmp cc1-checksum.c
 build/genchecksum cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o
 cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o
 cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o
 cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o
 cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp
 /name-lookup.o cp/cxx-pretty-print.o cp/cp-cilkplus.o cp/cp-gimplify.o cp
 /cp-array-notation.o cp/lambda.o cp/vtable-class-hierarchy.o
 cp/constexpr.o cp/cp-ubsan.o attribs.o incpath.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
 c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o
 c-family/c-ubsan.o i386-c.o darwin-c.o libbackend.a main.o tree-browser.o
 libcommon-target.a libcommon.a ../libcpp/libcpp.a
 ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a
 ../libiberty/libiberty.a   ../libdecnumber/libdecnumber.a
 ../libbacktrace/.libs/libbacktrace.a \
                      checksum-options > cc1plus-checksum.c.tmp &&
 \
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc5/gcc5/work/gcc-5.5.0/gcc
 /../move-if-change cc1plus-checksum.c.tmp cc1plus-checksum.c
 /opt/local/bin/clang++-mp-3.7 -arch x86_64   -g  -DIN_GCC    -fno-
 exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
 -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute
 -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-
 overlength-strings -fno-common  -DHAVE_CONFIG_H -L/opt/local/lib
 -Wl,-headerpad_max_install_names -o lto1 \
                 lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o lto
 /lto-partition.o lto/lto-symtab.o libbackend.a main.o tree-browser.o
 libcommon-target.a libcommon.a ../libcpp/libcpp.a
 ../libdecnumber/libdecnumber.a -L/opt/local/lib -lisl -L/opt/local/lib
 -L/opt/local/lib -L/opt/local/lib -lmpc -lmpfr -lgmp   -lz libcommon.a
 ../libcpp/libcpp.a  -liconv ../libbacktrace/.libs/libbacktrace.a
 ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
 /opt/local/bin/clang++-mp-3.7 -arch x86_64 -c  -DIN_GCC_FRONTEND -g
 -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W
 -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-
 format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-
 variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I.
 -I.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc5/gcc5/work/gcc-5.5.0/gcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc5/gcc5/work/gcc-5.5.0/gcc/.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc5/gcc5/work/gcc-5.5.0/gcc/../include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc5/gcc5/work/gcc-5.5.0/gcc/../libcpp/include
 -I/opt/local/include -I/opt/local/include -I/opt/local/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc5/gcc5/work/gcc-5.5.0/gcc/../libdecnumber
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc5/gcc5/work/gcc-5.5.0/gcc/../libdecnumber/dpd
 -I../libdecnumber
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc5/gcc5/work/gcc-5.5.0/gcc/../libbacktrace
 -I/opt/local/include -I/opt/local/include -o cc1-checksum.o -MT
 cc1-checksum.o -MMD -MP -MF ./.deps/cc1-checksum.TPo cc1-checksum.c
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55135#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list