alkor ~ # emerge -p --update perl These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] dev-lang/perl-5.8.6-r8 [5.8.6-r5] alkor ~ # emerge --update perl [...] CCCMD = i686-pc-linux-gnu-gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=athlon-xp -mfpmath=sse -msse2 -m3dnow -funroll-loops -pipe -Wall sv.c: In function `Perl_sv_2iv': sv.c:2128: error: `undef' undeclared (first use in this function) sv.c:2128: error: (Each undeclared identifier is reported only once sv.c:2128: error: for each function it appears in.) sv.c: In function `Perl_sv_2uv': sv.c:2422: error: `undef' undeclared (first use in this function) sv.c: In function `Perl_sv_2nv': sv.c:2749: error: `undef' undeclared (first use in this function)
emerge --info, please...
My system: Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.14-gentoo-r5 i686) ================================================================= System uname: 2.6.14-gentoo-r5 i686 AMD Sempron(tm) 3000+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -mfpmath=sse -msse2 -m3dnow -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -mfpmath=sse -msse2 -m3dnow -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://src.gentoo.pl http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl ftp://gentoo.po.opole.pl http://stoofo.math.uni.lodz.pl/gentoo/ ftp://stoofo.math.uni.lodz.pl/" LINGUAS="pl en de it fr ru ar" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts bzip2 crypt cups eds emboss encode expat foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml2 xmms xv zlib linguas_pl linguas_en linguas_de linguas_it linguas_fr linguas_ru linguas_ar userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY alkor ~ # equery list | sort * installed packages app-admin/metalog-0.8_pre20031130 app-admin/perl-cleaner-1.01 app-arch/bzip2-1.0.3-r4 app-arch/cpio-2.6-r4 app-arch/gzip-1.3.5-r8 app-arch/tar-1.15.1 app-crypt/hashalot-0.3 app-editors/nano-1.3.7 app-portage/gentoolkit-0.2.0-r3 app-shells/bash-3.0-r12 dev-lang/perl-5.8.6-r5 dev-lang/python-2.3.5-r2 dev-libs/expat-1.95.8 dev-libs/libpcre-6.3 dev-libs/openssl-0.9.7e-r1 dev-libs/popt-1.7-r1 dev-perl/Locale-gettext-1.03 dev-python/python-fchksum-1.7.1 dev-util/pkgconfig-0.17.2-r1 mail-mta/ssmtp-2.61 net-mail/mailbase-1 net-misc/iputils-021109-r3 net-misc/openssh-3.9_p1-r2 net-misc/rsync-2.6.0-r5 net-misc/wget-1.9.1-r5 sys-apps/baselayout-1.11.13-r1 sys-apps/busybox-1.00-r4 sys-apps/coldplug-20040920 sys-apps/coreutils-5.2.1-r6 sys-apps/debianutils-2.13.1-r1 sys-apps/diffutils-2.8.7-r1 sys-apps/file-4.12 sys-apps/findutils-4.1.20-r1 sys-apps/gawk-3.1.3-r2 sys-apps/grep-2.5.1-r7 sys-apps/groff-1.19.1-r2 sys-apps/hdparm-5.9 sys-apps/help2man-1.33.1 sys-apps/hotplug-20040923-r1 sys-apps/hotplug-base-20040401 sys-apps/kbd-1.12-r5 sys-apps/less-382-r2 sys-apps/man-1.6 sys-apps/man-pages-2.02 sys-apps/module-init-tools-3.0-r2 sys-apps/net-tools-1.60-r11 sys-apps/pam-login-3.17 sys-apps/pciutils-2.2.0-r1 sys-apps/portage-2.0.51.22-r2 sys-apps/sandbox-1.2.11 sys-apps/sed-4.1.4 sys-apps/shadow-4.0.7-r3 sys-apps/slocate-2.7-r7 sys-apps/sysvinit-2.86 sys-apps/tcp-wrappers-7.6-r8 sys-apps/texinfo-4.8 sys-apps/usbutils-0.11-r5 sys-apps/util-linux-2.12i-r1 sys-apps/which-2.16 sys-boot/grub-0.96-r2 sys-devel/autoconf-2.13 sys-devel/autoconf-2.59-r6 sys-devel/autoconf-wrapper-3-r1 sys-devel/automake-1.4_p6 sys-devel/automake-1.5 sys-devel/automake-1.6.3 sys-devel/automake-1.7.9-r1 sys-devel/automake-1.8.5-r3 sys-devel/automake-1.9.5 sys-devel/automake-wrapper-1-r1 sys-devel/bc-1.06-r6 sys-devel/binutils-2.15.92.0.2-r10 sys-devel/binutils-config-1.8-r4 sys-devel/bison-1.875d sys-devel/flex-2.5.4a-r5 sys-devel/gcc-3.3.5.20050130-r1 sys-devel/gcc-config-1.3.11-r4 sys-devel/gettext-0.14.4 sys-devel/gnuconfig-20051113 sys-devel/libperl-5.8.6-r1 sys-devel/libtool-1.5.18-r1 sys-devel/m4-1.4.2-r1 sys-devel/make-3.80-r1 sys-devel/patch-2.5.9 sys-fs/e2fsprogs-1.37-r1 sys-fs/reiserfsprogs-3.6.19 sys-fs/udev-058 sys-kernel/genkernel-3.3.6 sys-kernel/gentoo-sources-2.6.14-r5 sys-kernel/linux-headers-2.6.11-r2 sys-libs/com_err-1.37 sys-libs/cracklib-2.8.3-r1 sys-libs/db-4.2.52_p2-r1 sys-libs/gdbm-1.8.3-r2 sys-libs/glibc-2.3.4.20041102-r1 sys-libs/gpm-1.20.1-r4 sys-libs/ncurses-5.4-r6 sys-libs/pam-0.78-r2 sys-libs/pwdb-0.62 sys-libs/readline-5.0-r2 sys-libs/ss-1.37 sys-libs/zlib-1.2.3 sys-process/cronbase-0.3.2 sys-process/procps-3.2.5-r1 sys-process/psmisc-21.5 sys-process/vixie-cron-4.1-r8
Interestingly, if I try to build perl manually it compiles without errors. Below enclosed is a selection of diff emerge-stdout configure.gnu-stdout 59c40 < Use which C compiler? [i686-pc-linux-gnu-gcc] --- > Use which C compiler? [cc] 66,69c47,48 < What libraries to use? < [-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc] < What optimizer/debugger flag should be used? < [-O2 -march=athlon-xp -mfpmath=sse -msse2 -m3dnow -funroll-loops -pipe] --- > What libraries to use? [-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc] > What optimizer/debugger flag should be used? [-O2] 116,122c95,96 < [/usr/lib/perl5/site_perl/5.8.6/i686-linux] < Do you want to configure vendor-specific add-on directories? [y] < Installation prefix to use for vendor-supplied add-ons? (~name ok) [/usr] < Pathname for the vendor-supplied library files? (~name ok) < [/usr/lib/perl5/vendor_perl/5.8.6] < Pathname for vendor-supplied architecture-dependent files? (~name ok) < [/usr/lib/perl5/vendor_perl/5.8.6/i686-linux] --- > [/usr/local/lib/perl5/site_perl/5.8.6/i686-linux] > Do you want to configure vendor-specific add-on directories? [n] 129,130c104,105 < List of earlier versions to include in @INC? < [5.8.0 5.8.0/i686-linux 5.8.2 5.8.2/i686-linux 5.8.4 5.8.4/i686-linux 5.8.5 5.8.5/i686-linux ] --- > List of earlier versions to include in @INC? [none] > Do you want to install perl as /usr/bin/perl? [n] 138,142c113,116 < Any special flags to pass to i686-pc-linux-gnu-gcc -c to compile shared library modules? < [-fPIC] < What command should be used to create dynamic libraries? < [i686-pc-linux-gnu-gcc] < Any special flags to pass to i686-pc-linux-gnu-gcc to create a dynamically loaded library? --- > Any special flags to pass to cc -c to compile shared library modules? > [-fpic] > What command should be used to create dynamic libraries? [cc] > Any special flags to pass to cc to create a dynamically loaded library? 144,145c118 < Any special flags to pass to i686-pc-linux-gnu-gcc to use dynamic linking? < [-rdynamic] --- > Any special flags to pass to cc to use dynamic linking? [-Wl,-E] 184,192d156 < Pathname for the vendor-supplied executables directory? (~name ok) < [/usr/bin] < Pathname for the vendor-supplied html pages? (~name ok) [none] < Pathname for the vendor-supplied html pages? (~name ok) [none] < Pathname for the vendor-supplied manual section 1 pages? (~name ok) < [/usr/share/man/man1] < Pathname for the vendor-supplied manual section 3 pages? (~name ok) < [/usr/share/man/man3] < Pathname for the vendor-supplied scripts directory? (~name ok) [/usr/bin] 197,201c161 < Configure: line 9471: 7687 Illegal instruction $run ./try < sprintf() found. < Configure: line 9471: 7694 Illegal instruction $run ./try < *** WHOA THERE!!! *** < None of ( gconvert gcvt sprintf) seemed to work properly. I'll use sprintf. --- > I'll use gcvt to convert floats into a string. 230d189 < Configure: line 10127: 7866 Illegal instruction $run ./try 232d190 < Configure: line 10227: 7874 Illegal instruction $run ./try 463,465d420 < *** WHOA THERE!!! *** < The recommended value for $d_semctl_semun on this machine was "define"! < Keep the recommended value? [y] 623,625d577 < *** WHOA THERE!!! *** < The recommended value for $i_ndbm on this machine was "define"! < Keep the recommended value? [y] 653c605 < [B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call GDBM_File I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File Opcode POSIX PerlIO/encoding PerlIO/scalar PerlIO/via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Time/HiRes Unicode/Normalize XS/APItest XS/Typemap attrs re threads threads/shared] --- > [B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call GDBM_File I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 Opcode POSIX PerlIO/encoding PerlIO/scalar PerlIO/via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Time/HiRes Unicode/Normalize XS/APItest XS/Typemap attrs re threads threads/shared] 736c688 < make[1]: Leaving directory `/var/tmp/portage/perl-5.8.6-r8/work/perl-5.8.6/x2p' --- > make[1]: Leaving directory `/root/perl-5.8.6/x2p' 744,827d695 [...] < `sh cflags "optimize='-O2 -march=athlon-xp -mfpmath=sse -msse2 -m3dnow -funroll-loops -pipe'" sv.o` -fPIC sv.c < CCCMD = i686-pc-linux-gnu-gcc -DPERL_CORE -c -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=athlon-xp -mfpmath=sse -msse2 -m3dnow -funroll-loops -pipe -Wall < sv.c: In function `Perl_sv_2iv': < sv.c:2128: error: `undef' undeclared (first use in this function) < sv.c:2128: error: (Each undeclared identifier is reported only once < sv.c:2128: error: for each function it appears in.) < sv.c: In function `Perl_sv_2uv': < sv.c:2422: error: `undef' undeclared (first use in this function) < sv.c: In function `Perl_sv_2nv': < sv.c:2749: error: `undef' undeclared (first use in this function)
CFLAGS="-O2 -march=athlon-xp"... everything else looks: 1) excessive optimizations 2) most of the -m[blah] flags you put are probably implied by -march=athlon-xp...
Problem solved. The trouble was the flag -msse2 that was not supported by CPU... model name : AMD Sempron(tm) 3000+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow model name : AMD Sempron(tm) Processor 3000+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt 3dnowext 3dnow la
Closing.
*** Bug 199937 has been marked as a duplicate of this bug. ***