[Bug 873007] Re: python fails to cross-build

Dawid Wróbel me at dawidwrobel.com
Sat Sep 29 20:25:50 UTC 2012


This only happens when cross compiling for 32 bit on 64 bit host system.
There's a good explanation of the issue here:
http://www.spinics.net/lists/selinux/msg03546.html

This basically means that the python-dev packages should be packaged
architecture dependent for multi-arch support. However I am quite sure
the ubuntu python maintainers would have figured this on their own, so I
am curious myself what is the potential fix for this issue.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.7 in Ubuntu.
https://bugs.launchpad.net/bugs/873007

Title:
  python fails to cross-build

Status in “python2.7” package in Ubuntu:
  Confirmed

Bug description:
  Python fails to cross-build, with:

  make[3]: Entering directory `/home/wookey/testing/build/build/xdeb/python2.7/build-static'
  gcc -pthread -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -fprofile-generate -I. -IInclude -I../Include   -DPy_BUILD_CORE -o Modules/python.o ../Modules/python.c
  In file included from ../Include/Python.h:58:0,
                   from ../Modules/python.c:3:
  ../Include/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

  Background:
  The build command is:
  xdeb --only-explicit -a armel --prefer-apt --apt-source --debug --force-rebuild python2.7-minimal

  The actual build command xdeb issues is:
  debuild --no-lintian -eUSER -eCONFIG_SITE=/etc/dpkg-cross/cross-config.armel -eDEB_BUILD_OPTIONS=nocheck -eGTEST_INCLUDEDIR=/usr/arm-linux-gnueabi/include -eGTEST_LIBDIR=/usr/arm-linux-gnueabi/lib -ePKG_CONFIG_LIBDIR=/usr/arm-linux-gnueabi/lib/pkgconfig:/usr/arm-linux-gnueabi/share/pkgconfig:/usr/share/pkgconfig -eDH_VERBOSE=1 -aarmel -b -uc -us -tc

  To easily reproduce the build environment in which this bug was discovered follow the HOWTO here:
  https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/CrossBuildNano

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/873007/+subscriptions




More information about the foundations-bugs mailing list