sys-apps/file-4.23 fails to cross-compile when building with python USE flag

Bug #337905 reported by Jacob Godserv
2
Affects Status Importance Assigned to Milestone
Gentoo for Pandora
Triaged
Low
Unassigned
Gentoo Linux
Expired
Medium

Bug Description

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-x86_64-2.5
i486-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fomit-frame-pointer -Os -pipe -D_GNU_SOURCE -fPIC -I./ -I../ -I../src -I/usr/include/ -I/usr/include/python2.5 -c -I./ -I../ -I../src -I/usr/include/ -I/usr/include/python2.5 -c py_magic.c -o build/temp.linux-x86_64-2.5/py_magic.o
cc1: error: unrecognized command line option "-mfpu=neon"
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
py_magic.c:1: error: bad value (armv7-a) for -march= switch
py_magic.c:1: error: bad value (cortex-a8) for -mtune= switch
error: command 'i486-pc-linux-gnu-gcc' failed with exit status 1

Workaround is to remove python support from file.

Revision history for this message
In , Jokey (jokey) wrote :
Download full text (6.4 KiB)

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 M...

Read more...

Revision history for this message
In , Mike Frysinger (vapier) wrote :

this is a distutils problem, not file

build file with USE=-python to workaround the issue

Revision history for this message
In , Jokey (jokey) wrote :

can we add an ewarn to the ebuild and close this?

Revision history for this message
Jacob Godserv (fun2program8) wrote :

The workaround works. We're waiting for upstream to fix the error at this point.

Changed in gentoo-arm-pandora:
status: New → Confirmed
Revision history for this message
Jacob Godserv (fun2program8) wrote :

We can't fix this at this point. We'll have to come back to this later.

Changed in gentoo-arm-pandora:
status: Confirmed → Won't Fix
Changed in gentoo-arm-pandora:
importance: Undecided → Low
status: Won't Fix → Triaged
Revision history for this message
In , Ierton (ierton) wrote :

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..

Revision history for this message
In , Mike Frysinger (vapier) wrote :

*** Bug 301578 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mike Frysinger (vapier) wrote :

Bug 277985 indicates this should "work" now ...

Revision history for this message
In , 1-me-h (1-me-h) wrote :

(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?

Changed in gentoo:
status: Invalid → Confirmed
Changed in gentoo:
importance: Unknown → Medium
Revision history for this message
In , Idella4 (idella4) wrote :

sys-apps/file-4.23 long since purged from portage

Changed in gentoo:
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.