Bug 53583 - gcc 4.6.2 build issue..
Summary: gcc 4.6.2 build issue..
Status: RESOLVED DUPLICATE of bug 42750
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.6.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-05 19:15 UTC by ravish
Modified: 2012-06-06 11:22 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ravish 2012-06-05 19:15:33 UTC
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
Comment 1 Jonathan Wakely 2012-06-05 19:32:11 UTC
"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
Comment 2 Andrew Pinski 2012-06-05 19:44:29 UTC
Dup of bug 42750.  Related to PR 39747

*** This bug has been marked as a duplicate of bug 42750 ***
Comment 3 ravish 2012-06-06 06:31:16 UTC
(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
Comment 4 Jonathan Wakely 2012-06-06 08:03:28 UTC
Did you try the instructions at http://gcc.gnu.org/wiki/InstallingGCC ?
Comment 5 ravish 2012-06-06 08:36:13 UTC
(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
Comment 6 Jonathan Wakely 2012-06-06 08:51:08 UTC
The linked PRs say you need both 32-bit and 64-bit gmp, not only one or the other.
Comment 7 ravish 2012-06-06 11:00:20 UTC
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..
Comment 8 Jonathan Wakely 2012-06-06 11:22:21 UTC
I've already suggested you use the gcc-help mailing list not bugzilla.