Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 216958 - python module in sys-apps/file-4.23 built via distutils fails while cross-compiling
Summary: python module in sys-apps/file-4.23 built via distutils fails while cross-com...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 301578 (view as bug list)
Depends on: 277985
Blocks:
  Show dependency tree
 
Reported: 2008-04-08 21:31 UTC by Markus Ullmann (RETIRED)
Modified: 2015-09-14 07:20 UTC (History)
2 users (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 Markus Ullmann (RETIRED) gentoo-dev 2008-04-08 21:31:25 UTC
armeb-softfloat-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I..  -DMAGIC='"/usr/share/misc/file/magic"'   -Os -march=armv5t -mtune=xscale -pipe -I/home/nslu2/usr/include -D_GNU_SOURCE -MT file.o -MD -MP -MF .deps/file.Tpo -c -o file.o file.c
In file included from file.c:40:
/home/nslu2/usr/include/sys/param.h:58:1: warning: "MIN" redefined
In file included from file.c:32:
file.h:83:1: warning: this is the location of the previous definition
mv -f .deps/file.Tpo .deps/file.Po
/bin/sh ../libtool --tag=CC   --mode=link armeb-softfloat-linux-uclibc-gcc  -Os -march=armv5t -mtune=xscale -pipe -I/home/nslu2/usr/include -D_GNU_SOURCE  -L/home/nslu2/lib -L/home/nslu2/usr/lib -o file file.o libmagic.la -lz
armeb-softfloat-linux-uclibc-gcc -Os -march=armv5t -mtune=xscale -pipe -I/home/nslu2/usr/include -D_GNU_SOURCE -o .libs/file file.o  -L/home/nslu2/lib -L/home/nslu2/usr/lib ./.libs/libmagic.so -lz
creating file
make[2]: Leaving directory `/var/tmp/portage/sys-apps/file-4.23/work/file-4.23/src'
Making all in magic
make[2]: Entering directory `/var/tmp/portage/sys-apps/file-4.23/work/file-4.23/magic'
cat ./Header ./Localstuff > magic
for frag in Magdir/acorn Magdir/adi Magdir/adventure Magdir/allegro Magdir/alliant Magdir/alpha Magdir/amanda Magdir/amigaos Magdir/animation Magdir/apl Magdir/apple Magdir/applix Magdir/archive Magdir/asterix Magdir/att3b Magdir/audio Magdir/basis Magdir/bflt Magdir/blender Magdir/blit Magdir/bout Magdir/bsdi Magdir/btsnoop Magdir/cad Magdir/cafebabe Magdir/c-lang Magdir/c64 Magdir/cddb Magdir/chord Magdir/cisco Magdir/citrus Magdir/claris Magdir/clipper Magdir/cracklib Magdir/spec Magdir/commands Magdir/communications Magdir/compress Magdir/console Magdir/convex Magdir/ctags Magdir/dact Magdir/database Magdir/diamond Magdir/diff Magdir/digital Magdir/dolby Magdir/dump Magdir/editors Magdir/efi Magdir/elf Magdir/encore Magdir/epoc Magdir/esri Magdir/fcs Magdir/filesystems Magdir/flash Magdir/fonts Magdir/fortran Magdir/frame Magdir/freebsd Magdir/fsav Magdir/games Magdir/geos Magdir/gcc Magdir/gimp Magdir/gnu Magdir/grace Magdir/gringotts Magdir/hitachi-sh Magdir/hp Magdir/human68k Magdir/ibm370 Magdir/ibm6000 Magdir/iff Magdir/images Magdir/intel Magdir/interleaf Magdir/island Magdir/ispell Magdir/java Magdir/jpeg Magdir/karma Magdir/lecter Magdir/lex Magdir/lif Magdir/linux Magdir/lisp Magdir/mach Magdir/macintosh Magdir/magic Magdir/mail.news Magdir/maple Magdir/mathematica Magdir/matroska Magdir/mcrypt Magdir/mime Magdir/mips Magdir/mirage Magdir/misctools Magdir/mkid Magdir/mlssa Magdir/mmdf Magdir/modem Magdir/motorola Magdir/msdos Magdir/msvc Magdir/mup Magdir/natinst Magdir/ncr Magdir/netbsd Magdir/netscape Magdir/news Magdir/nitpicker Magdir/ocaml Magdir/octave Magdir/olf Magdir/os2 Magdir/os400 Magdir/os9 Magdir/osf1 Magdir/palm Magdir/parix Magdir/pbm Magdir/pdf Magdir/pdp Magdir/perl Magdir/pgp Magdir/pkgadd Magdir/plan9 Magdir/plus5 Magdir/printer Magdir/project Magdir/psdbms Magdir/psion Magdir/pulsar Magdir/pyramid Magdir/python Magdir/revision Magdir/riff Magdir/rpm Magdir/rtf Magdir/sc Magdir/sccs Magdir/sendmail Magdir/sequent Magdir/sgi Magdir/sgml Magdir/sharc Magdir/sinclair Magdir/sketch Magdir/smalltalk Magdir/sniffer Magdir/dyadic Magdir/scientific Magdir/softquad Magdir/spectrum Magdir/sql Magdir/sun Magdir/sysex Magdir/teapot Magdir/terminfo Magdir/tex Magdir/tgif Magdir/ti-8x Magdir/timezone Magdir/troff Magdir/tuxedo Magdir/typeset Magdir/unknown Magdir/unicode Magdir/uuencode Magdir/varied.out Magdir/varied.script Magdir/vax Magdir/vicar Magdir/virtutech Magdir/visx Magdir/vms Magdir/vmware Magdir/vorbis Magdir/vxl Magdir/wordprocessors Magdir/xdelta Magdir/xenix Magdir/xo65 Magdir/xwindows Magdir/zilog Magdir/zyxel; do \
          if test -f ./$frag; then \
            f=./$frag; \
          else \
            f=$frag; \
          fi; \
          cat $f; \
        done >> magic
file -C -m magic
file -C -m ./magic.mime
make[2]: Leaving directory `/var/tmp/portage/sys-apps/file-4.23/work/file-4.23/magic'
Making all in doc
make[2]: Entering directory `/var/tmp/portage/sys-apps/file-4.23/work/file-4.23/doc'
sed -e s@__CSECTION__@1@g \
            -e s@__FSECTION__@4@g \
            -e s@__VERSION__@4.23@g \
            -e s@__MAGIC__@/usr/share/misc/file/magic@g ./file.man > file.1
sed -e s@__CSECTION__@1@g \
            -e s@__FSECTION__@4@g \
            -e s@__VERSION__@4.23@g \
            -e s@__MAGIC__@/usr/share/misc/file/magic@g ./magic.man > magic.4
sed -e s@__CSECTION__@1@g \
            -e s@__FSECTION__@4@g \
            -e s@__VERSION__@4.23@g \
            -e s@__MAGIC__@/usr/share/misc/file/magic@g ./libmagic.man > libmagic.3
make[2]: Leaving directory `/var/tmp/portage/sys-apps/file-4.23/work/file-4.23/doc'
Making all in python
make[2]: Entering directory `/var/tmp/portage/sys-apps/file-4.23/work/file-4.23/python'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/sys-apps/file-4.23/work/file-4.23/python'
make[2]: Entering directory `/var/tmp/portage/sys-apps/file-4.23/work/file-4.23'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/var/tmp/portage/sys-apps/file-4.23/work/file-4.23'
make[1]: Leaving directory `/var/tmp/portage/sys-apps/file-4.23/work/file-4.23'
running build
running build_ext
building 'magic' extension
creating build
creating build/temp.linux-i686-2.5
i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -Os -march=armv5t -mtune=xscale -pipe -I/home/nslu2/usr/include -D_GNU_SOURCE -fPIC -I./ -I../ -I../src -I/usr/include/ -I/usr/include/python2.5 -c py_magic.c -o build/temp.linux-i686-2.5/py_magic.o
py_magic.c:1: error: bad value (armv5t) for -march= switch
py_magic.c:1: error: bad value (xscale) for -mtune= switch
error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1
 *
 * ERROR: sys-apps/file-4.23 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2928:  Called distutils_src_compile
 *             environment, line  879:  Called die
 * The specific snippet of code:
 *       ${python} setup.py build "$@" || die "compilation failed"
 *  The die message:
 *   compilation failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-apps/file-4.23/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/file-4.23/temp/environment'.
 *


note both 
armeb-softfloat-linux-uclibc-gcc
and
i686-pc-linux-gnu-gcc
have been called here
Comment 1 SpanKY gentoo-dev 2008-04-08 21:45:19 UTC
this is a distutils problem, not file

build file with USE=-python to workaround the issue
Comment 2 Markus Ullmann (RETIRED) gentoo-dev 2008-06-08 17:58:19 UTC
can we add an ewarn to the ebuild and close this?
Comment 3 Sergey Mironov 2009-06-04 15:28:55 UTC
I have this issue during cross-compiling to arm:



running build
running build_ext
running install_lib
copying build/lib.linux-i686-2.5/magic.so -> /usr/arm-module2-linux-gnueabi/tmp/portage/sys-apps/file-4.23/image/usr/lib/python2.5/site-packages
running install_egg_info
Writing /usr/arm-module2-linux-gnueabi/tmp/portage/sys-apps/file-4.23/image/usr/lib/python2.5/site-packages/Magic_file_extensions-0.1-py2.5.egg-info
>>> Completed installing file-4.23 into /usr/arm-module2-linux-gnueabi/tmp/portage/sys-apps/file-4.23/image/


* Wrong EM_TYPE. Expected EM_ARM
EM_386 ./usr/lib/python2.5/site-packages/magic.so


But workaround works..

Comment 4 SpanKY gentoo-dev 2010-01-21 05:45:26 UTC
*** Bug 301578 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2010-01-21 05:45:52 UTC
Bug 277985 indicates this should "work" now ...
Comment 6 Martin Gysel (bearsh) 2010-01-21 08:08:27 UTC
(In reply to comment #5)
> Bug 277985 indicates this should "work" now ...
> 
according to bug 301578 and 'Comment #3 From KostyaSha' (which is quite recent) and also my own experience it is still an issue.
should we reopen 277985?
Comment 7 Ian Delaney (RETIRED) gentoo-dev 2015-09-14 07:20:14 UTC
sys-apps/file-4.23 long since purged from portage