This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi Michael,
You need to do the following steps.
1. make and install cross binutils (you are doing that alright)
2. Configure gcc with options you have and also add these --with-newlib --with-headers=[newlib-src]/newlib/libc/include
As you can see from my "build" script below, I use the --with-newlib option and the newlib method that places the newlib source in the GCC tree (via symbolic link).
3. make a minimal gcc enough to build newlib (make all-gcc install-gcc)
The thread is a bit confused right now, but I did try building only the C compiler.
4. Build and install newlib
This is done as a part of building GCC with the method that I am using.
5. Go back to your gcc build tree and now build and install complete gcc (make all install)
That should give you a functional toolchain with newlib.
Thanks Khem, mike
Michael N. Moran said the following on 10/30/2006 8:28 AM:[snip]
*My GCC config looks like this:*
ln -s ../../../newlib/1.14.0/newlib-1.14.0/newlib ../gcc-4.0.2/newlib
BINUTILS_PATH=/tools/gnu/gcc/4.0.2/mips-elf/bin
export PATH=$PATH:$BINUTILS_PATH
../gcc-4.0.2/configure \ --target=mips-elf \ --prefix=/tools/gnu/gcc/4.0.2/mips-elf \ --with-newlib \ --disable-newlib-supplied-syscalls \ --enable-languages=c,c++
nice -n 19 make CFLAGS="-O2 -fomit-frame-pointer" 2>&1 | tee make.temp
-- Michael N. Moran (h) 770 516 7918 5009 Old Field Ct. (c) 678 521 5460 Kennesaw, GA, USA 30144 http://mnmoran.org
"So often times it happens, that we live our lives in chains and we never even know we have the key." The Eagles, "Already Gone"
-- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |