This is the mail archive of the crossgcc@sources.redhat.com 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, I tried to build a linux->aix3.2 cross compiler The compiler seems to be build successfuly. I tried to compile a simple "Hello world" program using the cross-compiler to check if it works, The result was: Could not load hello. Could not load library libc.a [shr.o]. Error was no such file or directory Could anyone tell me what I did wrong? Or is there something that still needs to be done? Here is how I build the cross-compiler: $ export CROSS-HOME=/usr/src/packages copy binutils-2.9.1.tar.gz, gcc-2.95.2.tar.gz to $CROSS-HOME $ cd $CROSS-HOME $ tar xzvf binutils-2.9.1.tar.gz $ tar xzvf gcc-2.95.2.tar.gz $ export host=i686-pc-linux-gnu $ export target=rs6000-ibm-aix3.2 $ export prefix=/usr $ export i=$prefix/bin $ mkdir build-binutils $ mkdir build-gcc $ cd build-binutils $ ../binutils-2.9.1/configure --target=$target --prefix=$prefix -v \ --program-prefix=aix32- $ make $ make install copy headers and libraries in /usr/${target}/include and /usr/{target}/lib respectively $ cd ../build-gcc $ ../gcc-2.95.2/configure --target=$target --prefix=$prefix -v --enable- languages=c \ --with-headers=/usr/${target}/include \ --with-libs=/usr/${target}/lib \ --with-gnu-as --with-gnu-ld $ make $ make install Thanks, Costinel Mitrea ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |