"Gcc 4.3.0 cross compilation for arm is failing"
Welcome to Linux Questions.
Please always tell which "Linux" ,
"Name" and "version" you are using, when asking a question.
Please also add some info about the distro in your profile
here at LQ.
""--target=arm-linux""...then you will only be told :
..arm-linux-gcc: command not found...... meaning :
You will need a "cross compiler" to build one, i.e.
build the compiler in 2 steps.
the "Gnu Arm homepage" has instructions
for building the "GNU ARM toolchain" : Click on the word "here"
in the 3' line :
The toolchain consists of the GNU binutils, compiler set (GCC) and Insight debugger.
Newlib is used for the C library. The toolchain includes the C and C++ compilers.
Details of the build process appear here
**Take care to have a build directory outside all files...
..binutils-2.17 >> binutils-build, gcc-4.2 >> gcc-build, newlib-1.15 >> newlib-build
e.g. 'cd gcc-build' , 'sh ../gcc-4.2/configure --.
**Prefer to build and install all files in your /home/ on the host,
e.g. build in /home/"user"/tmpxx and install in /home/"user"/arm-yy-toolchain.
( I can see you have no specific --prefix (except /usr/local/ ??))
Your system might "see" some alien files and get damaged, if /usr/local/.
The instructions are for: binutils, gcc, newlib, gdb. I followed that.
(Files shown for download is a little different :
binutils, gcc, newlib, insight-6.6.tar.bz2.)
But now it is your turn, and may be you can make it different ??
Please inform, when you succeed.
I would not use gcc-4.3, released 3 weeks ago ?, too many things will
not yet compile, and some not with 4.2. AFAIK 4.1.1 is a safe choice.
### Bugs : I found only 1, [toolchain-prefix]/bin/
'ln -s arm-elf-gcc arm-elf-cc' when you are asked for missing 'arm-elf-cc'
or some "files not found" .
Generally building a compiler in 2 steps: Also see "Linux From Scratch"
Building for other achitectures than arm, this example :
Good luck with the project !
PS : I used PCLinuxOS2007 as host.,building gcc-4.2 etc.