Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74825 - sys-boot/grub-0.95.20040823 failed to compile on ~amd64
Summary: sys-boot/grub-0.95.20040823 failed to compile on ~amd64
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-18 05:16 UTC by Grzegorz Kulewski
Modified: 2005-03-04 03:39 UTC (History)
2 users (show)

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 Grzegorz Kulewski 2004-12-18 05:16:33 UTC
Looks like some auto* problem?

Reproducible: Always
Steps to Reproduce:
1. emerge grub
Actual Results:  
>>> md5 src_uri ;-) grub-0.95.20040823.tar.gz
>>> md5 src_uri ;-) grub-0.95.20040823-splash.patch.bz2
>>> Unpacking source...
>>> Unpacking grub-0.95.20040823.tar.gz to /var/tmp/portage/grub-0.95.20040823/work
>>> Unpacking grub-0.95.20040823-splash.patch.bz2 to
/var/tmp/portage/grub-0.95.20040823/work
 * Using GNU config files from /usr/share/libtool
 *  Updating config.sub                                                        
                                  [ ok ] *  Updating config.guess              
                                                                          [ ok ]
* Applying grub-0.95.20040823-splash.patch ...                                 
                                 [ ok ] * Applying
grub-0.95.20040823-warnings.patch ...                                          
                      [ ok ]>>> Source unpacked.
/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal
/usr/share/aclocal/libgcrypt.m4:23: warning: underquoted definition of
AM_PATH_LIBGCRYPT
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
/usr/share/aclocal/freetype2.m4:7: warning: underquoted definition of AC_CHECK_FT2
configure.ac:19: version mismatch.  This is Automake 1.7.9,
configure.ac:19: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:19: comes from Automake 1.8.5.  You should recreate
configure.ac:19: aclocal.m4 with aclocal and run automake again.

!!! ERROR: sys-boot/grub-0.95.20040823 failed.
!!! Function src_compile, Line 61, Exitcode 1
!!! automake failed
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
you know :-)

krzys root # emerge info
Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10-rc3-mm1 x86_64)
=================================================================
System uname: 2.6.10-rc3-mm1 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 18 2004, 04:26:49)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r2, 1.4_p6, 1.9.3, 1.6.3, 1.7.9
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -O3 -Os -march=athlon64 -mtune=athlon64 -fomit-frame-pointer -fweb
-frename-registers -freorder-blocks -ftracer -funit-at-a-time -fforce-addr -pipe"
CHOST="x86_64-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 -O3 -Os -march=athlon64 -mtune=athlon64 -fomit-frame-pointer -fweb
-frename-registers -freorder-blocks -ftracer -funit-at-a-time -fforce-addr -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks nostrip sandbox sfperms"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://trumpetti.atm.tut.fi/gentoo/ http://www.gigaload.org/gentoo.org/
http://gentoo.mirror.sdv.fr http://gentoo.tiscali.nl/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib accessibility acl acpi activefilter alsa artworkextra atm
audiofile bcmath berkdb bitmap-fonts bluetooth bmp bzlib calendar cdparanoia cdr
crypt cscope ctype curl curlwrappers dba dga dhcp dio directfb doc dvd dvdr
dvdread edl erandom f77 fbcon flac fortran freetts ftp gcj gd gdbm ggi gif
gimpprint gmp gnokii gnutls gphoto2 gpm gstreamer gtk guile hal howl imap
inifile innodb irda jack jack-tmpfs java javascript jbig jce jms joystick jp2
jpeg jpeg2k justify jython kadu-voice lcms libcaca libwww live lzo lzw lzw-tiff
matroska md5sum mhash mime ming mmap mng mozcalendar mozdevelop mozilla mozsvg
mozxmlterm multilib mysql mythtv nas ncurses network nls no-old-linux nptl
nvidia objc opengl oss pam pcntl pcre perl php pic png posix postgres povray
python qt quicktime readline real rhino rtc ruby samba scanner session shared
sharedmem simplexml sms sndfile soap sockets socks5 softmmu speex sqlite ssl svg
sysvipc tcltk tcpd tetex tga theora tiff tokenizer truetype unicode usb v4l2 wmf
xanim xinerama xml xml2 xmlrpc xpm xprint xrandr xscreensaver xsl xv xvid xvmc zlib"
Comment 1 ketjow 2004-12-19 12:32:32 UTC
Take a look at the amd64-FAQ, there's a question about grub and the answer tells to emerge grub-static, because grub doesn't compile...
http://forums.gentoo.org/viewtopic.php?t=221361&start=0&postdays=0&postorder=asc&highlight=amd64+grub
Comment 2 Grzegorz Kulewski 2004-12-19 13:59:01 UTC
I think this is old. Try here:
http://www.gentoo.org/proj/en/base/amd64/technotes.xml?part=2&chap=3#doc_chap4

"Grub will not build in a pure 64-bit environment. It will only compile using a multilib gcc. 2004.3 includes multilib support by default."

