ashok wrote:
Hi All,
I wanted to install gcc-3.4 on my ppc-linux m/c. I tried cross
compiling, but cought up with error which i'm not familiar with as i'm
new here.
The following is the error log on make:
---------------------------------------------------------------------------------------------
make[1]: Entering directory `/home/ashok/gcc_build/gcc'
powerpc-wrs-linux-gnu-ppc7400-glibc_cgl-gcc -g -O2 -DIN_GCC -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -DHAVE_CONFIG_H -o cc1 \
c-parse.o c-lang.o c-pretty-print.o stub-objc.o attribs.o
c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o
c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o
cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o
c-dump.o c-pch.o libcpp.a rs6000-c.o main.o libbackend.a
../libiberty/libiberty.a
/opt/WindRiver/gnu/3.4.4-wrlinux-1.3/x86-linux2/bin/../lib/gcc/powerpc-wrs-linux-gnu/3.4.4/../../../../powerpc-wrs-linux-gnu/bin/ld:
crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [cc1] Error 1
make[1]: Leaving directory `/home/ashok/gcc_build/gcc'
make: *** [all-gcc] Error 2
----------------------------------------------------------------------------------------------------------------------------------------------------------
This is how i configured :
[root@crazy gcc_build]# ../gcc-3.4.4/configure --host=ppc-linux
--target=ppc-linux --build=i386-linux
If you want to produce executables like the 'cc1' here, then you MUST
have the C library to link against!
Here one for your 'powerpc-wrs-linux-gnu-ppc7400-glibc_cgl' $target
which would also be the becoming
runtime $host for that 'cc1' ! The 'crt1.o' startup is one part of a
Linux-target glibc...
This is how i set my cross-compiler :
export CC=powerpc-wrs-linux-gnu-ppc7400-glibc_cgl-gcc
Can this 'CC' produce ANY executables, for instance a "Hello World" ?