[MacPorts] #53702: arm-none-linux-gnueabi-gcc @2005q3-2: fails on Sierra - Undefined symbols for architecture x86_64
MacPorts
noreply at macports.org
Fri Mar 3 11:13:07 UTC 2017
#53702: arm-none-linux-gnueabi-gcc @2005q3-2: fails on Sierra - Undefined symbols
for architecture x86_64
----------------------------+----------------------------------------
Reporter: leaveye | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.1
Keywords: sierra, x86_64 | Port: arm-none-linux-gnueabi-gcc
----------------------------+----------------------------------------
I have just installed a clean [https://github.com/macports/macports-
base/releases/download/v2.4.1/MacPorts-2.4.1-10.12-Sierra.pkg
MacPorts-2.4.1-10.12-Sierra.pkg] on my MacBook Pro only for arm-none-
linux-gnueabi-gcc
{{{
$ sudo port install arm-none-linux-gnueabi-gcc
Password:
---> Computing dependencies for arm-none-linux-gnueabi-gcc
The following dependencies will be installed:
arm-none-linux-gnueabi-binutils
arm-none-linux-gnueabi-runtime
expat
gettext
libiconv
ncurses
zlib
Continue? [Y/n]:
---> Fetching archive for expat
---> Attempting to fetch expat-2.2.0_0.darwin_16.x86_64.tbz2 from
http://kmq.jp.packages.macports.org/expat
---> Attempting to fetch expat-2.2.0_0.darwin_16.x86_64.tbz2.rmd160 from
http://kmq.jp.packages.macports.org/expat
---> Installing expat @2.2.0_0
---> Activating expat @2.2.0_0
---> Cleaning expat
---> Fetching archive for libiconv
... a bunch of Fetching through Cleaning
---> Building arm-none-linux-gnueabi-runtime
---> Staging arm-none-linux-gnueabi-runtime into destroot
Warning: arm-none-linux-gnueabi-runtime installs files outside the common
directory structure.
---> Installing arm-none-linux-gnueabi-runtime @cs2005q3.2_0
---> Activating arm-none-linux-gnueabi-runtime @cs2005q3.2_0
---> Cleaning arm-none-linux-gnueabi-runtime
---> Fetching archive for arm-none-linux-gnueabi-gcc
---> Attempting to fetch arm-none-linux-gnueabi-gcc-
2005q3-2_0.darwin_16.x86_64.tbz2 from http://kmq.jp.packages.macports.org
/arm-none-linux-gnueabi-gcc
---> Attempting to fetch arm-none-linux-gnueabi-gcc-
2005q3-2_0.darwin_16.x86_64.tbz2 from
https://pek.cn.packages.macports.org/macports/packages/arm-none-linux-
gnueabi-gcc
---> Attempting to fetch arm-none-linux-gnueabi-gcc-
2005q3-2_0.darwin_16.x86_64.tbz2 from
http://mse.uk.packages.macports.org/sites/packages.macports.org/arm-none-
linux-gnueabi-gcc
---> Fetching distfiles for arm-none-linux-gnueabi-gcc
---> Attempting to fetch gcc-2005q3-2.tar.bz2 from
https://pek.cn.distfiles.macports.org/macports/distfiles/gcc
---> Verifying checksums for arm-none-linux-gnueabi-gcc
---> Extracting arm-none-linux-gnueabi-gcc
---> Applying patches to arm-none-linux-gnueabi-gcc
Warning: reinplace s| cpp.info| arm-none-linux-gnueabi-cpp.info|g didn't
change anything in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-
none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/Makefile.in
Warning: reinplace s|^cpp.info|arm-none-linux-gnueabi-cpp.info|g didn't
change anything in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-
none-linux-gnueabi-gcc/work/gcc-2005q3/gcc/Makefile.in
... here is a long list of warnings
---> Configuring arm-none-linux-gnueabi-gcc
---> Building arm-none-linux-gnueabi-gcc
Error: Failed to build arm-none-linux-gnueabi-gcc: command execution
failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-
none-linux-gnueabi-gcc/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port arm-none-linux-gnueabi-gcc failed
$
}}}
I run into the log file, here is the tail.
{{{
:info:build /usr/bin/clang -pipe -Os -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-
long-long -DHAVE_CONFIG_H -o cc1 \
:info:build c-parse.o c-lang.o c-pretty-print.o stub-objc.o
attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c
-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o
cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o
c-pch.o libcpp.a main.o libbackend.a ../libiberty/libiberty.a
../intl/libintl.a -L/opt/local/lib -liconv
:info:build /usr/bin/clang -pipe -Os -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-
long-long -DHAVE_CONFIG_H -o cc1plus \
:info:build 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-lang.o cp/name-lookup.o cp/cxx-pretty-print.o attribs.o
c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o c-dump.o c-pretty-
print.o c-opts.o c-pch.o c-incpath.o cppdefault.o c-ppoutput.o
c-cppbuiltin.o prefix.o main.o libbackend.a libcpp.a
../libiberty/libiberty.a ../intl/libintl.a -L/opt/local/lib -liconv
:info:build /usr/bin/clang -pipe -Os -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-
long-long -DHAVE_CONFIG_H -o cc1obj \
:info:build objc/objc-lang.o objc/objc-parse.o objc/objc-act.o
attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c
-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o
cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o
c-pch.o libcpp.a main.o libbackend.a ../libiberty/libiberty.a
../intl/libintl.a -L/opt/local/lib -liconv
:info:build Undefined symbols for architecture x86_64:
:info:build "_libc_name_p", referenced from:
:info:build _nothrow_libfn_p in except.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v
to see invocation)
:info:build make[1]: *** [cc1plus] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build rm arm-none-linux-gnueabi-cpp.pod fsf-funding.pod gcov.pod
arm-none-linux-gnueabi-gcc.pod gfdl.pod gpl.pod
:info:build make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-
none-linux-gnueabi-gcc/work/build/gcc'
:info:build make: *** [all-gcc] Error 2
:info:build make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-
none-linux-gnueabi-gcc/work/build'
:info:build Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-
none-linux-gnueabi-gcc/work/build" && /usr/bin/make -j8 -w all
AR_FOR_TARGET=arm-none-linux-gnueabi-ar AS_FOR_TARGET=arm-none-linux-
gnueabi-as LD_FOR_TARGET=arm-none-linux-gnueabi-ld NM_FOR_TARGET=arm-none-
linux-gnueabi-nm RANLIB_FOR_TARGET=arm-none-linux-gnueabi-ranlib
:info:build Exit code: 2
:error:build Failed to build arm-none-linux-gnueabi-gcc: command execution
failed
:debug:build Error code: CHILDSTATUS 16988 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec build"
:debug:build (procedure "portbuild::build_main" line 8)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_cross_arm-none-linux-gnueabi-gcc/arm-
none-linux-gnueabi-gcc/main.log for details.
}}}
After asking the search engine, the ticket #53305 seems the same issue.
System environment:
- MacBook Pro (15-inch, Late 2011)
- Mac OS X Sierra 10.12.2
- Xcode 8.2.1
P.S. the OS X Sierra 10.12.3 was released, i wonder if this update still
leads to this issue.
--
Ticket URL: <https://trac.macports.org/ticket/53702>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list