Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83089 - emerge errors when compiling a perl module ebuild, it ignores the /etc/make.conf file while compiling and errors with "cc1: error: CPU you selected does not support x86-64 instruction set".
Summary: emerge errors when compiling a perl module ebuild, it ignores the /etc/make.c...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High blocker (vote)
Assignee: Gentoo Perl team
URL: http://www.shellz.nl/zooi/makemaker.html
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-23 10:35 UTC by Rick Jansen
Modified: 2005-05-16 09:19 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 Rick Jansen 2005-02-23 10:35:02 UTC
This problem is a result of perl's ExtUtils::MakeMaker module. When it writes the Makefile from Makefile.PL, the OPTIMIZE variable is set to the default of '-O2 -march=athlon-xp'. Which causes errors on perl modules written partially in C.

Reproducible: Always
Steps to Reproduce:
emerge perl-tk or emerge MIME-Base64

Actual Results:  
It tries to compile with -march=athlon-xp.

Expected Results:  
It should compile with CFLAGS from make.conf.

I see perl-tk and MIME-Base64 erroring out. I came across this problem because
emerge world tried MIME-Base64. I'm emerging world from a rather outdated
(2004.0) system.

emerge info:
Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.3.4,
glibc-2.3.4.20041102-r0, 2.6.8-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.8-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.3-r1 [2.3.3 (#1, Oct 12 2004, 21:15:33)]
dev-lang/python:     2.3.3-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r5
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-Os -march=athlon64 -mtune=athlon64 -pipe -m64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=athlon64 -mtune=athlon64 -pipe -m64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://130.89.175.1/pub/os/linux/gentoo
http://212.219.247.14/sites/www.ibiblio.org/gentoo/
http://212.219.247.11/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi aim alsa apm arts avi berkdb bitmap-fonts bzlib cdr cjk cross
crypt cups curl db2 dbase dbm divx4linux dvd dvdr encode esd exif f77 fam fbcon
font-server fortran ftp gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 icq
imap imlib ipv6 java jp2 jpeg kde lzw lzw-tiff mikmod motif mozilla mpegmsn
multilib ncurses nls oggvorbis opengl oss pam perl png python qt readline samba
sdl shared slang ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb
userlocales xml xml2 xmms xpm xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2005-03-11 08:23:21 UTC
Can you paste perl -V output? The optimize should be getting set to whatever you build perl under.
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2005-05-16 09:19:28 UTC
closing due to a lack of follow up. problem was indicative of changing compile flags at some point following the installation of perl.