[MacPorts] #55410: gcc7 @7.2.0 does not build on Mac OS X 10.6.8, Snow Leopard, because of "Undefined symbols for architecture x86_64"
MacPorts
noreply at macports.org
Fri May 4 00:19:28 UTC 2018
#55410: gcc7 @7.2.0 does not build on Mac OS X 10.6.8, Snow Leopard, because of
"Undefined symbols for architecture x86_64"
------------------------+--------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Resolution: | Keywords:
Port: gcc7 |
------------------------+--------------------
Comment (by chrisjogorman):
Found a new tester for you. I have the same problem Peter described but
for gcc-7.3.0. I've attached my main.log as main.log.2.gz
{{{
/opt/local/bin/clang++-mp-3.9 -arch x86_64 -std=gnu++98 -g -DIN_GCC
-fno-strict-aliasing -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 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/c-array-
notation.o c/c-fold.o c/gimple-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-indentation.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 c-family/c-attribs.o
c-family/c-warn.o i386-c.o darwin-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
-lisl -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lmpc -lmpfr
-lgmp -lz
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(char const*, std::allocator<char>
const&)", referenced from:
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> >::~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> >::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:
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)
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::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)",
referenced from:
"std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::basic_string(char const*, std::allocator<char>
const&)", 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)
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::basic_string<char, std::char_traits<char>,
std::allocator<char> >::basic_string()", 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)
chkp_build_instrumented_fndecl(tree_node*) in libbackend.a(ipa-
chkp.o)
"std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >::~basic_string()", referenced from:
ld: symbol(s) not found for architecture x86_64
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> >::operator=(char const*)", referenced from:
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....
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::__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)
"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)
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]: *** [cc1] Error 1
rm gcc.pod
make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/gcc7/work/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/gcc7/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/gcc7/work/build'
make: *** [bootstrap-lean] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/gcc7/work/build'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/gcc7/work/build"
&& /usr/bin/make -j2 -w bootstrap-lean
Exit code: 2
Error: Failed to build gcc7: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/gcc7/main.log
for details.
Error: Problem while installing gcc7
Error: Unable to execute port: upgrade arpack failed
}}}
--
Ticket URL: <https://trac.macports.org/ticket/55410#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list