Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79662 - dev-libs/gmp-4.1.4: econf fails due to incorrect "abilist"... patch needed.
Summary: dev-libs/gmp-4.1.4: econf fails due to incorrect "abilist"... patch needed.
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
: 81913 82092 82136 82188 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-26 18:50 UTC by Brendan Rankin
Modified: 2015-04-08 06:59 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New ebuild changes ABI environment variable for this package. (gmp-4.1.4.ebuild,1.62 KB, text/plain)
2005-01-26 19:50 UTC, Brendan Rankin
Details
The one I uploaded was the old (non-functional) one for amd64. (gmp-4.1.4.ebuild,1.65 KB, text/plain)
2005-01-26 21:36 UTC, Brendan Rankin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brendan Rankin 2005-01-26 18:50:36 UTC
In the configure.in for this package, the valid abilist is _incorrectly_ defined as "32 64".  This _should_ be (unless I'm way off base) "amd64 x86" and any other ABIs that should be supported by this package...

Reproducible: Always
Steps to Reproduce:
1.  emerge -v gmp on a multilib amd64 system.
2.
3.

Actual Results:  
It fails with the following message:

checking whether to enable maintainer-specific portions of Makefiles... no
configure: error: ABI=amd64 is not among the following valid choices: 64 32


Expected Results:  
I feel that the string "32 64" is incorrect and should be corrected by the
package maintainer.

The only reason I need this is because I use pycrypto...heavily.
Comment 1 Brendan Rankin 2005-01-26 19:50:36 UTC
Created attachment 49628 [details]
New ebuild changes ABI environment variable for this package.

This ebuild fixes the issue by changing the ABI environment variable from
"amd64" to "64" for building this package properly.
Comment 2 Brendan Rankin 2005-01-26 21:36:34 UTC
Created attachment 49632 [details]
The one I uploaded was the old (non-functional) one for amd64.

Accidentally, uploaded the original version...
Comment 3 Ben XO 2005-02-13 18:51:32 UTC
Similarly, i got:

checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: error: ABI=default is not among the following valid choices: standard 

(dual XEON)

.. worked around by adding ABI="standard" before my emerge line. Is this correct!?
Comment 4 David D. Huff Jr. 2005-02-13 19:20:26 UTC
Had duplicate error as comment #3 on compile 278 on a system rebuild. Added ABI="standard" to top of make.conf as stop-gap solution. Athlon 2600.
Comment 5 Brendan Rankin 2005-02-13 19:40:12 UTC
The patched ebuild, that I submitted, was amd64 specific.  If you wanted it to work for any other arch., you'd have to know what ABI to specify... in the _ebuild_, not in your environment.

Look at the second attachment, above, to see what I mean.  Specifically, in the src_compile() section add the following based upon what arch. and what ABI you're compiling for... NOTE:  There are only two ABIs that gmp supports:  32 or 64.

use <arch> && export ABI="[32|64]";

For x86 arch., this would look like:

use x86 && export ABI="32"

For amd64 arch.:

use amd64 && export ABI="32"

However...in looking at the latest ebuild, all of this ABI stuff should be fixed.  If it isn't, I'd recommend filing a new bug.

Cheers,

- Brendan

Comment 6 David D. Huff Jr. 2005-02-14 21:58:12 UTC
on another note don't put "ABI="standard" in the top of make.conf" it WILL cause your next ncurses emerge to fail
Comment 7 Daniel Black (RETIRED) gentoo-dev 2005-02-15 00:19:24 UTC
*** Bug 81913 has been marked as a duplicate of this bug. ***
Comment 8 Daniel Black (RETIRED) gentoo-dev 2005-02-15 00:29:08 UTC
eradicator - this seems to be related to the patch you added gmp-4.1.4-multilib.patch.

As a stop gap I've added.
if use amd64
                export ABI=64
else
                export ABI=standard
fi

Not sure what should be done for ppc64

Also of note NONE of the patches have been submitted upstream that I know of.

gmp-bugs@swox.com
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-15 01:02:25 UTC
If you set ABI to standard or 64, a TON of stuff will break (including $(get_lindir), so you'll have libs in /usr).  Don't set it unless you know what you're doing.  multilib.eclass sets it to 'deffault' if it's not set.

This bug was fixed with the gmp-4.1.4-multilib.patch to not have the gmp build system use the ABI environment variable... the problem was that it was conditionally applied at a time when ABI was only set in multilib profiles.

The real fix is to unconditionally apply that patch.

Fixed in cvs.
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-15 01:04:47 UTC
Oh and regarding sending the patch upstream... I don't really think that's neccesary as it's really a gentoo-specific problem that we use ${ABI} for our toolchain, and they've decided to use ${ABI} for something else.

Thanks for catching this, btw.
Comment 11 Klaus Mark 2005-02-15 02:38:36 UTC
Hi.

>>Fixed in cvs.
Yes but when does that affect me?

I need the package but I can
Comment 12 Klaus Mark 2005-02-15 02:38:36 UTC
Hi.

>>Fixed in cvs.
Yes but when does that affect me?

I need the package but I cant install it! What should I do?

Comment 13 Daniel Black (RETIRED) gentoo-dev 2005-02-15 03:18:59 UTC
chillout - wait a bit. emerge sync and try again.
Comment 14 Markus Rothe (RETIRED) gentoo-dev 2005-02-15 05:28:44 UTC
stable on ppc64
Comment 15 Daniel Black (RETIRED) gentoo-dev 2005-02-15 05:39:35 UTC
*** Bug 82092 has been marked as a duplicate of this bug. ***
Comment 16 Klaus Mark 2005-02-16 01:33:09 UTC
The Changelog has changed, saying this bug is corrected, but i still get the error.
Comment 17 Andrew Cowie 2005-02-16 04:46:57 UTC
Needs to be reopened.

The files/gmp-4.1.4-multilib.patch is indeed applied, but gmp still fails to build. I had to do

   ABI=standard emerge gmp

To get it to go.

I'm on a bog standard x86 machine (ok, it's SMP, but whatever) so perhaps that case is now being missed out.
Comment 18 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-16 10:12:01 UTC
ah yep, it was only running autoreconf on some archs... resync and it should be fixed soon.
Comment 19 Torsten Veller (RETIRED) gentoo-dev 2005-02-17 01:28:00 UTC
*** Bug 82136 has been marked as a duplicate of this bug. ***
Comment 20 Torsten Veller (RETIRED) gentoo-dev 2005-02-17 01:56:02 UTC
*** Bug 82188 has been marked as a duplicate of this bug. ***