Opened 10 months ago

Last modified 7 months ago

#53702 assigned defect

arm-none-linux-gnueabi-gcc @2005q3-2: fails on Sierra - Undefined symbols for architecture x86_64

Reported by: leaveye (Levi G.) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc:
Port: arm-none-linux-gnueabi-gcc

Description

I have just installed a clean 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.

Attachments (1)

main.log (1.3 MB) - added by leaveye (Levi G.) 10 months ago.
/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

Download all attachments as: .zip

Change History (7)

Changed 10 months ago by leaveye (Levi G.)

/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

comment:1 Changed 10 months ago by mf2k (Frank Schima)

  • Cc stuartwesterman@… removed
  • Keywords sierra x86_64 removed
  • Owner set to stuartwesterman
  • Status changed from new to assigned

comment:2 follow-up: Changed 9 months ago by kencu (Ken)

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.

comment:3 in reply to: ↑ 2 Changed 9 months ago by leaveye (Levi G.)

Replying to 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
    
  1. I dont know if the remove and port install gperf is necessary to trying this.
  1. 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.
  1. 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.

comment:4 Changed 9 months ago by kencu (Ken)

OK. Sorry it wasn't as easy as a missing dependency. Bit harder, then.

Here's another clue, from your log.

:info:build                          ^
:info:build ../../gcc/gcc/cp/cfns.gperf:7:1: note: use 'static' to give inline function 'libc_name_p' internal linkage
:info:build __inline
:info:build ^

If declaring the function as static didn't fix it, next thing I'd consider after that is trying to build it with gcc6 instead and see if that works.

sudo port -v install YOURPORT configure.compiler=macports-gcc-6

Of course, gcc6 needs to be installed. Also see UsingTheRightCompiler for other compiler options you could also use.

comment:5 Changed 9 months ago by leaveye (Levi G.)

I am not so sure doing in the right way.

I have a local build tree in directory:

xxx/arm-none-linux-gnueabi-gcc/
+-- build/
|     +-- only cnfs.o in this tree
+-- gcc-2005q3/gcc/cp/
       +-- cfns.gperf
       +-- cfns.h

Although the path ../../gcc/gcc/cp/cfns.h in previous warning is not matched, I change the cfns.gperf to

#ifdef __GNUC__
static  // was __inline
#endif
const char * libc_name_p (const char *, unsigned int);

Then sudo port install arm-none-linux-gnueabi-gcc leads to several std / libc headers not found. e.g.

:info:build /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/xgcc -B/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/ -B/opt/local/arm-none-linux-gnueabi/bin/ -B/opt/local/arm-none-linux-gnueabi/lib/ -isystem /opt/local/arm-none-linux-gnueabi/include -isystem /opt/local/arm-none-linux-gnueabi/sys-include -O2 -O2 -pipe -Os  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I/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 -I/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/. -I/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/../include -I../intl  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time   -fPIC \
:info:build 	  -c /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/crtstuff.c -DCRT_END -DCRTSTUFFS_O \
:info:build 	  -o crtendS.o
:info:build In file included from /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/crtstuff.c:64:
:info:build /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/tsystem.h:79:19: stdio.h: No such file or directory
:info:build /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/tsystem.h:82:23: sys/types.h: No such file or directory
:info:build /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/tsystem.h:85:19: errno.h: No such file or directory
... more std/libc headers not found follows

I did not try the port gcc6 compiler, for its dependencies are conflict with my work environment, and I have not other host to do this now.

sadly, our private lib use the same library name isl.

comment:6 Changed 7 months ago by mf2k (Frank Schima)

  • Owner stuartwesterman deleted
Note: See TracTickets for help on using tickets.