[oe] [oe-commits] Khem Raj : gcc-configure-sdk: Handle hardcoded /usr/include

Graham Gower graham.gower at gmail.com
Fri Nov 26 05:17:45 UTC 2010


Commit 2e8e46955f15f54c78c91f1880a1bc776ac7fef9 doesn't seem to be enough
for me to getting a gcc-cross-sdk to build.


	    if ! false && test ! -d `echo /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc${sysroot_headers_suffix}/usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`; then \
	      echo The directory that should contain system headers does not exist: >&2 ; \
	      echo "  `echo /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc${sysroot_headers_suffix}/usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`" >&2 ; \
	      tooldir_sysinc=`echo "/usr/local/micro-uclibc/mipsel/lib/gcc/mipsel-oe-linux-uclibc/4.5.2/../../../../mipsel-oe-linux-uclibc/sys-include" | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`; \
	      if test "x`echo /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc${sysroot_headers_suffix}/usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`" = "x${tooldir_sysinc}"; \
	      then sleep 1; else exit 1; fi; \
	    fi; \
	    /bin/sh /mnt/oe/tmp/work/x86_64-mipsel-sdk-oe-linux-uclibc/gcc-cross-sdk-4.5-r19.1+svnr166342/gcc-4.5/gcc/../mkinstalldirs ${fix_dir}; \
	    chmod a+rx ${fix_dir} || true; \
	    (TARGET_MACHINE='mipsel-oe-linux-uclibc'; srcdir=`cd /mnt/oe/tmp/work/x86_64-mipsel-sdk-oe-linux-uclibc/gcc-cross-sdk-4.5-r19.1+svnr166342/gcc-4.5/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-linux/fixincludes && \
	      /bin/sh ./fixinc.sh "${gcc_dir}/${fix_dir}" \
	        `echo /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc${sysroot_headers_suffix}/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 /mnt/oe/tmp/work/x86_64-mipsel-sdk-oe-linux-uclibc/gcc-cross-sdk-4.5-r19.1+svnr166342/gcc-4.5/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:
  /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/usr/include
make[2]: *** [stmp-fixinc] Error 1





It looks like NATIVE_SYSTEM_HEADER_DIR is not being set in gcc-configure-common.inc
(looking in gcc/Makefile I see NATIVE_SYSTEM_HEADER_DIR = /usr/include)

Sorry, I'm not familiar enough with gcc buildy bits to propose the correct fix.

-Graham




More information about the Openembedded-devel mailing list