[Top][All Lists]

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

Re: undefined ___gmpn_xxxx

From: Kevin Ryde
Subject: Re: undefined ___gmpn_xxxx
Date: 20 May 2001 07:56:17 +1000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5

address@hidden writes:
> when i run 'make check' i got a lot of errors of type:
> filename.c: undefined ___gmpn_add_1 invoked from text sement.

Strange that mpn_add_1 should be a problem, it's supposed to be
inlined on gcc.

> there was only ___gmpn_xxx where xxx add_n, mul_, sub_ ...etc.
> and filename of course is here instead of true filenames.

Sounds like the wrong global symbol prefix got chosen for the asm code
by ./configure.  "nm" on mpn/add.o probably shows __gmpn_add_n where
other files expect ___gmpn_add_n.

> I compiled gmp 3.1.1 with gcc 2.95.2 , my machine is
> athlon-pc-openbsd2.7

This is an underscore system I take it.  You can force that in a
completely clean configure with

        ./configure gmp_cv_check_asm_underscore=yes .....

Don't know why GMP_CHECK_ASM_UNDERSCORE hasn't figured that out for
itself though.  No matter, we're already changing it to actually try
linking with or without an underscore, which should be more reliable.

> I compiled gmp 3.1.1 with:
>  'configure --disable-shared --target=athlon-pc-openbsd2.7'

Doesn't ./config.guess already say athlon?

reply via email to

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