From: Graham Gower <graham.gower@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [oe-commits] Khem Raj : gcc-configure-sdk: Handle hardcoded /usr/include
Date: Fri, 26 Nov 2010 15:47:45 +1030 [thread overview]
Message-ID: <4CEF42F9.1090501@gmail.com> (raw)
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
reply other threads:[~2010-11-26 5:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CEF42F9.1090501@gmail.com \
--to=graham.gower@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox