Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236263 - sys-apps/file-4.2[56] emerge fails
Summary: sys-apps/file-4.2[56] emerge fails
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 247081 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-31 12:19 UTC by SPaNKeR
Modified: 2010-01-25 02:49 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 SPaNKeR 2008-08-31 12:19:57 UTC
I've tried to update sys-apps/file-4.25 but emerge compilation crashes. I have found a similar issue in bug #215499 but its file-4.24 version and it seems to fix the problem with the newer version

Reproducible: Always

Steps to Reproduce:
1. emerge sys-apps/file-4.25
2. crash


Actual Results:  
i686-pc-linux-gnu-gcc -shared  .libs/magic.o .libs/apprentice.o .libs/softmagic.o .libs/ascmagic.o .libs/compress.o .libs/is_tar.o .libs/readelf.o .libs/print.o .libs/fsmagic.o .libs/funcs.o .libs/apptype.o  -lz  -march=prescott -Wl,-O1 -Wl,-soname -Wl,libmagic.so.1 -o .libs/libmagic.so.1.0.0
(cd .libs && rm -f libmagic.so.1 && ln -s libmagic.so.1.0.0 libmagic.so.1)
(cd .libs && rm -f libmagic.so && ln -s libmagic.so.1.0.0 libmagic.so)
i686-pc-linux-gnu-ar cru .libs/libmagic.a  magic.o apprentice.o softmagic.o ascmagic.o compress.o is_tar.o readelf.o print.o fsmagic.o funcs.o apptype.o
i686-pc-linux-gnu-ranlib .libs/libmagic.a
creating libmagic.la
(cd .libs && rm -f libmagic.la && ln -s ../libmagic.la libmagic.la)
/bin/sh ../libtool --tag=CC   --mode=link i686-pc-linux-gnu-gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wsign-compare -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -O2 -march=prescott -pipe -D_GNU_SOURCE  -Wl,-O1 -o file file.o libmagic.la -lz 
i686-pc-linux-gnu-gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wsign-compare -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -O2 -march=prescott -pipe -D_GNU_SOURCE -Wl,-O1 -o .libs/file file.o  ./.libs/libmagic.so -lz
creating file
make[2]: se sale del directorio `/var/tmp/portage/sys-apps/file-4.25/work/file-4.25/src'
Making all in magic
make[2]: se ingresa al directorio `/var/tmp/portage/sys-apps/file-4.25/work/file-4.25/magic'
../src/file -C -m ../magic/Magdir
lt-file: No current entry for continuation
make[2]: *** [magic.mgc] Error 255
make[2]: se sale del directorio `/var/tmp/portage/sys-apps/file-4.25/work/file-4.25/magic'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/var/tmp/portage/sys-apps/file-4.25/work/file-4.25'
make: *** [all] Error 2
 * 
 * ERROR: sys-apps/file-4.25 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2936:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed";
 *  The die message:
 *   emake failed


Expected Results:  
A compilation success :)

emerge --info
Portage 2.2_rc8 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26 i686)
=================================================================
System uname: Linux-2.6.26-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-glibc2.0
Timestamp of tree: Sun, 31 Aug 2008 11:30:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa automount bash-completion berkdb bluetooth bonono branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran fuse gbm gdbm gif gnome gpm gstreamer gtk gtkhtml hal iconv injection isdnlog jpeg kde kerberos ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl sensord session spell spl sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype unicode usb vorbis win32codecs x86 xinetd xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard synaptics mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2008-08-31 17:18:45 UTC
Please do `echo LC_MESSAGES=\"C\" >> /etc/env.d/02locale`, run env-update and emerge the ebuild again, to provide the output in English. It's not likely that a developer can read the error messages in your mother tongue.
Comment 2 SPaNKeR 2008-08-31 21:31:23 UTC
OK thanks for the advice:

i686-pc-linux-gnu-gcc -shared  .libs/magic.o .libs/apprentice.o
.libs/softmagic.o .libs/ascmagic.o .libs/compress.o .libs/is_tar.o
.libs/readelf.o .libs/print.o .libs/fsmagic.o .libs/funcs.o .libs/apptype.o 
-lz  -march=prescott -Wl,-O1 -Wl,-soname -Wl,libmagic.so.1 -o
.libs/libmagic.so.1.0.0
(cd .libs && rm -f libmagic.so.1 && ln -s libmagic.so.1.0.0 libmagic.so.1)
(cd .libs && rm -f libmagic.so && ln -s libmagic.so.1.0.0 libmagic.so)
i686-pc-linux-gnu-ar cru .libs/libmagic.a  magic.o apprentice.o softmagic.o
ascmagic.o compress.o is_tar.o readelf.o print.o fsmagic.o funcs.o apptype.o
i686-pc-linux-gnu-ranlib .libs/libmagic.a
creating libmagic.la
(cd .libs && rm -f libmagic.la && ln -s ../libmagic.la libmagic.la)
/bin/sh ../libtool --tag=CC   --mode=link i686-pc-linux-gnu-gcc -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wmissing-declarations
-Wredundant-decls -Wnested-externs -Wsign-compare -Wreturn-type -Wswitch
-Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -O2
-march=prescott -pipe -D_GNU_SOURCE  -Wl,-O1 -o file file.o libmagic.la -lz 
i686-pc-linux-gnu-gcc -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wnested-externs
-Wsign-compare -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings
-Wextra -Wunused-parameter -O2 -march=prescott -pipe -D_GNU_SOURCE -Wl,-O1 -o
.libs/file file.o  ./.libs/libmagic.so -lz
creating file
make[2]: Leaving directory
`/var/tmp/portage/sys-apps/file-4.25/work/file-4.25/src'
Making all in magic
make[2]: Entering directory
`/var/tmp/portage/sys-apps/file-4.25/work/file-4.25/magic'
../src/file -C -m ../magic/Magdir
lt-file: No current entry for continuation
make[2]: *** [magic.mgc] Error 255
make[2]: Leaving directory
`/var/tmp/portage/sys-apps/file-4.25/work/file-4.25/magic'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/sys-apps/file-4.25/work/file-4.25'
make: *** [all] Error 2
 * 
 * ERROR: sys-apps/file-4.25 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2936:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed";
 *  The die message:
 *   emake failed

Comment 3 SPaNKeR 2008-09-17 21:41:55 UTC
file-4.26 released and still same problem. Any idea?
Comment 4 Fabian Groffen gentoo-dev 2008-09-20 11:39:33 UTC
same problem here with 4.26.

../src/file -C -c -m ../magic/Magdir

indicates that the last read entry is

[64 4 string,=prof,"CLIPPER instruction profile"]

which seems to come from magic/Magdir/clipper

I lack the proper knowledge to figure out what's going wrong here.  If I remove clipper it fails at magic/Magdir/bsdi, which feels like something unrelated to the files is wrong.
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2008-11-16 20:34:05 UTC
*** Bug 247081 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2009-02-14 02:45:18 UTC
try with newer gcc and CFLAGS=-O1 ...

if that fails, try file-5.00-r1 ...