Re: Help building basic cross-compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I've configure GCC with:
> 
> ../gcc-4.4.3/configure --target=sparc-edisoft-rtems --with-gnu-as
> --with-gnu-as --without-newlib --disable-bootstrap --verbose
> --enable-threads --enable-languages="c"
> --prefix=/rtems/mcoutinho/ri/gcc-without-newlib/prefix

I'm far from being an expert, but I suggest you the following things:
- use a different triplet (the form should be sparc-vendor-os)
- also specify the --build and --host arguments
- drop one --with-gnu-as argument (you repeated it twice)
- drop --disable-bootstrap, as it is implicit when building a
  cross-compilator
- put --enable-languages=c instead of --enable-languages="c"
- specify the --with-sysroot argument
- make sure to build binutils before building gcc, and add the path to
  the binutils binaries to your PATH environment variable

For more informations, please have a look at:
- http://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html
- http://gcc.gnu.org/install/configure.html

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux