Skip to contentSkip to conversation

Python.h LONG_BIT definition error on 64 bit build

DISCUSSION Jayen Ashar 1 participant 1 message Nov 3, 2010 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): mailman.2422.1288039798.3514.openembedded-devel@lists.openembedded.org

A message that is not in the archive (sent off-list or not yet received): mailman.2422.1288039798.3514.openembedded-devel@lists.openembedded.or g

#2 lore raw

I'm trying to cross-compile boost and hitting the same error, so I'd also like to see this fixed. I'm not sure that I understand why compiling boost is using headers from python-native, though.

Thanks,
Jayen

Quoted 44 lines

Date: Mon, 25 Oct 2010 13:02:42 -0700
From: Steve Sakoman <[email protected]>
Subject: Re: [oe] Python.h LONG_BIT definition error on 64 bit build machine To: [email protected] Message-ID:
<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Quoted 20 lines · Khem Raj
Quoted 17 lines · Steve Sakoman

I'm working on a recipe for a new version of hplip (it depends on python). ?It builds just fine on my 32 bit Ubuntu development machine,
but when I attempt the build on my 64 bit Ubuntu machines the build
fails with the following error:

In file included from /home/steve/source/sakoman-oe/tmp/sysroots/x86_64-linux/usr/include/py thon2.6/Python.h:58,
? ? ? ? ? ? ? ? from io/mudext/hpmudext.c:27:
/home/steve/source/sakoman-oe/tmp/sysroots/x86_64-linux/usr/include/py thon2.6/pyport.h:685:2:
error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

I seem to recall seeing this error in the distant past.

Quoted 8 lines
Quoted 6 lines

Is this a known issue with python on 64 bit machines?

Any advice?

see this https://bugzilla.redhat.com/show_bug.cgi?id=139911

Is this something that we should try to fix in the OE python build?

Steve

Signature · 6 lines
jayen                                  http://jayen.web.cse.unsw.edu.au/
phd student                               unsw-k17-301-08 (02 9385 5514)
comp1927 tutor                  http://www.cse.unsw.edu.au/~cs1927/10s2/
rUNSWift 2010                        http://robocup.web.cse.unsw.edu.au/
j-club web admin                       http://jclub.web.cse.unsw.edu.au/
cricos provider code: 00098G