Gentoo-prefix ,when I do emerge --oneshot findutils,it can't compile perl-5.12.3 >>> '/home/imagelife/gentoo/var/tmp/portage/dev-lang/perl-5.12.3/temp/build.log' * Messages for package dev-lang/perl-5.12.3: * ERROR: dev-lang/perl-5.12.3 failed (compile phase): * emake failed * * Call stack: * ebuild.sh, line 62: Called src_compile * environment, line 2801: Called die * The specific snippet of code: * emake -j1 || die "emake failed" * * If you need support, post the output of 'emerge --info =dev-lang/perl-5.12.3', * the complete build log and the output of 'emerge -pqv =dev-lang/perl-5.12.3'. * The complete build log is located at '/home/imagelife/gentoo/var/tmp/portage/dev-lang/perl-5.12.3/temp/build.log'. * The ebuild environment file is located at '/home/imagelife/gentoo/var/tmp/portage/dev-lang/perl-5.12.3/temp/environment'. * S: '/home/imagelife/gentoo/var/tmp/portage/dev-lang/perl-5.12.3/work/perl-5.12.3' Reproducible: Always Steps to Reproduce: 1.emerge --oneshot findutils or emerge perl 2. 3.
Portage 2.2.01.18213-prefix (prefix/linux/amd64, gcc-4.4.5, unavailable, 2.6.38-ARCH x86_64) ================================================================= System uname: Linux-2.6.38-ARCH-x86_64-Intel-R-_Core-TM-_i5_CPU_M_450_@_2.40GHz-with-glibc2.3 Timestamp of tree: Tue, 05 Apr 2011 21:39:05 +0000 ccache version 3.1.4 [disabled] app-shells/bash: 4.1_p7 sys-devel/binutils: 2.21.51.0.6 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/make: 3.82 Repositories: gentoo_prefix Installed sets: ACCEPT_KEYWORDS="~amd64-linux" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CPPFLAGS="-I/home/imagelife/gentoo/usr/include" CXXFLAGS="-O2 -pipe" DISTDIR="/home/imagelife/gentoo/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="ftp://mirrors.ustc.edu.cn/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-L/home/imagelife/gentoo/usr/lib -Wl,-rpath=/home/imagelife/gentoo/usr/lib -L/home/imagelife/gentoo/lib -Wl,-rpath=/home/imagelife/gentoo/lib" PKGDIR="/home/imagelife/gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/home/imagelife/gentoo/" 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="/home/imagelife/gentoo/var/tmp" PORTDIR="/home/imagelife/gentoo/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="amd64 bootstrap bzip2 cli cracklib crypt cxx dri iconv ipv6 mmx modules mudflap ncurses nptl nptlonly openmp perl pppd prefix readline session sse sse2 sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 cgi cgid 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I need the buildlog, or the extracted error to be able to say anything about this.
Hi,build log info http://pastebin.com/WD22GBen
I was attempting to help in IRC. I recall asking you to emerge --sync and try again with the latest gcc (as a wild guess). Please attach the build.log instead of using a third party service. Thanks.
Created attachment 273655 [details] build.log
[imagelife@laptop][~]% gcc-config -l [1] x86_64-pc-linux-gnu-4.4.5 * I had emerge --sync,but perl compile failed again
Current perl-5.12.3-r1 still fails to emerge: `sh cflags "optimize='-O2 -pipe'" perlmini.o` -DPERL_IS_MINIPERL perlmini.c CCCMD = x86_64-pc-linux-gnu-gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -I/nfs/uh04/mburcher/gentoo/usr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c89 -O2 -pipe -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat x86_64-pc-linux-gnu-gcc -Wl,-O1 -o miniperl \ gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o \ miniperlmain.o opmini.o perlmini.o -lgdbm -ldb -lgdbm_compat pp.o: In function `Perl_pp_pow': pp.c:(.text+0x3300): undefined reference to `pow' pp.o: In function `Perl_pp_modulo': pp.c:(.text+0x406d): undefined reference to `floor' pp.c:(.text+0x40a1): undefined reference to `floor' pp.c:(.text+0x4443): undefined reference to `fmod' pp.o: In function `Perl_pp_atan2': pp.c:(.text+0x9082): undefined reference to `atan2' pp.o: In function `Perl_pp_sin': pp.c:(.text+0x9222): undefined reference to `sin' pp.o: In function `Perl_pp_int': pp.c:(.text+0x96c1): undefined reference to `floor' pp.c:(.text+0x96e1): undefined reference to `ceil' pp.o:(.rodata+0x280): undefined reference to `cos' pp.o:(.rodata+0x288): undefined reference to `sin' pp.o:(.rodata+0x290): undefined reference to `sin' pp.o:(.rodata+0x298): undefined reference to `exp' pp.o:(.rodata+0x2a0): undefined reference to `log' pp.o:(.rodata+0x2a8): undefined reference to `sqrt' pp_sys.o: In function `S_gmtime64_r.clone.0': pp_sys.c:(.text+0x155): undefined reference to `ceil' pp_sys.c:(.text+0x1ae): undefined reference to `ceil' pp_sys.c:(.text+0x209): undefined reference to `ceil' pp_sys.c:(.text+0x2ba): undefined reference to `floor' pp_sys.c:(.text+0x40f): undefined reference to `ceil' pp_sys.c:(.text+0x5a9): undefined reference to `floor' pp_sys.c:(.text+0x5f9): undefined reference to `floor' pp_sys.c:(.text+0x61f): undefined reference to `floor' pp_sys.c:(.text+0x6a8): undefined reference to `fmod' pp_sys.c:(.text+0x6d2): undefined reference to `fmod' pp_sys.c:(.text+0x6fc): undefined reference to `fmod' pp_sys.c:(.text+0x728): undefined reference to `fmod' pp_sys.o: In function `Perl_pp_gmtime': pp_sys.c:(.text+0xcce6): undefined reference to `floor' pp_pack.o: In function `S_pack_rec': pp_pack.c:(.text+0x6a8b): undefined reference to `floor' pp_pack.c:(.text+0x6ab5): undefined reference to `floor' pp_pack.c:(.text+0x6adb): undefined reference to `floor' collect2: ld returned 1 exit status make: *** [miniperl] Error 1 emake failed * ERROR: dev-lang/perl-5.12.3-r1 failed (compile phase): * emake failed * * Call stack: * ebuild.sh, line 62: Called call-ebuildshell 'src_compile' * environment, line 595: Called src_compile * environment, line 2898: Called die * The specific snippet of code: * emake -j1 || die "emake failed"
Created attachment 275333 [details] dev-lang/perl-5.12.3-r1/temp/build.log
It appears that -lm is missing from the linker flags.
-lm seems to work: $ diff $EPREFIX/usr/local/portage/dev-lang/perl/perl-5.12.3-r1.ebuild $EPREFIX/usr/portage/dev-lang/perl/perl-5.12.3-r1.ebuild 293c293 < -Dldflags="-lm ${LDFLAGS}" \ --- > -Dldflags="${LDFLAGS}" \ But now I still get this error: !!! dolib: /users/mo/gentoo/var/tmp/portage/dev-lang/perl-5.12.3-r1/image/users/mo/gentoo///usr/lib/perl5/5.12.3/x86_64-linux/CORE/libperl.so.5.12.3 does not exist I had a sym-linked home before. I changed that, and I've rebuilt whole @installed with that successfully. Only perl is failing.
I have same bug here
*** This bug has been marked as a duplicate of bug 358875 ***