List Info

Thread: Re: gcc lost include dir




Re: gcc lost include dir
country flaguser name
United States
2008-05-25 03:12:03

--- In ts-7000%40yahoogroups.com">ts-7000yahoogroups.com, "Gonzalo A. de la
Vega&quot; <gadelavega...> wrote:
&gt;
> On Sat, May 24, 2008 at 6:35 PM, j.chitte <j.chitte...> wrote:
&gt; >
>; > --- In ts-7000%40yahoogroups.com">ts-7000yahoogroups.com, "j.chitte" <j.chitte> wrote:
&gt; >>
> >> Hi,
> >>
> >> I have been using a ts11 vmlinux kernel on 7250 for about 6 mths
>; >> with few problems. In order to resolve a remaining issue I
grabbed
> >> the lasted ts11 for the board: zImage-7250_2k-ts11
> >>
> >> This boots ok and the board runs but if I boot to my copy of
debian
> >> image via nfs where I develop I can not longer compile anything.
> >>
> >> What worked last time I looked now does not get off the ground.
> >>
> >> rootarm:adc_logger# make adc_logger
> >> gcc -c -O -Wall -g3 -I. -I. adc_logger.c
> >> adc_logger.c:55:19: stdio.h: No such file or directory
> >> adc_logger.c:57:20: string.h: No such file or directory
> >> adc_logger.c:58:19: errno.h: No such file or directory
> >> adc_logger.c:59:19: fcntl.h: No such file or directory
> >> adc_logger.c:60:20: signal.h: No such file or directory
> >> adc_logger.c:61:19: ctype.h: No such file or directory
> >>
> >> unfortunately the server has gone through some housecleaning and
I
>; >> can no longer find the same vmlinux kernel I originally
installed.
> >>
> >> there seems an odd mix of vm* for some boards and zImage* for
7250-
> > 2k
> >> (except for rt kernels) . I guess there's some logic to it but
it's
> >> less than obvious, and not readme in there to explain.
> >>
> >> ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7200-linux/binaries/ts-
> >> kernels/
> >>
> >>
> >> rootarm:src# uname -a
> >> Linux arm 2.4.26-ts11 #3 Tue Jun 6 14:13:14 MST 2006 armv4l GNU/
>; > Linux
&gt; >> rootarm:src# ls -ail /usr/src/
> >> total 4
> >> 256196 drwxr-xr-x 3 root root 4 Aug 20 2007 ./
> >> 254324 drwxr-xr-x 12 root root 13 Apr 25 22:20 ../
> >> 305653 lrwxrwxrwx 1 root root 17 Aug 20 2007 linux -> linux-
&gt; > 2.4.26-
> >> ts11/
&gt; >> 287952 drwxr-xr-x 17 root root 36 Sep 13 2007 linux-2.4.26-ts11/
> >>
> >>
> >> rootarm:src# ls /usr/src/linux/include/linux/string.h
&gt; >> /usr/src/linux/include/linux/string.h
&gt; >>
> >>
> >> since all the files are still in include/linux something must
have
> >> lost a link. Can anyone suggest what may have moved?
&gt; >>
> >> TIA.
>; >>
> >
>; > Well having wasted an entire day trawling google , I'm still no
> > nearer to compiling what worked last time I looked at it .
> >
>; > It seems the compiler is not able to include the basic
directories in
> > the kernel tree any more.
&gt; >
>; > Can anyone tell me how this path is infered?
> >
>; > The kernel boots and the system runs but no way to compile
anything.
> >
>; > :(
>
> Try passing the path to gcc with the -I parameter, e.g. gcc
> -I/usr/src/linux/include/linux/ source.c -o target
&gt; When linking you must use -L to pass directories where the
libraries lie.
>;

Thanks for your help.

I had tried passing the path explicitly but then it hit an error that
it could not find files in asm . So I concluded something must have
fundementally got broken and it should find the cause rather than
messing with bandaid solutions.

Last time I compliled my adc prog I just called make adc_logger , no
one has touched either the source or the Makefile since.

It seems related to the kernel change I put into the board.

Correct me if I'm wrong but I should not need to explicitly add the
kernel include and asm paths with -I , so where do they get picked up?

That should put me on the trail of what is broken.

Thanks again.

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )