Where's the Cross-GCC FAQ ?

Dave Nadler Dave.Nadler@nadler.com
Tue Dec 2 23:28:00 GMT 2008


We wait to hear how it worked Yann !
And also a list of what cygwin pieces you needed to install... ;-)
Thanks for your efforts,
Best Regards, Dave

PS: Just to be really clear about what I hope to get:
- build and host environment is cygwin
- target environment is bare-metal small MIPS machine
- target libraries are needed to support any components
   expected by the compiler, including basic memory allocation
   and library routines needed to support C++...


At 04:30 PM 11/30/2008, Yann E. MORIN wrote:
>Dave,
>All,
>
>On Friday 28 November 2008 23:57:28 Yann E. MORIN wrote:
> > On Friday 28 November 2008 20:12:46 Dave Nadler wrote:
> > > From the crosstool-NG I understood that cygwin is not supported,
> > It is not supported. Which does not mean it doesn't work.
>
>OK. I've been intrigued by the possibility to run crosstool-NG under Cygwin.
>So here is what my experiments took me to:
>- installed latest qemu trunk : easy and fast (about a few minutes to build
>   all of qemu!)
>- find back this old WinXP CD that came with my old laptop some years ago:
>   easy but took time, as I since moved three times
>- install WinXP : pff... Got bored after about one hour, came back three
>   hours later and it was running. Sound even works!
>- install Cygwin: easy and fast, except many packages have to be installed
>   on-demand (I remember the old days when everything was installed by
>   default!)
>- svn co crosstool-NG: it builds and installs OK, but it's only Makefiles
>   and shell scripts being copied (as well with some sed).
>
>Where it becomes really tricky is when dealing with actual C compiling and
>building. Whereas the following works under Linux, it fails under Cygwin:
>   gcc -lmylib -o foo bar.o buz.o bla.o
>
>And it needs being written as such to work under Cygwin:
>   gcc -o foo bar.o buz.o bla.o -lmylib
>
>(notice that -lmylib has to be after .o using it?).
>
>Then the kconfig stuff doesn't build out of the box, but that was easily
>fixed by using the latest linux kernel check-lxdialog.sh script.
>
>Now I have a menuconfig that builds and work. Woot! :-)
>
>Now on for an actual build... Borked! Windows file systems are case-
>insensitive, and don't allow two files whose names only differ in the case.
>By default Cygwin does not use the "managed" mount option, which is supposed
>to work around this issue. OK, that got fixed: my /home is now "managed".
>
>The build has now been running for a little less than three hours now, and
>it's only to the point of checking the GMP build... More than one hour to
>extract the gmp + mpfr + binutils + gcc + gdb sources.
>
>That's emulation squared. Sigh...
>
>Hopefully, tomorrow morning when I wakr up, it may have finished. Or not.
>
>But so far, I can only say that (with minor tweaks) crosstool-NG runs under
>Cygwin. For those of you wanting to test (preferably on real hardware rather
>than in an emulator), you can look at the crosstool-NG svn trunk.
>
>Regards,
>Yann E. MORIN.
>
>--
>.-----------------.--------------------.------------------.--------------------.
>|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' 
>conspiracy: |
>| +0/33 662376056 | Software  Designer | \ / 
>CAMPAIGN     |  ___               |
>| --==< ^_^ >==-- `------------.-------:  X  AGAINST      |  \e/  There is 
>no  |
>| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML 
>MAIL    |   v   conspiracy.  |
>`------------------------------^-------^------------------^--------------------'
>
>
>--
>For unsubscribe information see http://sourceware.org/lists.html#faq

Dave Nadler, USA East Coast voice (978) 263-0097,  drn@nadler.com 



--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list