[MacPorts] #53726: libgcc / gcc fails to build against SDK (i.e. without system headers installed)

MacPorts noreply at macports.org
Mon Mar 6 01:27:58 UTC 2017


#53726: libgcc / gcc fails to build against SDK (i.e. without system headers
installed)
----------------------+----------------------
 Reporter:  jeremyhu  |      Owner:  jeremyhu
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:            |       Port:  libgcc
----------------------+----------------------
 libgcc (and gccXY) fail to build on systems that do not contain system
 headers (i.e., installs configured to use a real SDK rather than the
 DevSDK from CLTools).

 The tail of the failure is:

 {{{
 /bin/sh /opt/local/var/macports/build/_Users_jeremy_src_macports_macports-
 ports_lang_gcc6/libgcc/work/gcc-6.3.0/gcc/../move-if-change tmp-macro_list
 macro_list
 echo timestamp > s-macro_list
 rm -rf include-fixed; mkdir include-fixed
 chmod a+rx include-fixed
 if [ -d ../prev-gcc ]; then \
           cd ../prev-gcc && \
           /Applications/Xcode.app/Contents/Developer/usr/bin/make real-
 install-headers-tar DESTDIR=`pwd`/../gcc/ \
             libsubdir=. ; \
         else \
           set -e; for ml in `cat fixinc_list`; do \
             sysroot_headers_suffix=`echo ${ml} | sed -e 's/;.*$//'`; \
             multi_dir=`echo ${ml} | sed -e 's/^[^;]*;//'`; \
             fix_dir=include-fixed${multi_dir}; \
             if ! false && test ! -d `echo /usr/include | sed -e :a -e
 's,[^/]*/\.\.\/,,' -e ta`; then \
               echo The directory that should contain system headers does
 not exist: >&2 ; \
               echo "  `echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,'
 -e ta`" >&2 ; \
               tooldir_sysinc=`echo "/opt/local/lib/libgcc/gcc/x86_64
 -apple-darwin17/6.3.0/../../../../../x86_64-apple-darwin17/sys-include" |
 sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`; \
               if test "x`echo /usr/include | sed -e :a -e
 's,[^/]*/\.\.\/,,' -e ta`" = "x${tooldir_sysinc}"; \
               then sleep 1; else exit 1; fi; \
             fi; \
             /bin/sh /opt/local/var/macports/build
 /_Users_jeremy_src_macports_macports-
 ports_lang_gcc6/libgcc/work/gcc-6.3.0/gcc/../mkinstalldirs ${fix_dir}; \
             chmod a+rx ${fix_dir} || true; \
             (TARGET_MACHINE='x86_64-apple-darwin17'; srcdir=`cd
 /opt/local/var/macports/build/_Users_jeremy_src_macports_macports-
 ports_lang_gcc6/libgcc/work/gcc-6.3.0/gcc; ${PWDCMD-pwd}`; \
               SHELL='/bin/sh'; MACRO_LIST=`${PWDCMD-pwd}`/macro_list ; \
               gcc_dir=`${PWDCMD-pwd}` ; \
               export TARGET_MACHINE srcdir SHELL MACRO_LIST && \
               cd ../build-x86_64-apple-darwin17/fixincludes && \
               /bin/sh ./fixinc.sh "${gcc_dir}/${fix_dir}" \
                 `echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e
 ta`  ); \
             rm -f ${fix_dir}/syslimits.h; \
             if [ -f ${fix_dir}/limits.h ]; then \
               mv ${fix_dir}/limits.h ${fix_dir}/syslimits.h; \
             else \
               cp /opt/local/var/macports/build
 /_Users_jeremy_src_macports_macports-
 ports_lang_gcc6/libgcc/work/gcc-6.3.0/gcc/gsyslimits.h
 ${fix_dir}/syslimits.h; \
             fi; \
             chmod a+r ${fix_dir}/syslimits.h; \
           done; \
         fi
 The directory that should contain system headers does not exist:
   /usr/include
 make[3]: *** [stmp-fixinc] Error 1
 rm gcc.pod
 make[3]: Leaving directory `/opt/local/var/macports/build
 /_Users_jeremy_src_macports_macports-
 ports_lang_gcc6/libgcc/work/build/gcc'
 make[2]: *** [all-stage1-gcc] Error 2
 make[2]: Leaving directory `/opt/local/var/macports/build
 /_Users_jeremy_src_macports_macports-ports_lang_gcc6/libgcc/work/build'
 make[1]: *** [stage1-bubble] Error 2
 make[1]: Leaving directory `/opt/local/var/macports/build
 /_Users_jeremy_src_macports_macports-ports_lang_gcc6/libgcc/work/build'
 make: *** [bootstrap-lean] Error 2
 make: Leaving directory `/opt/local/var/macports/build
 /_Users_jeremy_src_macports_macports-ports_lang_gcc6/libgcc/work/build'
 Command failed:  cd "/opt/local/var/macports/build
 /_Users_jeremy_src_macports_macports-ports_lang_gcc6/libgcc/work/build" &&
 /usr/bin/make -j8 -w bootstrap-lean
 Exit code: 2
 }}}

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


More information about the macports-tickets mailing list