[MacPorts] #53772: gcc47 @4.7.4_7 fails to build on Snow Leopard, Mac OS X 10.6.8, because "file not found: non-weak"

MacPorts noreply at macports.org
Sat Mar 11 12:14:31 UTC 2017


#53772: gcc47 @4.7.4_7 fails to build on Snow Leopard, Mac OS X 10.6.8, because
"file not found: non-weak"
-----------------------+-------------------
 Reporter:  ballapete  |      Owner:
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.4.1
 Keywords:             |       Port:  gcc47
-----------------------+-------------------
 Some configure invocation checked for weak in assembler without success.
 The failure is:

 {{{
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/build/./gcc/xgcc
 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/build/./gcc/
 -B/opt/local/x86_64-apple-darwin10/bin/ -B/opt/local/x86_64-apple-
 darwin10/lib/ -isystem /opt/local/x86_64-apple-darwin10/include -isystem
 /opt/local/x86_64-apple-darwin10/sys-include    -g -pipe -Os -O2  -g -pipe
 -Os -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes
 -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -pipe
 -fno-common -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -pipe
 -fno-common -I. -I. -I../.././gcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/libgcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/libgcc/.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/libgcc/../gcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/libgcc/../include
 -DHAVE_CC_TLS -DUSE_EMUTLS -o emutls.o -MT emutls.o -MD -MP -MF emutls.dep
 -fexceptions -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/libgcc/emutls.c
 -fvisibility=hidden -DHIDE_EXPORTS
 # Early copyback; see "all" above for the rationale.  The
 rm -f libgcc.a
 # early copy is necessary so that the gcc -B options find
 objects="_muldi3.o _negdi2.o _lshrdi3.o _ashldi3.o _ashrdi3.o _cmpdi2.o
 _ucmpdi2.o _clear_cache.o _trampoline.o __main.o _absvsi2.o _absvdi2.o
 _addvsi3.o _addvdi3.o _subvsi3.o _subvdi3.o _mulvsi3.o _mulvdi3.o
 _negvsi2.o _negvdi2.o _ctors.o _ffssi2.o _ffsdi2.o _clz.o _clzsi2.o
 _clzdi2.o _ctzsi2.o _ctzdi2.o _popcount_tab.o _popcountsi2.o
 _popcountdi2.o _paritysi2.o _paritydi2.o _powisf2.o _powidf2.o _powixf2.o
 _powitf2.o _mulsc3.o _muldc3.o _mulxc3.o _multc3.o _divsc3.o _divdc3.o
 _divxc3.o _divtc3.o _bswapsi2.o _bswapdi2.o _clrsbsi2.o _clrsbdi2.o
 _eprintf.o __gcc_bcmp.o _fixunssfsi.o _fixunsdfsi.o _fixunsxfsi.o
 _fixsfdi.o _fixdfdi.o _fixxfdi.o _fixunssfdi.o _fixunsdfdi.o _fixunsxfdi.o
 _floatdisf.o _floatdidf.o _floatdixf.o _floatundisf.o _floatundidf.o
 _floatundixf.o _fixsfti.o _fixdfti.o _fixxfti.o _fixtfti.o _fixunssfti.o
 _fixunsdfti.o _fixunsxfti.o _fixunstfti.o _floattisf.o _floattidf.o
 _floattixf.o _floattitf.o _floatuntisf.o _floatuntidf.o _floatuntixf.o
 _floatuntitf.o _divdi3.o _moddi3.o _udivdi3.o _umoddi3.o _udiv_w_sdiv.o
 _udivmoddi4.o darwin-64.o addtf3.o divtf3.o eqtf2.o getf2.o letf2.o
 multf3.o negtf2.o subtf3.o unordtf2.o fixtfsi.o fixunstfsi.o floatsitf.o
 floatunsitf.o fixtfdi.o fixunstfdi.o floatditf.o floatunditf.o fixtfti.o
 fixunstfti.o floattitf.o floatuntitf.o extendsftf2.o extenddftf2.o
 extendxftf2.o trunctfsf2.o trunctfdf2.o trunctfxf2.o enable-execute-
 stack.o";                                     \
         if test -z "$objects"; then                             \
           echo 'int __libgcc_eh_dummy;' > eh_dummy.c;           \
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/build/./gcc/xgcc
 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/build/./gcc/
 -B/opt/local/x86_64-apple-darwin10/bin/ -B/opt/local/x86_64-apple-
 darwin10/lib/ -isystem /opt/local/x86_64-apple-darwin10/include -isystem
 /opt/local/x86_64-apple-darwin10/sys-include    -g -pipe -Os -O2  -g -pipe
 -Os -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes
 -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -pipe
 -fno-common -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -pipe
 -fno-common -I. -I. -I../.././gcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/libgcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/libgcc/.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/libgcc/../gcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/libgcc/../include
 -DHAVE_CC_TLS -DUSE_EMUTLS -fvisibility=hidden -DHIDE_EXPORTS -c
 eh_dummy.c           \
              -o eh_dummy.o;                             \
           objects=eh_dummy.o;                           \
         fi;                                                     \
         /opt/local/bin/ar  rc libgcc.a $objects
 # the right startup files when linking shared libgcc.
 /bin/sh
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/libgcc/../mkinstalldirs
 ../.././gcc
 parts="crt3.o crttms.o crttme.o crtprec32.o crtprec64.o crtprec80.o
 crtfastmath.o";                                     \
         for file in $parts; do                                  \
           rm -f ../.././gcc/$file;              \
           /usr/bin/install -c -m 644 $file ../.././gcc/;        \
           case $file in                                         \
             *.a)                                                \
               /opt/local/bin/ranlib ../.././gcc/$file ;;        \
           esac;                                                 \
         done
 /opt/local/bin/ranlib: file: libgcc.a(_trampoline.o) has no symbols
 /opt/local/bin/ranlib: file: libgcc.a(_ctors.o) has no symbols
 /opt/local/bin/ranlib: file: libgcc.a(_floatuntisf.o) has no symbols
 /opt/local/bin/ranlib: file: libgcc.a(_floatuntidf.o) has no symbols
 /opt/local/bin/ranlib: file: libgcc.a(_floatuntixf.o) has no symbols
 /opt/local/bin/ranlib: file: libgcc.a(_floatuntitf.o) has no symbols
 /opt/local/bin/ranlib libgcc.a
 /opt/local/bin/ranlib: file: libgcc.a(_trampoline.o) has no symbols
 /opt/local/bin/ranlib: file: libgcc.a(_ctors.o) has no symbols
 /opt/local/bin/ranlib: file: libgcc.a(_floatuntisf.o) has no symbols
 /opt/local/bin/ranlib: file: libgcc.a(_floatuntidf.o) has no symbols
 /opt/local/bin/ranlib: file: libgcc.a(_floatuntixf.o) has no symbols
 /opt/local/bin/ranlib: file: libgcc.a(_floatuntitf.o) has no symbols
 # @multilib_flags@ is still needed because this may use
 #
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/build/./gcc/xgcc
 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/build/./gcc/
 -B/opt/local/x86_64-apple-darwin10/bin/ -B/opt/local/x86_64-apple-
 darwin10/lib/ -isystem /opt/local/x86_64-apple-darwin10/include -isystem
 /opt/local/x86_64-apple-darwin10/sys-include    and -O2  -g -pipe -Os
 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes
 -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -pipe
 -fno-common -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector
 directly.
 # @multilib_dir@ is not really necessary, but sometimes it has
 # more uses than just a directory name.
 /bin/sh
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/libgcc/../mkinstalldirs
 .
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/build/./gcc/xgcc
 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/build/./gcc/
 -B/opt/local/x86_64-apple-darwin10/bin/ -B/opt/local/x86_64-apple-
 darwin10/lib/ -isystem /opt/local/x86_64-apple-darwin10/include -isystem
 /opt/local/x86_64-apple-darwin10/sys-include    -O2  -g -pipe -Os -DIN_GCC
 -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-
 prototypes -Wold-style-definition  -isystem ./include   -pipe -fno-common
 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -dynamiclib
 -nodefaultlibs -install_name /opt/local/lib/gcc47/libgcc_s.1.dylib
 -single_module -o ./libgcc_s.dylib -Wl,-exported_symbols_list,libgcc.map
 -compatibility_version 1 -current_version 1.0 -g -pipe -Os -B./
 _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o
 _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o
 _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o
 _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o
 _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o
 _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o
 _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o
 _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o
 _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o
 _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o
 _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o
 _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o
 _floatundidf_s.o _floatundixf_s.o _fixsfti_s.o _fixdfti_s.o _fixxfti_s.o
 _fixtfti_s.o _fixunssfti_s.o _fixunsdfti_s.o _fixunsxfti_s.o
 _fixunstfti_s.o _floattisf_s.o _floattidf_s.o _floattixf_s.o
 _floattitf_s.o _floatuntisf_s.o _floatuntidf_s.o _floatuntixf_s.o
 _floatuntitf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o
 _udiv_w_sdiv_s.o _udivmoddi4_s.o darwin-64_s.o addtf3_s.o divtf3_s.o
 eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o
 unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o
 fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o
 fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o
 extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o
 trunctfxf2_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-
 darwin_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc
 ld: file not found: non-weak
 collect2: error: ld returned 1 exit status
 make[3]: *** [libgcc_s.dylib] Error 1
 make[3]: *** Waiting for unfinished jobs....
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/libgcc/libgcov.c:
 In function 'gcov_exit':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/gcc-4.7.4/libgcc/libgcov.c:550:16:
 warning: 'f_ix' may be used uninitialized in this function [-Wmaybe-
 uninitialized]
 make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/build/x86_64
 -apple-darwin10/libgcc'
 make[2]: *** [all-stage1-target-libgcc] Error 2
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/build'
 make[1]: *** [stage1-bubble] Error 2
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/build'
 make: *** [bootstrap-lean] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/build'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_gcc47/gcc47/work/build"
 && /usr/bin/make -j8 -w bootstrap-lean
 Exit code: 2
 Error: Failed to build gcc47: command execution failed
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53772>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list