ts-7000
[Top] [All Lists]

Re: [ts-7000] gcc lost include dir

To:
Subject: Re: [ts-7000] gcc lost include dir
From: "Gonzalo A. de la Vega" <>
Date: Sat, 24 May 2008 22:44:26 -0300
On Sat, May 24, 2008 at 6:35 PM, j.chitte <> wrote:
>
> --- In  "j.chitte" <> wrote:
>>
>> 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.
>>
>> :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/
>>
>>
>> :src# uname -a
>> Linux arm 2.4.26-ts11 #3 Tue Jun 6 14:13:14 MST 2006 armv4l GNU/
> Linux
>> :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-
> 2.4.26-
>> ts11/
>> 287952 drwxr-xr-x 17 root root 36 Sep 13 2007 linux-2.4.26-ts11/
>>
>>
>> :src# ls /usr/src/linux/include/linux/string.h
>> /usr/src/linux/include/linux/string.h
>>
>>
>> since all the files are still in include/linux something must have
>> lost a link. Can anyone suggest what may have moved?
>>
>> 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.
>
> 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
When linking you must use -L to pass directories where the libraries lie.

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU