Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518102 - dev-python/m2crypto fails to build w/ multilib-enabled openssl
Summary: dev-python/m2crypto fails to build w/ multilib-enabled openssl
Status: RESOLVED DUPLICATE of bug 509792
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-25 14:07 UTC by Richard Li
Modified: 2014-07-28 12:06 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Li 2014-07-25 14:07:07 UTC
* python2_7: running distutils-r1_run_phase python_configure_all
swig -python -includeall -I/usr/include -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
/usr/include/openssl/opensslconf.h:41: Error: CPP #error ""No ABI matched, please report a bug to bugs.gentoo.org"". Use the -cpperraswarn option to continue swig processing.
 * ERROR: dev-python/m2crypto-0.22.3-r1::gentoo failed (configure phase):
 *   swig failed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 3499:  Called distutils-r1_src_configure
 *   environment, line 1069:  Called _distutils-r1_run_common_phase 'python_configure_all'
 *   environment, line  246:  Called multibuild_for_best_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_configure_all'
 *   environment, line 2295:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_configure_all'
 *   environment, line 2320:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_configure_all'
 *   environment, line 2318:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_configure_all'
 *   environment, line  671:  Called distutils-r1_run_phase 'python_configure_all'
 *   environment, line 1045:  Called python_configure_all
 *   environment, line 2808:  Called die
 * The specific snippet of code:
 *       "${@}" || die 'swig failed'
 * 
 * If you need support, post the output of `emerge --info '=dev-python/m2crypto-0.22.3-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/m2crypto-0.22.3-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/m2crypto-0.22.3-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/m2crypto-0.22.3-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/m2crypto-0.22.3-r1/work/M2Crypto-0.22.3'
 * S: '/var/tmp/portage/dev-python/m2crypto-0.22.3-r1/work/M2Crypto-0.22.3'



/usr/include/openssl/opensslconf.h is a portage-generated wrapper header, apparently because I have enabled multilib for openssl:


/* This file is auto-generated by multilib-build.eclass
 * as a multilib-friendly wrapper. For the original content,
 * please see the files that are #included below.
 */

#if defined(__x86_64__) /* amd64 */
#	if defined(__ILP32__) /* x32 ABI */
#		error "abi_x86_x32 not supported by the package."
#	else /* 64-bit ABI */
#		include <x86_64-pc-linux-gnu/openssl/opensslconf.h>
#	endif
#elif defined(__i386__) /* plain x86 */
#	include <i686-pc-linux-gnu/openssl/opensslconf.h>
#elif defined(__mips__)
#   if(_MIPS_SIM == _ABIN32) /* n32 */
#       error "abi_mips_n32 not supported by the package."
#   elif(_MIPS_SIM == _ABI64) /* n64 */
#       error "abi_mips_n64 not supported by the package."
#   elif(_MIPS_SIM == _ABIO32) /* o32 */
#       error "abi_mips_o32 not supported by the package."
#   endif
#elif defined(__sparc__)
#	if defined(__arch64__)
#       error "abi_sparc_64 not supported by the package."
#	else
#       error "abi_sparc_32 not supported by the package."
#	endif
#elif defined(__s390__)
#	if defined(__s390x__)
#       error "abi_s390_64 not supported by the package."
#	else
#       error "abi_s390_32 not supported by the package."
#	endif
#elif defined(__powerpc__)
#	if defined(__powerpc64__)
#       error "abi_ppc_64 not supported by the package."
#	else
#       error "abi_ppc_32 not supported by the package."
#	endif
#else
#	error "No ABI matched, please report a bug to bugs.gentoo.org"
#endif



It appears swig doesn't define the required __x86_64__ macro, and ooops..
Comment 1 darkbasic 2014-07-26 17:47:14 UTC
I confirm, same here.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-28 12:06:58 UTC

*** This bug has been marked as a duplicate of bug 509792 ***