Opened 7 years ago

Closed 7 years ago

#55135 closed defect (worksforme)

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

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: snowleopard Cc:
Port: gcc5

Description

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_nue.de.rsync.macports.org_macports_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_nue.de.rsync.macports.org_macports_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.9 -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 
Undefined symbols for architecture x86_64:
  "std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const", referenced from:
      chkp_build_instrumented_fndecl(tree_node*) in libbackend.a(ipa-chkp.o)
      chkp_add_bounds_params_to_function(tree_node*) in libbackend.a(ipa-chkp.o)
  "std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()", referenced from:
      chkp_build_instrumented_fndecl(tree_node*) in libbackend.a(ipa-chkp.o)
      chkp_add_bounds_params_to_function(tree_node*) in libbackend.a(ipa-chkp.o)
  "std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()", referenced from:
      chkp_build_instrumented_fndecl(tree_node*) in libbackend.a(ipa-chkp.o)
  "std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(char const*)", referenced from:
      chkp_build_instrumented_fndecl(tree_node*) in libbackend.a(ipa-chkp.o)
  "std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator+=(char const*)", referenced from:
      chkp_build_instrumented_fndecl(tree_node*) in libbackend.a(ipa-chkp.o)
      chkp_add_bounds_params_to_function(tree_node*) in libbackend.a(ipa-chkp.o)
  "std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)", referenced from:
      chkp_add_bounds_params_to_function(tree_node*) in libbackend.a(ipa-chkp.o)
  "std::__detail::_List_node_base::_M_unhook()", referenced from:
      std::__cxx11::list<ipa_icf::congruence_class*, std::allocator<ipa_icf::congruence_class*> >::_M_erase(std::_List_iterator<ipa_icf::congruence_class*>) in libbackend.a(ipa-icf.o)
  "std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)", referenced from:
      std::__cxx11::list<ipa_icf::congruence_class*, std::allocator<ipa_icf::congruence_class*> >::_M_insert(std::_List_iterator<ipa_icf::congruence_class*>, ipa_icf::congruence_class* const&) in libbackend.a(ipa-icf.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [lto1] Error 1
make[3]: *** Waiting for unfinished jobs....
rm gcc.pod
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc5/gcc5/work/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc5/gcc5/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc5/gcc5/work/build'
make: *** [bootstrap-lean] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc5/gcc5/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc5/gcc5/work/build" && /usr/bin/make -j8 -w bootstrap-lean 

Attachments (1)

main.log.gz (525.6 KB) - added by ballapete (Peter "Pete" Dyballa) 7 years ago.
main.log from Snow Leopard, bigger 10 MB

Download all attachments as: .zip

Change History (12)

Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log.gz added

main.log from Snow Leopard, bigger 10 MB

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

Peter, these are the exact errors you see when there is an ABI mismatch between standard libs.

You recently had an issue on your system where many things were rebuilt by gcc. How did that wind up getting resolved?

comment:2 in reply to:  1 Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

Replying to kencu:

Peter, these are the exact errors you see when there is an ABI mismatch between standard libs.

You recently had an issue on your system where many things were rebuilt by gcc. How did that wind up getting resolved?

I uninstalled all packages built with GCC 6 and re-activated the old outdated versions. Then I built py27-cython with GCC 5 and installed it. This allowed port to upgrade or re-install nghttp2 and curl which depends on it. On this basis port could build clang-3.9 and llvm-3.9. Afterwards port could upgrade some 40 packages. Gcc5 is the last outdated package. This is the sequence in which the packages were built:

2017-10-20 20:36:57 /opt/local/var/macports/software/py27-cython/py27-cython-0.27.1_0.darwin_10.x86_64.tbz2
2017-10-20 20:43:55 /opt/local/var/macports/software/nghttp2/nghttp2-1.24.0_0+python27.darwin_10.x86_64.tbz2
2017-10-20 21:10:29 /opt/local/var/macports/software/llvm-3.9/llvm-3.9-3.9.1_5.darwin_10.x86_64.tbz2
2017-10-20 21:56:43 /opt/local/var/macports/software/clang-3.9/clang-3.9-3.9.1_7+analyzer+libstdcxx.darwin_10.x86_64.tbz2
2017-10-20 23:14:26 /opt/local/var/macports/software/libgcc/libgcc-7.2.0_1.darwin_10.x86_64.tbz2
2017-10-21 00:15:33 /opt/local/var/macports/software/llvm-4.0/llvm-4.0-4.0.1_2.darwin_10.x86_64.tbz2
2017-10-21 01:10:16 /opt/local/var/macports/software/clang-4.0/clang-4.0-4.0.1_3+analyzer+libstdcxx.darwin_10.x86_64.tbz2
2017-10-21 01:15:39 /opt/local/var/macports/software/python36/python36-3.6.3_0.darwin_10.x86_64.tbz2

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

That sounds reasonable enough -- I'll try building gcc5 on my 10.6.8/libcxx system and see how it turns out. It could be that this configuration might cause troubles bootstrapping gcc5...although gcc6 builds fine...

comment:4 in reply to:  3 Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

This morning I rebuilt and reinstalled py27-cython with default Clang 3.9, but the build of GCC 5 fails again at the same spot with libbackend. I was wondering how py27-cython could have been built with an outdated GCC 5. Did I make a mistake and use GCC 6 instead again? The sequence of compile commands I used in GNU Emacs to build the ports shows that I used GCC 5 for the last build though…

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

Hmmm. Looks like gcc5 built through overnight and seems to work OK for me.

$ port -v installed gcc5
The following ports are currently installed:
  gcc5 @5.5.0_0 (active) platform='darwin 10' archs='x86_64' date='2017-10-21T22:30:22-0700'
$ gcc-mp-5 --version
gcc-mp-5 (MacPorts gcc5 5.5.0_0) 5.5.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I notice on this failing link line there is no -stdlib=libc++ set:

/opt/local/bin/clang++-mp-3.9 -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 

by default then, clang-3.9 on your system would add -stdlib=libstdc++ for you to link against, which is the wrong stdlib for you, and would generate the errors for the missing symbols that you see. As you know I have modified clang-3.9 on my systems to default to adding -stdlib=libc++ if there is no standard lib set for exactly this reason, so that is most likely why my build succeeds and your build fails.

So -- to get past this particular hiccup on your system (which is 10.6.8 / LibcxxOnOlderSystems), the first thing I would do is to try building gcc5 with the following added to the portfile, to specify the standard lib explicitly:

configure.cxxflags-append  -stdlib=libc++
configure.ldflags-append   -stdlib=libc++

If that fails, then remove those two lines from the portfile again, and try building gcc5 with the older default compiler that is installed:

sudo port -v install gcc5 configure.compiler=gcc-4.2

I know that goes against what we usually do with macports, but it should work in this specific case.

comment:6 in reply to:  5 Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

Replying to kencu:

configure.cxxflags-append  -stdlib=libc++
configure.ldflags-append   -stdlib=libc++

This change failed. Could be I put it onto the wrong lines…

If that fails, then remove those two lines from the portfile again, and try building gcc5 with the older default compiler that is installed:

sudo port -v install gcc5 configure.compiler=gcc-4.2

I know that goes against what we usually do with macports, but it should work in this specific case.

Yes, this did the job!

comment:7 Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

There must be more wrong. The build of mediainfo fails similarly.

Could be I need to update the Portfiles from my local repository?

                  local                                          MacPorts
√ 1516 2017-09-13 audio/jack/Portfile            1516 2017-08-22 audio/jack/Portfile
• 3312 2017-07-03 devel/elftoolchain/Portfile    3190 2017-08-22 devel/elftoolchain/Portfile
• 1779 2017-09-13 devel/libedit/Portfile         2132 2017-10-01 devel/libedit/Portfile
• 3234 2017-07-03 devel/util-linux/Portfile      3240 2017-10-19 devel/util-linux/Portfile
• 3380 2017-07-03 net/unbound/Portfile           3521 2017-10-16 net/unbound/Portfile
• 3432 2017-07-03 www/nghttp2/Portfile           3395 2017-09-21 www/nghttp2/Portfile
• 1082 2017-07-06 x11/blackbox/Portfile          1049 2017-08-22 x11/blackbox/Portfile

comment:8 in reply to:  7 Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

Actually only one difference is left:

diff ~/local/devel/elftoolchain/Portfile /opt/local/var/macports/sources/nue.de.rsync.macports.org/macports/release/tarballs/ports/devel/elftoolchain/Portfile
66,70d65
< platform darwin 10 {
< 	depends_lib-append          port:snowleopardfixes
< 	configure.ldflags-append   -lsnowleopardfixes
< }
< 

Updated Portfiles either have this "patch" included or a

PortGroup           snowleopard_fixes 1.0

statement. So most of my local versions have become obsolete.

Anyway, I am rebuilding/reinstalling clang-3.9, llvm-3.9, cctools, ld64-127.

comment:9 Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

The compilers are OK, they can build packages like emacs or unbound. So it's something mediainfo.

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

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

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

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.