Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285865 - sys-apps/file-5.03 don't compile
Summary: sys-apps/file-5.03 don't compile
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-21 22:07 UTC by Danilo Berardi
Modified: 2009-09-22 14:16 UTC (History)
0 users

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 Danilo Berardi 2009-09-21 22:07:35 UTC
The sys-apps/file-5.03 don't compile when try to link libraries.

The first reported error is : "ld:.libs/magic.o: file format not recognized; treating as linker script"

The crash is present since release 5.0.

Reproducible: Always

Steps to Reproduce:
1.emerge --oneshot -v file
2. 
3.

Actual Results:  
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DMAGIC=\"/usr/share/misc/magic\" -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 -march=athlon-xp -O3 -pipe -fomit-frame-pointer -msse3 -D_GNU_SOURCE -MT strlcat.lo -MD -MP -MF .deps/strlcat.Tpo -c strlcat.c -o strlcat.o >/dev/null 2>&1                                            
mv -f .deps/strlcat.Tpo .deps/strlcat.Plo                                                                                     
/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 -march=athlon-xp -O3 -pipe -fomit-frame-pointer -msse3 -D_GNU_SOURCE -no-undefined -version-info 1:0:0 -Wl,-O1 -o libmagic.la -rpath /usr/lib magic.lo apprentice.lo softmagic.lo ascmagic.lo encoding.lo compress.lo is_tar.lo readelf.lo print.lo fsmagic.lo funcs.lo apptype.lo cdf.lo cdf_time.lo readcdf.lo strlcpy.lo strlcat.lo -lz                                                                                                                      
i686-pc-linux-gnu-gcc -shared  .libs/magic.o .libs/apprentice.o .libs/softmagic.o .libs/ascmagic.o .libs/encoding.o .libs/compress.o .libs/is_tar.o .libs/readelf.o .libs/print.o .libs/fsmagic.o .libs/funcs.o .libs/apptype.o .libs/cdf.o .libs/cdf_time.o .libs/readcdf.o .libs/strlcpy.o .libs/strlcat.o  -lz  -march=athlon-xp -msse3 -Wl,-O1 -Wl,-soname -Wl,libmagic.so.1 -o .libs/libmagic.so.1.0.0                                                                                                             
/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/ld:.libs/magic.o: file format not recognized; treating as linker script                                                                                                              
/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/ld:.libs/magic.o:1: syntax error                       
collect2: ld returned 1 exit status                                                                                           
make[2]: *** [libmagic.la] Error 1                                                                                            
make[2]: Leaving directory `/var/tmp/portage/sys-apps/file-5.03/work/file-5.03/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/file-5.03/work/file-5.03'
make: *** [all] Error 2



tux ~ # emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686)
=================================================================                                    
System uname: Linux-2.6.30-gentoo-r6-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-1.12.11.1
Timestamp of tree: Mon, 21 Sep 2009 18:00:01 +0000                                                            
ccache version 2.4 [enabled]                                                                                  
app-shells/bash:     4.0_p28                                                                                  
dev-java/java-config: 2.1.8-r1                                                                                
dev-lang/python:     2.6.2-r1                                                                                 
dev-python/pycrypto: 2.0.1-r8                                                                                 
dev-util/ccache:     2.4-r7                                                                                   
dev-util/cmake:      2.6.4                                                                                    
sys-apps/baselayout: 1.12.11.1                                                                                
sys-apps/sandbox:    1.6-r2                                                                                   
sys-devel/autoconf:  2.13, 2.63-r1                                                                            
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                              
sys-devel/binutils:  2.18-r3                                                                                  
sys-devel/gcc-config: 1.4.1                                                                                   
sys-devel/libtool:   2.2.6a                                                                                   
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -msse3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT@euro"
LC_ALL="it_IT@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa berkdb bzip2 cdr cli cracklib crypt cups dri dvd fortran gdbm gpm hal iconv ipv6 isdnlog kde modules mudflap ncurses nls nptl nptlonly nsplugin nvidia openmp pam pcre perl pppd python qt3 qt4 readline reflection sdl session spl ssl sysfs tcpd unicode v4l v4l2 x86 xorg xulrunner xvmc 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 mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2009-09-21 22:15:31 UTC
First guess in such incomplete case is a parallel make/ccache problem.
Comment 2 Alex Legler (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2009-09-21 22:17:32 UTC
Retry without -O3 and the see comment above. Reopen if the problem persists.
Comment 3 Danilo Berardi 2009-09-22 14:16:04 UTC
(In reply to comment #1)
> First guess in such incomplete case is a parallel make/ccache problem.
> 

It was a corruption ccache files.

ccache -zcC && emerge -uDNv world

And all works
Thanks.