Re: lots of "undefined reference" from /bin/ld under Debian

2024-02-23 Thread Vincent Lefevre
On 2024-02-23 17:26:45 +0100, Marc Glisse wrote:
> On Fri, 23 Feb 2024, Vincent Lefevre wrote:
> 
> > On a Debian/unstable x86_64 (amd64) machine, I've configured
> > GMP 18465:7ecb3b2beea1 with
> > 
> >  ./configure --prefix=$HOME/opt/gmp-devel
> > 
> > but "make check" fails with:
> > 
> > /bin/ld: t-bswap.o: in function `main':
> > t-bswap.c:(.text.startup+0x29): undefined reference to `__gmpn_random'
> 
> I only checked Debian testing (I don't see any big pending update that looks
> related) and I don't see that error, make check runs fine.
> 
> When you say 18465:7ecb3b2beea1, I assume you got a mercurial checkout, and
> ran .bootstrap before configure?
> 
> Can you provide the relevant logs?

After various tries, the problem eventually disappeared after a
"make distclean". Perhaps a missing dependency?

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: lots of "undefined reference" from /bin/ld under Debian

2024-02-23 Thread Marc Glisse

On Fri, 23 Feb 2024, Vincent Lefevre wrote:


On a Debian/unstable x86_64 (amd64) machine, I've configured
GMP 18465:7ecb3b2beea1 with

 ./configure --prefix=$HOME/opt/gmp-devel

but "make check" fails with:

/bin/ld: t-bswap.o: in function `main':
t-bswap.c:(.text.startup+0x29): undefined reference to `__gmpn_random'


I only checked Debian testing (I don't see any big pending update that 
looks related) and I don't see that error, make check runs fine.


When you say 18465:7ecb3b2beea1, I assume you got a mercurial checkout, 
and ran .bootstrap before configure?


Can you provide the relevant logs?

--
Marc Glisse
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs