Hi I am trying to build gcc 4.6.2 from source on rhe5-x86_64 platform. with the following dependencies. gmp - 5.0.4 ------- configure ABI=32 and ABI=64 (both option I tried) mpfr - 3.1.0 mpc - 0.9 ./configure --prefix=/path/ --with-gmp=/path --with-mpfr=/path --with-mpc=/path After 2 hrs I am getting lib/libgmp.so: could not read symbols: File in wrong format In some blog I found that gmp should support 32bit and 64bit otherwise use disable libjava option in config parameter to continue the gcc installation. We need libjava option too and cannot disable it. could you please provide us an alternative fix for this issue.. Regards, Ravish
"I cannot build gcc" is not a bug, please use the gcc-help mailing list for help installing gcc, but first try the procedure described at http://gcc.gnu.org/wiki/InstallingGCC
Dup of bug 42750. Related to PR 39747 *** This bug has been marked as a duplicate of bug 42750 ***
(In reply to comment #2) > Dup of bug 42750. Related to PR 39747 > *** This bug has been marked as a duplicate of bug 42750 *** Hi, In Bug-ID 42750 user was requested for how to build gmp with 32bit and 64bit. I could not find any comment/reply for that and I observed that it is redirected to 39747. So could you please provide more details about gcc build issue (which is mentioned above). Regards, Ravish
Did you try the instructions at http://gcc.gnu.org/wiki/InstallingGCC ?
(In reply to comment #4) > Did you try the instructions at http://gcc.gnu.org/wiki/InstallingGCC ? Yes, Jonathan.. I am suspecting on gmp compilation because if I configure gmp with ABI=32 got same error and for even ABI=64. Where as If I --disable-libjava or disable-multilib option for gcc(configure), building will go smoothly without any issue.. I am struggling with "mypath/gmp/lib/libgmp.so: could not read symbols: File in wrong format" error.. Please provide us a solution to move further? Regards, Ravish
The linked PRs say you need both 32-bit and 64-bit gmp, not only one or the other.
Hi, Yes that is true we need to build gmp which supports 32bit and 64bit.. My problem is that one how to build gmp with supporting both 32bit and 64bit. As per my knowledge the configure option we can pass as either ABI=32 or ABI=64.. How to set for both 32bit and 64bit? Same comment I saw in Bug-ID 42750(no comments for that). Please provide a solution for this issue..
I've already suggested you use the gcc-help mailing list not bugzilla.