Working with Cygwin

Joel Sherrill joel.sherrill at OARcorp.com
Tue Apr 15 13:20:23 UTC 2003



silverio.di at qem.it wrote:
> 
> Hi to all,
> I've installed the last Cygwin tool chain and all run fine !
> I've downloaded all RTEMS tool chain for cygwin from CD working directory !
> I've decompressed all files in root and all files are now on
> /opt/rtems/.......
> I've set the path in cygwin.bat at  :
>   set PATH=%PATH%/opt/rtems/bin;
> so now I can call all my target compilators (386, M68K & SH)
> but when I try to compile this file:
> 
> <test.c>
> int main(void)
> {
>   return 0;
> }
> 
> I obtain the following error:
> 
> $ m68k-rtems-gcc.exe test.c
> /OPT/RTEMS/BIN/../lib/gcc-lib/m68k-rtems/3.2.1/../../../../m68k-rtems/bin/ld:
> 
> cannot find -lc
> collect2: ld returned 1 exit status
> 
> I don't understand what mean and how to solve this.....
> I've missing some other settings, for example some settings to insert in
> bash.rc or in other
> places ?

This works for me.  I just tried i386-rtems. My PATH is set in bash
style of 

export PATH=/opt/rtems/bin:$PATH

Add a -v on the gcc command and look at precisely what is invoked for
ld.
I suspect that /OPT/RTEMS != /opt/rtems/ which is what the tools are
configured for.

> Thank you in advance
> Silverio Diquigiovanni

-- 
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