* A problem on building GCC
@ 2012-10-10 0:32 m9802119
2012-10-10 8:24 ` Jonathan Wakely
0 siblings, 1 reply; 2+ messages in thread
From: m9802119 @ 2012-10-10 0:32 UTC (permalink / raw)
To: gcc-help
hello:
I tried to build tic6x cross compiler in recent days, but always fail.
this is my building step:
cd build-binutils/
../binutils-2.22/configure --prefix=/usr/local/c6x/ --target=tic6x-elf
make all
make install
cd ..
cd build-gmp/
export PATH=$PATH:/usr/local/c6x
export PATH=$PATH:/usr/local/c6x/bin
../gmp/configure --prefix=/usr/local/c6x/gmp
../gmp/configure --prefix=/usr/local/c6x/gmp
make
make install
cd ..
cd build-mpfr/
../mpfr/configure --prefix=/usr/local/c6x/mpfr --with-gmp=/usr/local/c6x/gmp
make
make install
cd ..
cd build-mpc
../mpc/configure --prefix=/usr/local/c6x/mpc --with-gmp=/usr/local/c6x/gmp --with-mpfr=/usr/local/c6x/mpfr --enable-static --disable-shared
make
make install
cd ..
cd build-gcc
../gcc-4.7.2/configure --target=tic6x-elf --prefix=/usr/local/c6x --enable-languages="c,c++" --with-newlib --with-header=../newlib-1.20.0/newlib/libc/include --with-gmp=/usr/local/c6x/gmp --with-mpfr=/usr/local/c6x/mpfr --with- mpc=/usr/local/c6x/mpc
make all-gcc
make install-gcc
cd ..
cd build-newlib/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH}:/usr/local/c6x/gmp:/usr/local/c6x/mpfr/lib:/usr/local/c6x/mpc/lib
ln -s /usr/local/c6x/bin/tic6x-elf-gcc /usr/local/c6x/bin/tic6x-elf-cc
../newlib-1.20.0/configure --target=tic6x-elf --prefix=/usr/local/c6x/
make all install
cd ..
cd build-gcc
make all install
after these step I build cross compiler successful, but wen I compile .c file the error occur:
$ tic6x-elf-gcc helloworld.c
helloworld.c:1:16: error:stdio:No such file or directory
why ?
I build ARM cross compiler is no problem by following these step.
Thanks
Best Regards,
W.J. Wang
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: A problem on building GCC
2012-10-10 0:32 A problem on building GCC m9802119
@ 2012-10-10 8:24 ` Jonathan Wakely
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2012-10-10 8:24 UTC (permalink / raw)
To: m9802119; +Cc: gcc-help
On 10 October 2012 01:32, m9802119 wrote:
>
> after these step I build cross compiler successful, but wen I compile .c file the error occur:
> $ tic6x-elf-gcc helloworld.c
> helloworld.c:1:16: error:stdio:No such file or directory
>
> why ?
There's no header called <stdio>, try <stdio.h>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-10 8:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-10 0:32 A problem on building GCC m9802119
2012-10-10 8:24 ` Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).