[MacPorts] #53702: arm-none-linux-gnueabi-gcc @2005q3-2: fails on Sierra - Undefined symbols for architecture x86_64
MacPorts
noreply at macports.org
Mon Mar 6 08:33:40 UTC 2017
#53702: arm-none-linux-gnueabi-gcc @2005q3-2: fails on Sierra - Undefined symbols
for architecture x86_64
-----------------------------------------+-----------------------------
Reporter: leaveye | Owner: stuartwesterman
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.4.1
Resolution: | Keywords:
Port: arm-none-linux-gnueabi-gcc |
-----------------------------------------+-----------------------------
Comment (by leaveye):
Replying to [comment:2 kencu]:
> Here's a clue:
>
> <http://stackoverflow.com/questions/3040801/error-compiling-gcc-
undefined-reference-to-libc-name-p>
>
> perhaps `gperf` is not installed?
>
> check. if it is not, install it, and then clean and retry your gcc
installation.
----
Thanks for your tip. But it doesnot work for me.
1. As mentioned above, it's a clean port install. `gperf` is not manually
installed by `port`, nor `brew`. But there is a (maybe) usable gperf
binary:
{{{
$ gperf --version
GNU gperf 3.0.3
Copyright (C) 1989-1998, 2000-2004, 2006-2007 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.
Written by Douglas C. Schmidt and Bruno Haible.
$ which gperf
/usr/bin/gperf
}}}
2. I dont know if the remove and `port install gperf` is necessary to
trying this.
3. So, to confirm the clue, I ran into the work dir
{{{/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/}}} and have checked the only source `gcc-
2005q3/gcc/cp/cfns.h` in that work dir, it does have `libc_name_p()`
function body defined, with no `#ifdef` switches surrounded.
4. And then I tried to clean, install gperf and install armgcc:
{{{
$ sudo port clean arm-none-linux-gnueabi-gcc
Password:
---> Cleaning arm-none-linux-gnueabi-gcc
$ sudo port install gperf arm-none-linux-gnueabi-gcc
---> Fetching archive for gperf
---> Attempting to fetch gperf-3.0.4_2.darwin_16.x86_64.tbz2 from
https://pek.cn.packages.macports.org/macports/packages/gperf
---> Attempting to fetch gperf-3.0.4_2.darwin_16.x86_64.tbz2.rmd160 from
https://pek.cn.packages.macports.org/macports/packages/gperf
---> Installing gperf @3.0.4_2
---> Activating gperf @3.0.4_2
---> Cleaning gperf
---> Computing dependencies for arm-none-linux-gnueabi-gcc
---> 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
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://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
http://jog.id.packages.macports.org/macports/packages/arm-none-linux-
gnueabi-gcc
---> Fetching distfiles for arm-none-linux-gnueabi-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
... a bunch of warining-reinplace-s
Warning: reinplace s|^fastjar.texi|arm-none-linux-gnueabi-fastjar.texi|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/fastjar/Makefile.in
---> 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
}}}
And the tail of new .../main.log:
{{{
:info:build (TARGET_MACHINE='arm-none-linux-gnueabi'; srcdir=`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/gcc-2005q3/gcc; ${PWDCMD-pwd}`; \
:info:build SHELL='/bin/sh' ;\
:info:build export TARGET_MACHINE srcdir SHELL ; \
:info:build /bin/sh ./fixinc.sh `${PWDCMD-pwd}`/include
/opt/local/lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-
linux-gnueabi/sys-include ; \
:info:build rm -f include/syslimits.h; \
:info:build if [ -f include/limits.h ]; then \
:info:build mv include/limits.h include/syslimits.h; \
:info:build else \
:info:build cp
/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/gsyslimits.h
include/syslimits.h; \
:info:build fi; \
:info:build chmod a+r include/syslimits.h)
:info:build Fixing headers into
/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/include for arm-none-linux-gnueabi
target
:info:build echo timestamp > stmp-fixinc
:info:build if [ -d include ] ; then true; else mkdir include; chmod a+rx
include; fi
:info:build for file 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/ginclude/float.h
/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/ginclude/iso646.h
/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/ginclude/stdarg.h
/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/ginclude/stdbool.h
/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/ginclude/stddef.h
/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/ginclude/varargs.h
/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/unwind.h
/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/unwind-arm.h
/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/config/arm/mmintrin.h; do \
:info:build if [ X$file != X.. ]; then \
:info:build realfile=`echo $file | sed -e 's|.*/\([^/]*\)$|\1|'`;
\
:info:build echo timestamp > include/$realfile; \
:info:build rm -f include/$realfile; \
:info:build cp $file include; \
:info:build chmod a+r include/$realfile; \
:info:build fi; \
:info:build done
:info:build rm -f include/limits.h
:info:build cp xlimits.h include/limits.h
:info:build chmod a+r include/limits.h
:info:build rm -f include/README
:info:build cp
/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/README-fixinc include/README
:info:build chmod a+r include/README
:info:build echo timestamp > stmp-int-hdrs
:info:build 57 warnings generated.
:info:build mv tmp-libgcc.mk libgcc.mk
:info:build 2 warnings generated.
:info:build rm -rf libbackend.a
:info:build ar rc libbackend.a alias.o bb-reorder.o bitmap.o builtins.o
caller-save.o calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o
cfgloop.o cfgloopanal.o cfgloopmanip.o loop-init.o loop-unswitch.o loop-
unroll.o cfgrtl.o combine.o conflict.o convert.o coverage.o cse.o cselib.o
dbxout.o debug.o df.o diagnostic.o dojump.o doloop.o dominance.o
dwarf2asm.o dwarf2out.o emit-rtl.o except.o explow.o expmed.o expr.o
final.o flow.o fold-const.o function.o gcse.o genrtl.o ggc-common.o
global.o graph.o gtype-desc.o haifa-sched.o hooks.o ifcvt.o insn-attrtab.o
insn-emit.o insn-modes.o insn-extract.o insn-opinit.o insn-output.o insn-
peep.o insn-recog.o integrate.o intl.o jump.o langhooks.o lcm.o lists.o
local-alloc.o loop.o optabs.o options.o opts.o params.o postreload.o
predict.o print-rtl.o print-tree.o value-prof.o profile.o ra.o ra-build.o
ra-colorize.o ra-debug.o ra-rewrite.o real.o recog.o reg-stack.o
regclass.o regmove.o regrename.o reload.o reload1.o reorg.o resource.o
rtl.o rtlanal.o rtl-error.o sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o
sched-vis.o sdbout.o sibcall.o simplify-rtx.o sreal.o stmt.o stor-layout.o
stringpool.o targhooks.o timevar.o toplev.o tracer.o tree.o tree-dump.o
unroll.o varasm.o varray.o version.o vmsdbgout.o xcoffout.o alloc-pool.o
et-forest.o cfghooks.o bt-load.o pretty-print.o ggc-page.o web.o arm.o
host-default.o hashtable.o tree-inline.o tree-optimize.o cgraph.o
cgraphunit.o
:info:build
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: libbackend.a(doloop.o) has no symbols
:info:build
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: libbackend.a(reorg.o) has no symbols
:info:build
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: libbackend.a(vmsdbgout.o) has no symbols
:info:build
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: libbackend.a(xcoffout.o) has no symbols
:info:build ranlib libbackend.a
:info:build
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: libbackend.a(doloop.o) has no symbols
:info:build
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: libbackend.a(reorg.o) has no symbols
:info:build
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: libbackend.a(vmsdbgout.o) has no symbols
:info:build
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: libbackend.a(xcoffout.o) has no symbols
: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 66474 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.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/53702#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list