[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Configuration bug in GMP 4.1.2

From: Krzysztof Kozminski
Subject: Re: Configuration bug in GMP 4.1.2
Date: Thu, 02 Jan 2003 17:33:28 -0800

Kevin Ryde wrote:
> [...]
> In any case, if you want to use gcc you can ask for it explicitly,
>         ./configure CC=gcc

Yes, this will work; but the real problem is that the effect (failure when
running nm) is so far from the cause (selection of cc over gcc) than it may
waste a lot of time for many people.  Maybe just add a hint to be printed when
this particular test fails, so that the output looks like this:

   /usr/local/gnu/bin/nm: conftest.o: File format not recognized
   configure: error: cannot determine how to define a 32-bit word
   Perhaps using inconsistent compiler(s) and nm?  You may need to
   override C and/or C++ compiler(s) to be consistent with each
   other and nm (either all or none should be 64-bit-capable).

There is another problem.  I added /usr/ccs/bin to my PATH to get a version of
'nm' that understood the 64-bit code.  Now the configuration went OK, but g++
croaked, quite expectedly, when trying to build .libs/libgmpxx.so.3.0.4:

   ./.libs/libgmp.so: file not recognized: File format not recognized
   collect2: ld returned 1 exit status

Now this failure at the very end of the build might be REALLY hard to figure

Perhaps this whole issue should be added to the Known-Build-Problems page
until the configuration script tests the compilers' consistency?
"Divide by cucumber error.  Please reinstall the Universe and reboot."

Attachment: Krzysztof.A.Kozminski.vcf
Description: Card for Krzysztof Kozminski

reply via email to

[Prev in Thread] Current Thread [Next in Thread]