[Top][All Lists]

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

RE: Installing GMP on cygwin

From: Edward Marti
Subject: RE: Installing GMP on cygwin
Date: Mon, 24 Jun 2002 18:31:14 -0700

I think the problem was that I did a '--host=i386-pc-mingw' so it would be
compatible with most computers. When I took off that tag, it worked fine.
What I'm trying now is to do a '--build=i386-pc-mingw32' (I forgot the '32'
the first time), so it will compile and be compatible. I don't entirely get
why the original one doesn't work, but it seems to.
The problem is, now I have GMP installed on my computer, and it works fine,
but I can't seem to transfer programs to other computers without it
crashing. The mingw32 programs work fine (I tested), but as soon as it
starts calling GMP functions, the program crashes.

Here is a sample source code (encode.cpp), compiled file on my computer
(encode.exe), and the config log (config.log).

My computer is a Intel Pentium 3 (i686), and the computers I tested it on
were two AMD-K6's. Do I need a different configuration for amd chips? If so,
which one? I assumed that i386 should work on everything.

- Thanks, Edward Marti

-----Original Message-----
From: Kevin Ryde [mailto:address@hidden
Sent: Monday, June 24, 2002 4:48 PM
To: Edward Marti
Cc: address@hidden
Subject: Re: Installing GMP on cygwin

"Edward Marti" <address@hidden> writes:
> /bin/sh ../libtool --mode=compile
g++ -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..    -g -O2 -fomit-fr
> ame-pointer -mcpu=pentiumpro -march=i486 -c -o isfuns.lo `test -f
> || echo './'`isfuns.cc
> libtool: compile: unable to infer tagged configuration

Near the top of the generated libtool script there should be

        available_tags=" CXX"

And near the end just under "# ### BEGIN LIBTOOL TAG CONFIG: CXX"
there should be


Which is how it's supposed to know that "g++ ..." means C++.  You can
run that command with "sh -x" to see perhaps where it goes wrong,

        cd cxx
        /bin/sh -x ../libtool --mode=compile
g++ -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -g -O2 -fomit-frame
-pointer -mcpu=pentiumpro -march=i486 -c -o isfuns.lo `test -f isfuns.cc ||
echo './'`isfuns.cc

Actually you don't need the whole big set of options just to see what
libtool is doing, it should be enough to run something like

        /bin/sh -x ../libtool --mode=compile g++ -c -o isfuns.lo isfuns.cc

Attachment: config.log
Description: Binary data

Attachment: encode.cpp
Description: Binary data

Attachment: encode.exe
Description: application/msdownload

reply via email to

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