www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2017/10/04/13:23:34

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Subject: Re: Undefined reference error in mpfr314b.
To: djgpp AT delorie DOT com
References: <59D2A61D DOT 7070808 AT gmx DOT de>
From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Message-ID: <94a6f09c-cc5c-82c3-742c-97a633bb5cd7@iki.fi>
Date: Wed, 4 Oct 2017 20:23:21 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.3.0
MIME-Version: 1.0
In-Reply-To: <59D2A61D.7070808@gmx.de>
X-MIME-Autoconverted: from Quoted-Printable to 8bit by delorie.com id v94HNOF8012994
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 10/02/2017 11:48 PM, Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com] wrote:
> I have tried to compile an application that uses mpfr and thus needs
> to be linked with mpfr and gmp.  I got the error message below:
>
> C:/DJGPP-2.05/BIN/make.exe  all \
> CC=gcc O=.o CF='-O2 -std=gnu99 -DHAVE_MPFR' \
> LNK=LDJG LF=-s LF2='-lmpfr -lgmp -lm' \
> BIND=BDJG
> make.exe[1]: Entering directory 'f:/gwk/gawk'
> gcc -s -o gawk.exe @gawk.rsp -lmpfr -lgmp -lm
> c:/djgpp-2.05/lib/libmpfr.a(exceptions.o): In function `mpfr_get_emin':
> d:/djdev/mpfr/gnu/mpfr-3.14/src/exceptions.c:41: undefined reference to `___emutls_get_address'
> c:/djgpp-2.05/lib/libmpfr.a(exceptions.o): In function `mpfr_set_emin':
> d:/djdev/mpfr/gnu/mpfr-3.14/src/exceptions.c:51: undefined reference to `___emutls_get_address'
> c:/djgpp-2.05/lib/libmpfr.a(exceptions.o): In function `mpfr_get_emax':
> d:/djdev/mpfr/gnu/mpfr-3.14/src/exceptions.c:77: undefined reference to `___emutls_get_address'
> c:/djgpp-2.05/lib/libmpfr.a(exceptions.o): In function `mpfr_set_emax':
> d:/djdev/mpfr/gnu/mpfr-3.14/src/exceptions.c:87: undefined reference to `___emutls_get_address'
> c:/djgpp-2.05/lib/libmpfr.a(exceptions.o): In function `mpfr_clear_flags':
> d:/djdev/mpfr/gnu/mpfr-3.14/src/exceptions.c:113: undefined reference to `___emutls_get_address'
> c:/djgpp-2.05/lib/libmpfr.a(exceptions.o):d:/djdev/mpfr/gnu/mpfr-3.14/src/exceptions.c:121: more 
> undefined references to `___emutls_get_address' follow
> collect2: ld returned 1 exit status
> make.exe[1]: *** [Makefile:244: gawk.exe] Error 1
> make.exe[1]: Leaving directory 'f:/gwk/gawk'
> make.exe: *** [Makefile:131: djgpp-mpfr] Error 2
>
> I had expected that gmp612b.zip and mpfr314b.zip could be used
> out-of-the-box or am I missing something?

Should be fixed in just uploaded files of MPFR-3.1.6

Perhaps no use to rebuild old versions. I jump moved them away to deleted/v2gnu. So 3.1.6 is only 
remaining version in current/v2gnu

Andris


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019