Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302922 - dev-libs/boost-1.41.0-r3 failed to build, asinhl.o file not recognized: File truncated
Summary: dev-libs/boost-1.41.0-r3 failed to build, asinhl.o file not recognized: File ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-30 23:58 UTC by Claudio Roberto França Pereira
Modified: 2010-01-31 18:18 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 Claudio Roberto França Pereira 2010-01-30 23:58:29 UTC
gcc.link.dll bin.v2/libs/math/build/gcc-4.4/gentoorelease/libboost_math_c99l-1_41.so.1.41.0

    "i686-pc-linux-gnu-g++"    -o "bin.v2/libs/math/build/gcc-4.4/gentoorelease/libboost_math_c99l-1_41.so.1.41.0" -Wl,-h -Wl,libboost_math_c99l-1_41.so.1.41.0 -shared -Wl,--start-group "bin.v2/libs/math/build/gcc-4.4/gentoorelease/acoshl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/asinhl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/atanhl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/cbrtl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/copysignl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/erfcl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/erfl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/expm1l.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/fmaxl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/fminl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/fpclassifyl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/hypotl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/lgammal.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/llroundl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/log1pl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/lroundl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/nextafterl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/nexttowardl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/roundl.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/tgammal.o" "bin.v2/libs/math/build/gcc-4.4/gentoorelease/truncl.o"  -Wl,-Bstatic  -Wl,-Bdynamic  -Wl,--end-group -Wl,-O1

bin.v2/libs/math/build/gcc-4.4/gentoorelease/asinhl.o: file not recognized: File truncated
collect2: ld returned 1 exit status
...skipped <pstage/lib>libboost_math_c99l-1_41.so.1.41.0 for lack of <pbin.v2/libs/math/build/gcc-4.4/gentoorelease>libboost_math_c99l-1_41.so.1.41.0...
gcc.compile.c++ bin.v2/libs/math/build/gcc-4.4/gentoorelease/link-static/assoc_laguerrel.o

    "i686-pc-linux-gnu-g++"  -ftemplate-depth-128 -O2 -march=pentium-m -pipe -fomit-frame-pointer -fno-strict-aliasing -finline-functions -Wno-inline -Wall -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DNDEBUG -I"bin.v2/libs/math/build/gcc-4.4/gentoorelease/link-static/../src/tr1" -I"." -I"libs/math/src/tr1" -c -o "bin.v2/libs/math/build/gcc-4.4/gentoorelease/link-static/assoc_laguerrel.o" "libs/math/build/../src/tr1/assoc_laguerrel.cpp"

...failed updating 1 target...
 * ERROR: dev-libs/boost-1.41.0-r3 failed:
 *   building boost failed
 *
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 4043:  Called die
 * The specific snippet of code:
 *       ${BJAM} ${NUMJOBS} -q -d+2 gentoorelease ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared || die "building boost failed";
 *
 * If you need support, post the output of 'emerge --info =dev-libs/boost-1.41.0-r3',
 * the complete build log and the output of 'emerge -pqv =dev-libs/boost-1.41.0-r3'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/boost-1.41.0-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/boost-1.41.0-r3/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/boost-1.41.0-r3/work/boost_1_41_0'

Reproducible: Always

Steps to Reproduce:
1.emerge boost




# emerge --info
Portage 2.1.7.17 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r2 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r2-i686-Intel-R-_Pentium-R-_M_processor_1.70GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 30 Jan 2010 23:30:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/ http://gentoo.mirrors.hoobly.com/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US pt pt_BR"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion berkdb bluetooth branding bsf bzip2 cairo cdr cli consolekit cracklib crypt cups curl cxx dbus dri dts dvd dvdr eds emboss encode evo expat fam fftw firefox flac fortran gdbm gif gmp gpm gstreamer gtk hal iconv icu idn java javascript jpeg kde libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel_hda" 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US pt pt_BR" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


# gcc-config -l
 [1] i686-pc-linux-gnu-4.4.2 *

# eselect python list
Available Python interpreters:
  [1]   python2.6 *
  [2]   python3.1
Comment 1 Rafał Mużyło 2010-01-31 02:20:44 UTC
Well, either it's parallel make/ccache or
you're running out of space during build.
Comment 2 Claudio Roberto França Pereira 2010-01-31 04:00:52 UTC
Probably not a space issue:
# df -h
Filesystem            Size  Used Avail Use% Mounted on
rootfs                 19G  9,1G  8,9G  51% /
/dev/root              19G  9,1G  8,9G  51% /
rc-svcdir             1,0M   88K  936K   9% /lib/rc/init.d
udev                   10M  124K  9,9M   2% /dev
shm                   441M     0  441M   0% /dev/shm

I'll try, as suggested, to compile with -j1. I've read elsewhere someone with that problem, but the error message was different. What causes this issue? Don't the ebuild should force -j1 then, if this is the case?

Just tried emerging it with -j1, same error. This is the ccache statistics from portage:
# CCACHE_DIR="/var/tmp/ccache" ccache -s
cache directory                     /var/tmp/ccache
cache hit                          21714
cache miss                         56150
called for link                     5190
multiple source files                  2
compile failed                      2526
preprocessor error                   864
not a C/C++ file                    6735
autoconf compile/link               9260
unsupported compiler option          294
no input file                       4047
files in cache                    112300
cache size                           1.0 Gbytes
max cache size                       2.0 Gbytes

I'll try deleting ccache from my FEATURES and I'll try emerging again. Removing ccache from the FEATURES is enough for the test, right?
Comment 3 Claudio Roberto França Pereira 2010-01-31 05:09:41 UTC
ccache disabled emerge process running right now.
I'm emerging it with "eselect expat icu python" USE, maybe it's a issue with icu or expat?

Just finished the emerge, it emerged fine. The culprit was ccache after all. Then, shouldn't the ebuild force ccache to be off, or at least show some EINFO on this issue?
Comment 4 Rafał Mużyło 2010-01-31 17:42:44 UTC
Well, every now and then, when a compilation fails,
an invalid object may get stuck in ccache.
Unless you remove it, it will mess up any subsequent
emerge of that package.
Comment 5 Claudio Roberto França Pereira 2010-01-31 18:18:44 UTC
All right. My bad then. All mark this as fixed.