[ELDK] arm-linux-x86 failure
Detlev Zundel
dzu at denx.de
Wed Jul 22 19:00:35 CEST 2009
Hi Kin Cho,
> I'm new to ELDK.
Welcome aboard!
> I loop-mounted arm-2008-11-24.iso and successfully installed with a command
> like this (on a i686 Ubuntu 9.04):
>
> /mnt/loop/install -d /home/kin/eldk/ arm
>
> After installation, my first test is a failure:
>
> /home/kin/eldk/usr/arm-linux/bin/gcc test.c -o test
> test.c:1:19: error: stdio.h: No such file or directory
> test.c: In function 'main':
> test.c:4: warning: incompatible implicit declaration of built-in function
> 'printf'
You should really follow the manual[1] - "qong" is an arm board, so this
DULG is more helpful than the standard canyonlands version.
> test.c is included below. For some reason eldk was not able to find
> /usr/include in /home/kin/eldk. I found stdio.h in the target directory
> and got a bit further:
>
> /home/kin/eldk/usr/arm-linux/bin/gcc -I/home/kin/eldk/arm/usr/include test.c
> /home/kin/eldk/arm/usr/lib/crt1.o -o test
> /home/kin/eldk/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/../../../../arm-linux-gnueabi/bin/ld:
> crt1.o: No such file: No such file or directory
> collect2: ld returned 1 exit status
>
> Something is definitely wrong, and I got the same problem after "rm -rf
> /home/kin/eldk/" and reinstall.
Something is wrong indeed. I have no trouble at all - when using the
correctly setup environment variables:
[dzu at pollux transfer]$ ${CROSS_COMPILE}gcc -o test test.c
[dzu at pollux transfer]$ cat test.c
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("%s\n", argv[0]);
return 0;
}
[dzu at pollux transfer]$ eldk-switch -q
Currently using eldk 4.2 from /opt/eldk-4.2-arm
CROSS_COMPILE=arm-linux-
ARCH=arm
[dzu at pollux transfer]$
> Any ideas?
Try following the manual? ;)
Cheers
Detlev
[1] http://www.denx.de/wiki/view/DULG/ELDKUsage?stickboard=qong
--
You get 3 opportunities to advertise your Rock band, no more.
-- Proposed Symbolics guidelines for mail messages (1984)
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
More information about the eldk
mailing list