Compilation issues for ARM when using arm-elf-gcc on Windows( cygwin )
Sukesh.Acharya@siritech.com
Sukesh.Acharya@siritech.com
Tue May 28 23:14:00 GMT 2002
Thanks!!
But how do I check whether eCOS is built or not?
Steps to build eCOS kernel... I tried the procedure to build the kernel
through configuration tool but it give some error..
Error is given below :-
[If I select BUILD -> LIBRARY option from the eCOS configuration tool (GUI
) on windowsNT]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
*** Process 239 created "make -j1"
make -r -C hal/arm/arch/v1_3_1 headers
make[1]: Entering directory
`/c/WINNT/Profiles/aaaaa/Desktop/Untitled_build/hal/arm/arch/v1_3_1'
makefile:91: //C/PROGRA~1/REDHAT~1/eCos/packages/pkgconf/rules.mak: No such
host or network path
make[1]: stat://C/PROGRA~1/REDHAT~1/eCos/packages/pkgconf/rules.mak: No
such host or network path
make[1]: *** No rule to make target
`//C/PROGRA~1/REDHAT~1/eCos/packages/pkgconf/rules.mak'. Stop.
make[1]: Leaving directory
`/c/WINNT/Profiles/aaaaa/Desktop/Untitled_build/hal/arm/arch/v1_3_1'
make: *** [headers] Error 2
*** Process 239 terminated (rc=2)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
What is the issue?? Please do let me know how to build the kernel and HAL
successfully!!
-Thanks in advance,
Sukesh
"William A.
Gatliff" To: Sukesh.Acharya@siritech.com
<bgat@billgat cc: crossgcc@sources.redhat.com
liff.com> Subject: Re: Compilation issues for ARM when using arm-elf-gcc on
Windows( cygwin )
05/28/02
06:06 PM
Please
respond to
bgat
Did you build a runtime library? If you aren't using eCos, you'll need
that.
See the Crossgcc Wiki:
http://billgatliff.com/twiki/bin/view/Crossgcc/WebHome
or this article, an arm-elf tutorial:
http://billgatliff.com/articles/gnu/gnu-arm7t.html/index.html
b.g.
On Mon, May 27, 2002 at 11:29:46AM +0530, Sukesh.Acharya@siritech.com
wrote:
> Hi,
>
> I am using the cygwin tools and I want to compile C programs on Windows.
> I have followed the instructions given on the redhat site(eCOS) for
> configuring toolchain.
>
> I have configured binutils, gcc and gdb toolchain using cygwin for ARM
> I am not able to compile and link C programs( even hello.c) using
> arm-elf-gcc for ARM using cygwin prompt.
>
> Do I need to install any other package or configure eCOS properly?? Do I
> need to install newlib or glibc ??
>
> Here are the erros that I am getting when I try to compile and link a
> sample hello.c for ARM using arm-elf-gcc
>
> Do help me with this!!
> If I need to configure eCOS please do send me the exact steps and also If
I
> am missing something do let me know!!
>
> Here is the error and source for the sample hello program..
>
>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Source: (hello.c)
> /* this is a simple hello world program */
> #include <stdio.h>
>
> int main(void)
> {
> printf("Hello, eCos world!\n");
> return 0;
> }
>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
> $ arm-elf-gcc hello.c
> hello.c:2:19: stdio.h: No such file or directory
>
>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
> If I comment the stdio,h I get the following linker error!!
>
>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
> $ arm-elf-gcc hello.c
>
/tools/H-i686-pc-cygwin/lib/gcc-lib/arm-elf/3.0.4/../../../../arm-elf/bin/ld:
>
> cannot op
> en crt0.o: No such file or directory
> collect2: ld returned 1 exit status
>
>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Do reply ASAP
>
>
> -Thanks,
> Sukesh
>
>
>
> ------
> Want more information? See the CrossGCC FAQ,
http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to
crossgcc-unsubscribe@sources.redhat.com
>
--
Bill Gatliff
bgat@billgatliff.com
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list