Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367163 - dev-lang/perl-5.12.3 fails to compile on Gentoo-prefix/archlinux (AMD64)
Summary: dev-lang/perl-5.12.3 fails to compile on Gentoo-prefix/archlinux (AMD64)
Status: RESOLVED DUPLICATE of bug 358875
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-14 04:40 UTC by imagelife
Modified: 2011-07-09 08:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,49.17 KB, text/plain)
2011-05-17 11:43 UTC, imagelife
Details
dev-lang/perl-5.12.3-r1/temp/build.log (build.log,52.92 KB, text/plain)
2011-05-31 12:40 UTC, Massimo Burcheri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description imagelife 2011-05-14 04:40:33 UTC
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.
Comment 1 imagelife 2011-05-14 04:41:54 UTC
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
Comment 2 Fabian Groffen gentoo-dev 2011-05-14 08:40:30 UTC
I need the buildlog, or the extracted error to be able to say anything about this.
Comment 3 imagelife 2011-05-14 14:06:50 UTC
Hi,build log info http://pastebin.com/WD22GBen
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-05-14 15:15:49 UTC
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.
Comment 5 imagelife 2011-05-17 11:43:05 UTC
Created attachment 273655 [details]
build.log
Comment 6 imagelife 2011-05-17 11:44:37 UTC
[imagelife@laptop][~]% gcc-config -l 
 [1] x86_64-pc-linux-gnu-4.4.5 *

I had emerge --sync,but perl compile failed again
Comment 7 Massimo Burcheri 2011-05-31 12:38:39 UTC
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"
Comment 8 Massimo Burcheri 2011-05-31 12:40:15 UTC
Created attachment 275333 [details]
dev-lang/perl-5.12.3-r1/temp/build.log
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-06-07 07:53:04 UTC
It appears that -lm is missing from the linker flags.
Comment 10 Massimo Burcheri 2011-06-09 10:12:58 UTC
-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.
Comment 11 Alexey Shvetsov archtester gentoo-dev 2011-06-15 14:40:33 UTC
I have same bug here
Comment 12 Fabian Groffen gentoo-dev 2011-07-09 08:32:53 UTC

*** This bug has been marked as a duplicate of bug 358875 ***