[MacPorts] #53702: arm-none-linux-gnueabi-gcc @2005q3-2: fails on Sierra - Undefined symbols for architecture x86_64

MacPorts noreply at macports.org
Tue Mar 7 03:46:56 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):

 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`.

--
Ticket URL: <https://trac.macports.org/ticket/53702#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list