Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 617946 - dev-python/m2crypto-0.24.0 on x32: /usr/include/openssl/opensslconf.h:10: Error: CPP #error ""abi_x86_64 not supported by the package."".
Summary: dev-python/m2crypto-0.24.0 on x32: /usr/include/openssl/opensslconf.h:10: Err...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
Depends on:
Blocks: x32
  Show dependency tree
Reported: 2017-05-09 08:56 UTC by Dainius Masiliūnas
Modified: 2017-11-22 19:43 UTC (History)
0 users

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

build.log (file_617946.txt,8.96 KB, text/plain)
2017-05-09 08:56 UTC, Dainius Masiliūnas
emerge --info (file_617946.txt,5.42 KB, text/plain)
2017-05-09 08:59 UTC, Dainius Masiliūnas

Note You need to log in before you can comment on or make changes to this bug.
Description Dainius Masiliūnas 2017-05-09 08:56:58 UTC
Created attachment 472056 [details]

When trying to install dev-python/m2crypto-0.24.0 on x32 multilib, configure fails with:

running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -D__x86_64__ -I/usr/include/python2.7 -I/usr/include -I/usr/include/openssl -includeall -modern -builtin -outdir /var/tmp/portage/dev-python/m2crypto-0.24.0/work/M2Crypto-0.24.0-python2_7/lib/M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
/usr/include/openssl/opensslconf.h:10: Error: CPP #error ""abi_x86_64 not supported by the package."". Use the -cpperraswarn option to continue swig processing.
error: command 'swig' failed with exit status 1

This seems to be a multilib bug, since the requested ABI should be x32, not x86_64.

Build log attached.
Comment 1 Dainius Masiliūnas 2017-05-09 08:59:19 UTC
Created attachment 472058 [details]
emerge --info
Comment 2 Dainius Masiliūnas 2017-05-09 10:46:39 UTC
The newer ebuild (0.25.1-r2) fails with the same error. The modified (though older) ebuild in the gx86-staging overlay works:
Comment 3 tt_1 2017-11-22 13:23:09 UTC
This happens on x86 as well, with exactly the same build error about the include from opensslconf.h
Comment 4 Larry the Git Cow gentoo-dev 2017-11-22 16:28:36 UTC
The bug has been closed via the following commit(s):

commit 7e1775ec67ba2e4d390c254b5d5a8074d1cacb4d
Author:     Mike Gilbert <>
AuthorDate: 2017-11-22 16:27:36 +0000
Commit:     Mike Gilbert <>
CommitDate: 2017-11-22 16:28:29 +0000

    dev-python/m2crypto: fix build on x32
    Package-Manager: Portage-2.3.15, Repoman-2.3.6_p7

 dev-python/m2crypto/Manifest               | 10 +++++-----
 dev-python/m2crypto/m2crypto-0.27.0.ebuild |  8 ++++++++
 2 files changed, 13 insertions(+), 5 deletions(-)
Comment 5 Mike Gilbert gentoo-dev 2017-11-22 16:32:29 UTC
(In reply to tt_1 from comment #3)
> This happens on x86 as well, with exactly the same build error about the
> include from opensslconf.h

That's probably a different issue.

I would guess that you are using an x86 chroot, but have not set the Linux personality to i686 using the setarch or linux32 commands.
Comment 6 tt_1 2017-11-22 19:43:00 UTC
Exactly, I already figured this out in the meantime. Thanks for the hint about setarch though.