This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

building a cross compiling gcc



Hi,
 I want to build a cross compiler which
 runs on intel.. Red Hat Linux 6.2 and
 builds code that runs on powerpc Red Hat Linux 6.2.

I build gcc (2.95.3) with:
./configure --target=powerpc-linux --enable-shared  --enable-languages=c
--with-newlib
 make
make install

Then i built the new glibc (2.2.5)
./configure --host=powerpc-linux --enable-add-ons
--with-headers=/usr/local/powerpc-linux/include --prefix=
 make
 make install_root=/usr/local/powerpc-linux install


 After i built the cross compiler and the new Glibc, i am not able to compile
and link any
 c program with this cross compiler.
 The gcc gives following error:

[root@iee_pbsc_a1 try]# powerpc-linux-gcc a.c
/lib/libc.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

 How to make the gcc to read /usr/local/powerpc-linux/lib/libc.so.6 ?

Thanks very much,
Regards,
samant

DISCLAIMER: This message is proprietary to Hughes Software Systems
Limited (HSS) and is intended solely for the use of the individual
to whom it is addressed. It may contain  privileged or confidential
information  and should not be circulated or used for any purpose other
than for what it is intended. If you have received this message in error,
please notify the originator immediately. If you are not the intended
recipient, you are notified that you are strictly prohibited from using,
copying, altering, or disclosing the contents of this message. HSS accepts
no responsibility for loss or damage arising from the use of the information
transmitted by this email including damage from virus.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]