Thank you. Now I have trouble with make install instead ;-) I'll post a new thread.
/Klas On Wed, Jul 2, 2008 at 8:29 PM, Martin Habets <[EMAIL PROTECTED]> wrote: > There is a default search path built into your cross compiler. > If memory serves me right there is a '--with-system-header' option to > the gcc configure script, so it could be set to any path. > > Here's what cpp-3.3.info has on the search path: > "GCC looks in several different places for headers. On a normal Unix > system, if you do not instruct it otherwise, it will look for headers > requested with `#include <FILE>' in: > > /usr/local/include > /usr/lib/gcc-lib/TARGET/VERSION/include > /usr/TARGET/include > /usr/include > > For C++ programs, it will also look in `/usr/include/g++-v3', first. > In the above, TARGET is the canonical name of the system GCC was > configured to compile code for; often but not always the same as the > canonical name of the system it runs on. VERSION is the version of GCC > in use." > > Regards, > Martin > > On Wed, Jul 02, 2008 at 02:40:43PM +0200, Klas Lindberg wrote: >> Hi >> >> I'm cross compiling for ARM and I'm wondering how to tell the LTP >> where to find the correct set of system headers. >> >> Right now the build fails like so: >> >> make[5]: Entering directory >> `/home/qliklas/develop/ltp.git/testcases/kernel/syscalls/timerfd' >> arm-none-linux-gnueabi-gcc -Wall -I../../include -g -Wall >> -I../../../../include -Wall >> timerfd01.c -L../../../../lib -lrt -lltp -o timerfd01 >> timerfd01.c: In function 'timerfd_create': >> timerfd01.c:84: error: '__NR_timerfd_create' undeclared (first use in >> this function) >> timerfd01.c:84: error: (Each undeclared identifier is reported only once >> timerfd01.c:84: error: for each function it appears in.) >> timerfd01.c: In function 'timerfd_settime': >> timerfd01.c:90: error: '__NR_timerfd_settime' undeclared (first use in >> this function) >> timerfd01.c: In function 'timerfd_gettime': >> timerfd01.c:95: error: '__NR_timerfd_gettime' undeclared (first use in >> this function) >> timerfd01.c: In function 'main': >> timerfd01.c:124: warning: unused variable 'tfd2' >> make[5]: *** [timerfd01] Error 1 >> make[5]: Leaving directory >> `/home/qliklas/develop/ltp.git/testcases/kernel/syscalls/timerfd' >> >> BR / Klas Lindberg >> >> ------------------------------------------------------------------------- >> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! >> Studies have shown that voting for your favorite open source project, >> along with a healthy diet, reduces your potential for chronic lameness >> and boredom. Vote Now at http://www.sourceforge.net/community/cca08 >> _______________________________________________ >> Ltp-list mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/ltp-list > > -- > Martin > --------------------------------------------------------------------------- > 30 years from now GNU/Linux will be as redundant a term as MERT/UNIX is > today. - Martin Habets > --------------------------------------------------------------------------- > ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