And I am using 2004.3 with multilib. And GRUB-0.94 builds and works fine.

And it smells like some auto* problem maybe even platform independent. There are many such problems in Gentoo bugzilla recenlty.

Thanks.
Comment 3 António Godinho 2004-12-21 07:06:20 UTC
I've exactly the same problem but I'm not running a AMD64, but a P III:

 * Using GNU config files from /usr/share/libtool
 *  Updating config.sub                                                                                                       [ ok ]
 *  Updating config.guess                                                                                                     [ ok ]
 * Applying grub-0.95.20040823-splash.patch ...                                                                               [ ok ]
 * Applying grub-0.95.20040823-warnings.patch ...                                                                             [ ok ]
>>> Source unpacked.
/usr/share/aclocal/libreiser4.m4:14: warning: underquoted definition of AC_CHECK_LIBREISER4
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal
/usr/share/aclocal/libaal.m4:14: warning: underquoted definition of AC_CHECK_LIBAAL
configure.ac:19: version mismatch.  This is Automake 1.7.9,
configure.ac:19: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:19: comes from Automake 1.8.5.  You should recreate
configure.ac:19: aclocal.m4 with aclocal and run automake again.

livecd ~ # emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 AMD Athlon(tm) 
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 21 2004, 11:22:36)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -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="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://192.168.1.2/ ftp://ftp.rnl.ist.utl.pt/gentoo/ http://darkstar.ist.utl.pt/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://ftp.rnl.ist.utl.pt/gentoo-portage"
USE="x86 3dnow X aalib alsa avi cdr divx4linux dvdr encode gtk2 imlib jpeg mad mikmod mmx mpeg ncurses nls nptl oggvorbis opengl png python readline sdl slang sse truetype xml2 xv xvid zlib"
Comment 4 António Godinho 2004-12-21 07:11:21 UTC
I meant on a Athlon XP sorry....
Comment 5 Simon Stelling (RETIRED) gentoo-dev 2004-12-21 09:39:57 UTC
could you please both do a emerge sync and retry? this should be fixed since yesterday
Comment 6 Tiago Freire 2005-02-02 09:05:18 UTC
(glibc  2.3.4-20041102, hardened-dev-sources-2.6.10-r3)

It emerges in my system when I compile it with gcc-3.4.3-vanilla.
When I try to compile with the hardened-sources the following error occurs:

checking for ranlib... ranlib
checking whether -Wundef works... yes
checking whether -falign-loops works... yes
checking for x86_64-pc-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking if C symbols get an underscore after compilation... no
checking whether objcopy works for absolute addresses... configure: error: x86_64-pc-linux-gnu-gcc cannot link at address 2000

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/grub-0.95.20040823/work/grub-0.95.20040823/config.log

!!! ERROR: sys-boot/grub-0.95.20040823 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
Comment 7 Tiago Freire 2005-02-02 09:06:36 UTC
#Forgot my make.conf, sorry:

CFLAGS="-O2 -march=k8 -ftracer -fprefetch-loop-arrays -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
USE="3dnow X aac aalib acl acpi alsa apache2 arts avi berkdb bidi bzlib calendar canna caps cdr cjk crypt cups curl dga divx4linux doc dvd dvdr encode esd ethereal evo fam fbconfirebird flac flash foomaticdb ftp gd gif gnutls gpm hardened hardenedphp iconv imagemagick imap imlib innodb interbase iodbc ipv6 -jack java kde kdexdeltas lcms ldap libwww madmaildir mailwrapper mbox mcal mhash mime mmap mmx mng mozilla mpeg multilib mysqli nas ncurses nls nptl odbc ogg oggvorbis offensive openal opengl oss pam pcntl pcre perl php pic plotutils png posix postgres ppds prelude profile python qt quicktime readline samba sasl scanner sdl session shared sharedmem slang slp sndfile snmp soap sockets sox speex spell spl sqlite sse ssl svg svga symlink tcpd theora threads tidy tiff tokenizer truetype unicode usb vhosts wddx wmf xine xml2 xmlrpc xmms xpm xprint xsl xv xvid yahoo zlib"
MAKEOPTS="-j2"
#SYNC="rsync://portage.cert-id.com.br/portage"
Comment 8 Tiago Freire 2005-02-02 09:08:25 UTC
I am sleepy and dumb, just to clarify/correct my earlier statement:: It fails with hardened GCC, but not with vanilla GCC.
Comment 9 Danny van Dyk (RETIRED) gentoo-dev 2005-03-03 15:25:25 UTC
Reassigning to hardened...

Guys, seems you need to fix your gcc-specfile ;-)
Comment 10 solar (RETIRED) gentoo-dev 2005-03-03 15:32:29 UTC
hardened refuses to fix that broken ass grub ebuild.
Comment 11 Kevin F. Quinn (RETIRED) gentoo-dev 2005-03-04 03:39:34 UTC
Try bug #80693.