Created attachment 654986 [details] full build log On x86_64 multilib system sys-libs/pam_wrapper-1.1.3 fails with: In file included from /usr/include/python3.7m/Python.h:63, from /var/tmp/portage/sys-libs/pam_wrapper-1.1.3/work/pam_wrapper-1.1.3/src/python/pypamtest.c:21: /usr/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." 699 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." | ^~~~~ when building for abi_x86_32.x86 ABI.
Created attachment 654988 [details] emerge --info
*** Bug 759082 has been marked as a duplicate of this bug. ***
Does this bug still happens with python3_{9,10}? Also I have a, probably obvious, question: did you compile python/gcc/glibc/etc for abi_x86_32.x86 too? I'm on multilib and can't reproduce that error
Just tried with 3.9 (current system default) and it still reproduces: In file included from /usr/include/python3.9/Python.h:63, from /var/tmp/portage/sys-libs/pam_wrapper-1.1.3/work/pam_wrapper-1.1.3/src/python/pypamtest.c:21: /usr/include/python3.9/pyport.h:741:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." 741 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." | ^~~~~ It's a fully multilib machine (and always was) so I am assuming everything (python/gcc/glibc/etc.) is compiled for multilib.
Could you please re-post both emerge --info and log for newest emerge?
Created attachment 724858 [details] emerge info
Created attachment 724861 [details] build log
Sure, no problem. emerge --info and build log uploaded
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed283b6255f2113865198fec01820b79b73708e3 commit ed283b6255f2113865198fec01820b79b73708e3 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-10-20 04:00:40 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-10-20 04:00:40 +0000 sys-libs/pam_wrapper: fix compile for multilib We don't want to try build Python bindings for the multilib ABI (it's pointless, it's only used for tests in other packages anyway). Closes: https://bugs.gentoo.org/737468 Signed-off-by: Sam James <sam@gentoo.org> ...1.1.3-r1.ebuild => pam_wrapper-1.1.3-r2.ebuild} | 46 ++++++++++++++++------ 1 file changed, 34 insertions(+), 12 deletions(-)