Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737468 - sys-libs/pam_wrapper: pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform
Summary: sys-libs/pam_wrapper: pyport.h:699:2: error: #error "LONG_BIT definition appe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
: 759082 (view as bug list)
Depends on:
Blocks: 764554
  Show dependency tree
 
Reported: 2020-08-16 17:14 UTC by Vjaceslavs Klimovs
Modified: 2021-10-20 04:01 UTC (History)
8 users (show)

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


Attachments
full build log (build.log,26.03 KB, text/x-log)
2020-08-16 17:14 UTC, Vjaceslavs Klimovs
Details
emerge --info (emerge_info.txt,5.69 KB, text/plain)
2020-08-16 17:15 UTC, Vjaceslavs Klimovs
Details
emerge info (emerge.info,5.85 KB, text/plain)
2021-07-18 16:48 UTC, Vjaceslavs Klimovs
Details
build log (build.log,26.51 KB, text/x-log)
2021-07-18 16:48 UTC, Vjaceslavs Klimovs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vjaceslavs Klimovs 2020-08-16 17:14:45 UTC
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.
Comment 1 Vjaceslavs Klimovs 2020-08-16 17:15:42 UTC
Created attachment 654988 [details]
emerge --info
Comment 2 Marco Scardovi (scardracs) 2021-06-14 10:26:28 UTC
*** Bug 759082 has been marked as a duplicate of this bug. ***
Comment 3 Marco Scardovi (scardracs) 2021-07-15 13:35:37 UTC
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
Comment 4 Vjaceslavs Klimovs 2021-07-17 16:53:07 UTC
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.
Comment 5 Marco Scardovi (scardracs) 2021-07-17 18:28:43 UTC
Could you please re-post both emerge --info and log for newest emerge?
Comment 6 Vjaceslavs Klimovs 2021-07-18 16:48:19 UTC
Created attachment 724858 [details]
emerge info
Comment 7 Vjaceslavs Klimovs 2021-07-18 16:48:32 UTC
Created attachment 724861 [details]
build log
Comment 8 Vjaceslavs Klimovs 2021-07-18 16:49:12 UTC
Sure, no problem. emerge --info and build log uploaded
Comment 9 Larry the Git Cow gentoo-dev 2021-10-20 04:01:17 UTC
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(-)