|
|
|
|
|
|
| Author |
Message |
LinuxNovice *nix forums beginner
Joined: 04 Jun 2005
Posts: 5
|
Posted: Tue Feb 08, 2005 9:02 am Post subject:
Building gcc for powerpc
|
|
|
Hi All,
# As I am building cross toolchain for ppc 8xx CPU.
# The following steps were performed
1. Built binutils
2. Configured the linux kernel (menuconfig)(ofcourse with make clean
etc.)
3. Building gcc (pass 1)
* Step 3 expanded:
i. extracted the code from gcc-2.95.3.tar.gz
ii. Applied libchack solution
iii. ran configure
as:
.../gcc-2.95.3/configure --targrt=powerpc --prefix=/usr
--with-headers=/usr/src/linux/include --enable-languages=c
--disable-threads
4. make
* Here I get errors that says: stdlib.h not found and unistd.h not
found.
# Error file shows the following:
**----------------------------------------------**
.../libiberty/libiberty.a(choose-temp.o): In function
`choose_temp_base':
/usr/cross/builds/powerpc-linux-gcc/libiberty/../../gcc-2.95.3/libiberty/choose-temp.c:138:
the use of `mktemp' is dangerous, better use `mkstemp'
.../libiberty/libiberty.a(choose-temp.o): In function
`choose_temp_base':
/usr/cross/builds/powerpc-linux-gcc/libiberty/../../gcc-2.95.3/libiberty/choose-temp.c:138:
the use of `mktemp' is dangerous, better use `mkstemp'
.../libiberty/libiberty.a(choose-temp.o): In function
`choose_temp_base':
/usr/cross/builds/powerpc-linux-gcc/libiberty/../../gcc-2.95.3/libiberty/choose-temp.c:138:
the use of `mktemp' is dangerous, better use `mkstemp'
.../libiberty/libiberty.a(choose-temp.o): In function
`choose_temp_base':
/usr/cross/builds/powerpc-linux-gcc/libiberty/../../gcc-2.95.3/libiberty/choose-temp.c:138:
the use of `mktemp' is dangerous, better use `mkstemp'
.../../gcc-2.95.3/gcc/libgcc2.c:41: stdlib.h: No such file or directory
.../../gcc-2.95.3/gcc/libgcc2.c:42: unistd.h: No such file or directory
make[3]: *** [libgcc2.a] Error 1
make[2]: *** [stmp-multilib-sub] Error 2
make[1]: *** [stmp-multilib] Error 1
make: *** [all-gcc] Error 2
**--------------------------------------------------------** |
|
| Back to top |
|
 |
Amit Limaye *nix forums beginner
Joined: 17 Mar 2005
Posts: 25
|
Posted: Thu Feb 10, 2005 10:12 pm Post subject:
Re: Building gcc for powerpc
|
|
|
try changing the source path to /usr/include or wherver the glibc
headers are included think tht path you have given is the linux kenel
include files u dont expect to find stdlib.h |
|
| Back to top |
|
 |
Edwin Bland *nix forums beginner
Joined: 19 Feb 2005
Posts: 2
|
Posted: Thu Feb 17, 2005 8:59 pm Post subject:
Re: Building gcc for powerpc
|
|
|
It could be that the configure portion of the build failed.
"--targrt" must be spelled "--target"
You could also try looking at Karim's Yaghmour's site:
http://www.embeddedtux.org & buy the book Building Embedded Linux Systems by
the same author.
Edwin
"LinuxNovice" <vishal.parikh@gmail.com> wrote in message
news:1107856957.208198.325570@c13g2000cwb.googlegroups.com...
| Quote: | Hi All,
# As I am building cross toolchain for ppc 8xx CPU.
# The following steps were performed
1. Built binutils
2. Configured the linux kernel (menuconfig)(ofcourse with make clean
etc.)
3. Building gcc (pass 1)
* Step 3 expanded:
i. extracted the code from gcc-2.95.3.tar.gz
ii. Applied libchack solution
iii. ran configure
as:
../gcc-2.95.3/configure --targrt=powerpc --prefix=/usr
--with-headers=/usr/src/linux/include --enable-languages=c
--disable-threads
4. make
* Here I get errors that says: stdlib.h not found and unistd.h not
found.
# Error file shows the following:
**----------------------------------------------**
../libiberty/libiberty.a(choose-temp.o): In function
`choose_temp_base':
/usr/cross/builds/powerpc-linux-gcc/libiberty/../../gcc-2.95.3/libiberty/choose-temp.c:138:
the use of `mktemp' is dangerous, better use `mkstemp'
../libiberty/libiberty.a(choose-temp.o): In function
`choose_temp_base':
/usr/cross/builds/powerpc-linux-gcc/libiberty/../../gcc-2.95.3/libiberty/choose-temp.c:138:
the use of `mktemp' is dangerous, better use `mkstemp'
../libiberty/libiberty.a(choose-temp.o): In function
`choose_temp_base':
/usr/cross/builds/powerpc-linux-gcc/libiberty/../../gcc-2.95.3/libiberty/choose-temp.c:138:
the use of `mktemp' is dangerous, better use `mkstemp'
../libiberty/libiberty.a(choose-temp.o): In function
`choose_temp_base':
/usr/cross/builds/powerpc-linux-gcc/libiberty/../../gcc-2.95.3/libiberty/choose-temp.c:138:
the use of `mktemp' is dangerous, better use `mkstemp'
../../gcc-2.95.3/gcc/libgcc2.c:41: stdlib.h: No such file or directory
../../gcc-2.95.3/gcc/libgcc2.c:42: unistd.h: No such file or directory
make[3]: *** [libgcc2.a] Error 1
make[2]: *** [stmp-multilib-sub] Error 2
make[1]: *** [stmp-multilib] Error 1
make: *** [all-gcc] Error 2
**--------------------------------------------------------**
|
|
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Jan 09, 2009 8:22 am | All times are GMT
|
|
Guitar Books | Bad Credit Mortgages | Credit Cards | Problem Mortgage | Mortgage
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|