Error No Include Path In Which To Search For Limits.h
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Cannot find include for limits.h when building a GCC Cross-Compiler up vote 1 down vote favorite I want to build a cross-compiler with host type Linux x86_64 and --target=sparc-sun-solaris2.10. I have successfully built binutils with --target flag along with GMP, MPFR and MPC. I have configured Binutils and GCC to use --with-build-sysroot=$SYSROOT flag and recursively copyied over /usr/include /lib /usr/lib from target host to it so that my $SYSROOT directory contains usr and lib. I also set PATH and LD_LIBRARY_PATH to my prefix before I build GCC. But when I try to build GCC it fails trying to build libgcc (second stage I believe) with error: gcc/include-fixed/limits.h:169:61: error: no include path in which to search for limits.h I have verified that limits.h does exist in $SYSROOT/usr/include so why doesn't GCC use it? Please help on this. It will save our big company lots of man hours on if I can get cross-compilation of our code to work on x86_64. The performance is lightning fast on x86_64 compared to SPARC and compilation wait times is a big bottleneck for our productivity. gcc cross-compiling x86-64 include-path sparc share|improve this question edited Feb 22 '13 at 14:54 asked Feb 22 '13 at 14:49 Nordlöw 4,59633272 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote You may be running into a case of your sysroot value getting set incorrectly. You should probably try building with verbose options... as it would probably reveal that. share|improve this answer answered Mar 6 '13 at 15:21 cb88 286114 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged gcc cross-compiling x86-64 include-path sparc or ask your own question. asked 3 years ago viewed 3266 times act
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
with fixincludes (?) and `limits.h' From: Thomas Schwinge
Sign in Pricing Blog Support Search GitHub This repository Watch 50 Star 327 Fork 147 crosstool-ng/crosstool-ng Code Issues 38 Pull requests 22 Projects 0 Pulse Graphs New issue sysroot/usr/include/limits.h:125:26: error: no include path in which to search for limits.h #47 Closed nephaste opened this Issue Feb 14, 2015 · 7 comments Projects None yet Labels wontfix Milestone No milestone Assignees bhundven 2 participants nephaste commented Feb 14, 2015 Hi Thanks for your help on the issue I am building a ToolChain for Qnap on a debian 6, i used the last ctng from git. some month ago i successfully built on a Debian 7, using same config, i have error (glibc 2.6.1 + gcc 4.3.6) [INFO ] ================================================================= [INFO ] Installing kernel headers [EXTRA] Installing kernel headers [EXTRA] Checking installed headers [INFO ] Installing kernel headers: done in 8.79s (at 05:23) [INFO ] ================================================================= [INFO ] Installing C library headers & start files [EXTRA] Configuring C library [EXTRA] Installing C library headers [EXTRA] Installing C library start files [ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search fo r limits.h [ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search fo r limits.h [ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search fo r limits.h [ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search fo r limits.h [ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search fo r limits.h [ERROR] /data/x-tools/i686-Qnap-linux-gnu/i686-Qnap-linux-gnu/sysroot/usr/include/limits.h:125:26: error: no include path in which to search fo r limits.h [ERROR] make[3]: *** [/CROSS/crosstool-ng/.build/i686-Qnap-linux-gnu/build/build-libc-startfiles/csu/init-first.o] Error 1 [ERROR] libc-tls.c:36: error: expected '=', ',', ';', 'asm' or 'attribute' before 'static_dtv' [ERROR] libc-tls.c💯 error: 'TLS_TCB_ALIGN' undeclare