I isn't able to compile a simple hello_world with Cygwin (email fixed)

Joel Sherrill joel.sherrill at OARcorp.com
Tue Apr 15 15:05:43 UTC 2003



silverio.di at qem.it wrote:
> 
> Hi,
> I've some problems to compile a very simple hello_world apps
> (not with RTEMS matter yet). This is the steps that I've followed:
> 
> - download of complete Cygwin tool-chain on PC directory
> 
> - installation of Cygwin from directory onto c:\bin\cygwin
> 
> - download of following files from FTP OARCORP (working cd directory):
> 
>     rtems-base-binutils-2.13.2.1-2.tar.bz2
>     rtems-base-gcc-gcc3.2.1newlib1.11.0-2.tar.bz2
>     m68k-rtems-binutils-2.13.2.1-2.tar.bz2
>     m68k-rtems-c++-gcc3.2.1newlib1.11.0-2.tar.bz2
>     m68k-rtems-gcc-gcc3.2.1newlib1.11.0-2.tar.bz2
> 
> - start of cygwin environment
> 
> - copy of all rtems files onto root directory
> 
> - unpack of rtems files between followin command:
> 
>    tar -xjf <rtems_file>
> 
>    in following order:
>    1°)   rtems-base-binutils-2.13.2.1-2.tar.bz2
>    2°) rtems-base-gcc-gcc3.2.1newlib1.11.0-2.tar.bz2
>    3°)  m68k-rtems-binutils-2.13.2.1-2.tar.bz2
>    4°)  m68k-rtems-c++-gcc3.2.1newlib1.11.0-2.tar.bz2
>    5°)  m68k-rtems-gcc-gcc3.2.1newlib1.11.0-2.tar.bz2
> 
>    THANK YOU to:
>     gregory menke
>     Joel Sherrill
>     Corsepius
>     for this tips
> 
> - wrote this in bash session:
> 
>    export  PATH=/opt/rtems/bin:$PATH
> 
> - wrote this in my home, hello_word.c file
> 
>   <hello_word.c>
>   int main(void)
>   {
>       return 0;
>   }
> 
> - launched compilator with:
>   $ m68k-rtems-gcc.exe hello_word.c
>   /opt/rtems/lib/gcc-lib/m68k-rtems/3.2.1/../../../../m68k-rtems/bin/ld:
> warning:cannot find entry symbol _start; defaulting to 80000074
> 
> What I mistake ? Because I can't compile a so simple program ?

That's not a mistake.  The toolset works.  It produces the same type of 
executable that the autoconf checks do.  It linked OK but is not
really executable on target hardware because it has no hardware 
initialize or device drivers.  This level of functionality is used
by autoconf tests to prove that the toolset will produce executables 
and to verify which symbols are in the various libraries.

Proceed to the next step. :)

> Thank you very much

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the users mailing list