sys-app/file-4.12 fails every time I try to emerge it. Here is the error: make[2]: Leaving directory `/var/tmp/portage/file-4.12/work/file-4.12/src' Making all in magic make[2]: Entering directory `/var/tmp/portage/file-4.12/work/file-4.12/magic' cat ./Header ./Localstuff > magic ../src/file -C -m ./magic.mime 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/bFLT Magdir/blender Magdir/blit Magdir/bout Magdir/bsdi Magdir/cad Magdir/c-lang Magdir/c64 Magdir/cddb Magdir/chi Magdir/chord Magdir/cisco Magdir/citrus Magdir/claris Magdir/clipper 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/elf Magdir/encore Magdir/epoc Magdir/esri Magdir/fcs Magdir/filesystems Magdir/flash Magdir/fonts Magdir/frame Magdir/freebsd Magdir/fsav Magdir/games Magdir/geos Magdir/gcc Magdir/gimp Magdir/gnu Magdir/grace Magdir/gringotts Magdir/hdf 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/natinst Magdir/ncr Magdir/netbsd Magdir/netscape Magdir/news Magdir/nitpicker Magdir/ocaml Magdir/octave Magdir/olf Magdir/os2 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/pulsarMagdir/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/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/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 ../src/file -C -m magic WARNING: type lestring16 >0 Description: %15.15s invalid lt-file: could not find any magic files! make[2]: *** [magic.mgc] Error 255 make[2]: Leaving directory `/var/tmp/portage/file-4.12/work/file-4.12/magic' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/file-4.12/work/file-4.12' make: *** [all] Error 2 !!! ERROR: sys-apps/file-4.12 failed. !!! Function src_compile, Line 47, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message.
Created attachment 45516 [details] emerge info The attachment is my emerge info information.
Please relax off the CFLAGS a little --sync and try again. In the future please just paste the emerge info into the bug vs attaching it.
I changed my CFLAGS to -O2 -march=pentium4 -pipe. The results were still the same.
I'm unable to reproduce this.
I am suffering from the very same behaviour. emerge info output: ----- 8< ----- snip ----- 8< ----- Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r6-new i686) ================================================================= System uname: 2.6.9-gentoo-r6-new i686 Intel(R) Pentium(R) 4 CPU 2.66GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portdir-overlay" USE="X alsa avi bash-completion bdf berkdb bitmap-fonts codecs crypt cups dio divx4linux dvd faac fam flac foomaticdb gdbm gifgpm gtk gtk2 idea imap imlib jabber java jpeg junit kde ldap libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oci8 oggvorbis opengl oracle oss pam pdflib perl png python qt quicktime readline recode samba sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts x86 xine xml2 xmms xprint xv xvid zlib linguas_de" ----- 8< ----- snip ----- 8< ----- emerge -Duvp =file-4.12 output: ----- 8< ----- snip ----- 8< ----- These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] sys-apps/file-4.12 [4.10-r1] -build -debug +python 0 kB Total size of downloads: 0 kB ----- 8< ----- snip ----- 8< ----- I can also add that I have another machine which has compiled this fine. However, the other machine's cpu is a double processor P3, and the machine on which it fails has a P4.
I have also removed all CFLAGS, but to no avail.
I am also suffering from this bug/error. I have a dual p3/1.4gig, it does seem to work fine on my other amd tbird. emerge info: emerge info Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 Intel(R) Pentium(R) III CPU family 1400MHz Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://gentoo.netnitco.net" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib acpi alsa apm arts audiofile avi berkdb bitmap-fonts cdr crypt dga directfb doc emacs encode esd ethereal evo f77 fam fbcon flac foomaticdb fortran gb gd gdbm gif gmp gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick imap imlib java jpeg kde kerberos krb4 lesstif libg++ libwww mad mbox mikmod mmx motif mozilla mpeg mysql ncurses nls nocd oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby samba sdl slang snmp spell sse ssl svga tcltk tcpd tiff truetype usb vhosts wxwindows x86 xml xml2 xmms xv zlib" emerge -Duvp world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild U ] sys-apps/file-4.12 [4.10-r1] -build -debug +python 0 kB OUTPUT: make[2]: Leaving directory `/var/tmp/portage/file-4.12/work/file-4.12/src' Making all in magic make[2]: Entering directory `/var/tmp/portage/file-4.12/work/file-4.12/magic' cat ./Header ./Localstuff > magic ../src/file -C -m ./magic.mime 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/bFLT Magdir/blender Magdir/blit Magdir/bout Magdir/bsdi Magdir/cad Magdir/c-lang Magdir/c64 Magdir/cddb Magdir/chi Magdir/chord Magdir/cisco Magdir/citrus Magdir/claris Magdir/clipper 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/elf Magdir/encore Magdir/epoc Magdir/esri Magdir/fcs Magdir/filesystems Magdir/flash Magdir/fonts Magdir/frame Magdir/freebsd Magdir/fsav Magdir/games Magdir/geos Magdir/gcc Magdir/gimp Magdir/gnu Magdir/grace Magdir/gringotts Magdir/hdf 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/natinst Magdir/ncr Magdir/netbsd Magdir/netscape Magdir/news Magdir/nitpicker Magdir/ocaml Magdir/octave Magdir/olf Magdir/os2 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/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/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 ../src/file -C -m magic WARNING: type lestring16 >0 Description: %15.15s invalid lt-file: could not find any magic files! make[2]: *** [magic.mgc] Error 255 make[2]: Leaving directory `/var/tmp/portage/file-4.12/work/file-4.12/magic' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/file-4.12/work/file-4.12' make: *** [all] Error 2
This is caused by a busted entry in the : file-4.12/magic/Magdir/msdos magic file from the source file file-4.12.tar.gz archive. The busted entry is: >>(64.l) lestring16 >0 Description: %15.15s There is no such type lestring16 (according to man 4 magic) I changed lestring16 to string, and everything compiled fine. I don't see how this could possibly work on any install. Unless there is a different version of file the supports a 'lestring16' type, there is no way that file 4.12 is going to compile. If I am correct, perhaps this should be upgraded to a higher severity, as it blocks an emerge -uDav world
a version of file the supports 'lestring16' must be somewhat common considering ive been able to emerge 4.12 on 8 different architectures and about 12 different machines ;)
I had 4.10-r1 on before this. Perhaps there is something in the configure script that is causing the msdos magic file from being included ?
also, you should read the source code instead of manpages: $ grep -r lestring16 * magic/Magdir/msdos:>>(64.l) lestring16 >0 Description: %15.15s src/apprentice.c: } else if (strncmp(l, "lestring16", NLESTRING16)==0) { src/file.h:/* 19 */ "lestring16",
I believe the culprit is file-4.12-cross-compile.patch, which (A) isn't supposed to be applied unless you are cross compiling, and (B) doesn't look like it does the right thing to begin with. From file-4.12.ebuild: # The build process tries to run the compiled file ... not a good # thing if file was cross compiled ;) tc-is-cross-compiler && epatch ${FILESDIR}/${P}-cross-compile.patch tc-is-cross-compiler does not appear to work as intended on my boxes; the patch gets applied even though I'm not cross compiling (x86 only boxes and gcc). After commenting out the tc-is-cross-compiler line, package will merge for me. This problem will not be reproducible if you have file-4.12 already merged, because the patch causes /usr/bin/file to be run during build instead of the version being built, which won't work unless /usr/bin/file is also version 4.12.
Well, that explains it :)
i highly doubt it's the cross-compile patch considering that patch was added after this bug was filed
which isnt to say that the patch doesnt trigger this bug ... i neglected to return ${ret} in tc-is-cross-compiler() which means the patch would always been applied and trigger this bug in the upgrade path ... i've fixed that in toolchain-funcs.eclass however, the bug still can occur without the patch
on the off chance this is a parallel build issue, could you guys try: env MAKEOPTS=-j1 emerge file
Did as you requested. I don't have the toolchain-funcs.eclass fix, so I did it once with "tc-is-cross-compiler && epatch ${FILESDIR}/${P}-cross-compile.patch" left alone, and once with it commented out. I unmerged file, so there was nothing around to mess with anything. With "tc-is-cross-compiler && epatch ${FILESDIR}/${P}-cross-compile.patch": --snip-- cat $f; \ done >> magic /usr/bin/file -C -m magic make[2]: /usr/bin/file: Command not found make[2]: *** [magic.mgc] Error 127 make[2]: Leaving directory `/var/tmp/portage/file-4.12/work/file-4.12/magic' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/file-4.12/work/file-4.12' make: *** [all] Error 2 --snip-- With the "tc-is-cross-compiler" commented out, it emerged fine. --snip-- done >> magic ../src/file -C -m magic ../src/file -C -m ./magic.mime --snip--
look at the error output in the original comment and in comment #7 they run ../src/file and still get the error in order to reproduce, you need an older file already installed on your system
In order for me to finally build it I had to comment out the patch and unmerge the previous instance of file-4.10-r1. Then it finally installed.
I had the same issue. Performing env MAKEOPTS=-j1 emerge file as suggested in #16 resolved the problem. root@shaqed root # emerge --info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r9 i686) ================================================================= System uname: 2.4.26-gentoo-r9 i686 AMD Athlon(tm) XP 2200+ Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://mirror.nutsmaas.nl/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bitmap-fonts crypt cups encode esd f77 fam foomaticdb fortran gdbm gif gnome gpm gtk gtk2 guile imagemagick imlib java jpeg junit kde ldap libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png postgres python qt quicktime readline sdl spell ssl svga tcltk tcpd tetex tiff truetype x86 xml2 xmms xv zlib"
I have had the same problem here (a single Athlon XP 2000+). Nor MAKEOPTS=-j1 (#16) nor relaxing the CFLAGS (#2) solved this issue. I edited file-4.12/magic/Magdir/msdos as suggested by Richard (#8) and it worked; all the same, when I commented out the cross-compiler patch line on /usr/portage/sys-apps/file/file-4.12.ebuild (#12), compilation went fine as well.
*** Bug 74597 has been marked as a duplicate of this bug. ***
fine, cross-compiling logic has been fixed
*** Bug 74743 has been marked as a duplicate of this bug. ***
I consistantly get this bug on all of my machines which are pre-pentium2 (one pentium-pro 200 and one pentium 133). My symptoms are the same as the others which are listed. I tried eliminating the parallel builds, which some people say worked for them, but I was unsuccessful in my attempt to do that, I still received the same error. After taking out the cross-compile patch, I still receive the same errors on all of the machines. Any recommendations?
I too have seen this bug on several occasions. Currently it showed up on my main development box, a PIII useing /usr/portage/profiles/default-linux/x86/2004.3
Today (2005/02/09) I still have this problem on multiple machines. MAKEOPTS="-j1" makes no difference, as does commenting out the cross-compile patch. The only solution for me was to remove the lestring16 line from the input data. It seems to me that evaluating the lestring16 definiton line works on some machines and not on others - does 'lestring16' perhaps stand for a 'wide' string which might not be available due to USE flag settings in a different package (glibc, whatever)? Wild guess: Looking at the machines where it works (for me) and those where it doesn't, it *might* be that the bug appears when the machine has USE="-nls". All of 'my' affected machines have -nls, at least one where it worked does not (doesn't have nls explicitly set either way, which turns it on here). As this blocks 'emerge world' on the affected machines, I move to reopen this bug, or open another one for the 'lt-file does not work unrelated to cross-compile fix' situation.
Same thing again. Athlon XP. This time commenting out the cross compile had no effect. Editing ./magic/magic for the same lestring16 -> string substitution worked. Note that was "magic" not "msdos". It seems this bug should be reopened.