public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 4.6.2 build issue..
@ 2012-06-06 16:15 Ravish123
  2012-06-06 22:27 ` Jonathan Wakely
  0 siblings, 1 reply; 4+ messages in thread
From: Ravish123 @ 2012-06-06 16:15 UTC (permalink / raw)
  To: gcc-help


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 
mpfr  - 3.1.0
mpc - 0.9

for gcc:-
 
./configure --prefix=/path/ --with-gmp=/path --with-mpfr=/path
--with-mpc=/path




After 2 hrs of gcc building I got below error
mygmp/lib/libgmp.so: could not read symbols: File in wrong format

In some blog I found that gmp should support 32bit and 64bit otherwise, try
by
disabling libjava option in config parameter(in gcc) to continue the gcc
installation.

We need libjava option too and cannot disable it.

for gmp compilation I tried with following option:-

./configure ABI=32 --prefix=/mygmp/path (not working)

even for

./configure ABI=64 --prefix=/mygmp/path (not working)

For your information I check by using --disable-multilib option that
build(compilation) happen smoothly..
But I cannot use disable-multilib option as gcc should generate binary for
32bit and 64bit,

Any solution to build gmp with both 32 and 64 bit?

could you please provide us an alternative fix for this issue..


-- 
View this message in context: http://old.nabble.com/gcc-4.6.2-build-issue..-tp33970982p33970982.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcc 4.6.2 build issue..
  2012-06-06 16:15 gcc 4.6.2 build issue Ravish123
@ 2012-06-06 22:27 ` Jonathan Wakely
  2012-06-07 13:29   ` Ravish123
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Wakely @ 2012-06-06 22:27 UTC (permalink / raw)
  To: Ravish123; +Cc: gcc-help

On 6 June 2012 17:15, Ravish123 wrote:
>
> 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
> mpfr  - 3.1.0
> mpc - 0.9
>
> for gcc:-
>
> ./configure --prefix=/path/ --with-gmp=/path --with-mpfr=/path
> --with-mpc=/path

I've asked you repeatedly if you've followed the instructions at
http://gcc.gnu.org/wiki/InstallingGCC and you claim to have done so,
but your mail shows no evidence of it.

Have you used the download_prerequisites script to build the support
libraries in-tree?

Have you installed the support libraries from RPM?
If you install the 32-bit and 64-bit libraries via RPM then it should
solve your issue, please try that instead of repeating the same
question.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcc 4.6.2 build issue..
  2012-06-06 22:27 ` Jonathan Wakely
@ 2012-06-07 13:29   ` Ravish123
  2012-06-07 14:45     ` Jonathan Wakely
  0 siblings, 1 reply; 4+ messages in thread
From: Ravish123 @ 2012-06-07 13:29 UTC (permalink / raw)
  To: gcc-help



I've asked you repeatedly if you've followed the instructions at
http://gcc.gnu.org/wiki/InstallingGCC and you claim to have done so,
but your mail shows no evidence of it.

Have you used the download_prerequisites script to build the support
libraries in-tree?

> Earlier I tried with download_prerequisites script but no use, because the
> dependencies of gcc, 
> gmp, mpc and mpfr will get download and create a link that's it. script
> will not build/compile gmp, mpc or >mpfr. we need to compile manually at
> that only I got the error libgmp.so wrong file format

Have you installed the support libraries from RPM?

> No I have not tried with RPM files. But I would like to build the
> gcc/gmp/mpc/mpfr packages by doing manual compilation(from source).
> avoiding the use of RPM.
 
If you install the 32-bit and 64-bit libraries via RPM then it should
solve your issue, please try that instead of repeating the same
question.

> Please provide me solution other that RPM.. to solve the above issue.. 

> Many many thanks for reply..






-- 
View this message in context: http://old.nabble.com/gcc-4.6.2-build-issue..-tp33970982p33975698.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcc 4.6.2 build issue..
  2012-06-07 13:29   ` Ravish123
@ 2012-06-07 14:45     ` Jonathan Wakely
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Wakely @ 2012-06-07 14:45 UTC (permalink / raw)
  To: Ravish123; +Cc: gcc-help

On 7 June 2012 14:29, Ravish123 wrote:
>
>
> I've asked you repeatedly if you've followed the instructions at
> http://gcc.gnu.org/wiki/InstallingGCC and you claim to have done so,
> but your mail shows no evidence of it.
>
> Have you used the download_prerequisites script to build the support
> libraries in-tree?
>
>> Earlier I tried with download_prerequisites script but no use, because the
>> dependencies of gcc,
>> gmp, mpc and mpfr will get download and create a link that's it. script
>> will not build/compile gmp, mpc or >mpfr. we need to compile manually at
>> that only I got the error libgmp.so wrong file format

Just read the damn page and look at the damn example.

If those links are present then GCC builds them automatically for you.

If you have those links present then you don't need to build them separately.

It's really not complicated, I wrote that page describing the absolute
minimum needed, and you're refusing to follow the advice.

I won't be trying to help you any further, I have better things to do
than repeat myself to someone who won't listen, good luck.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-07 14:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-06 16:15 gcc 4.6.2 build issue Ravish123
2012-06-06 22:27 ` Jonathan Wakely
2012-06-07 13:29   ` Ravish123
2012-06-07 14:45     ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).