Summary: | sys-boot/grub-0.95.20040823 failed to compile on ~amd64 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Grzegorz Kulewski <grzegorz> |
Component: | [OLD] Core system | Assignee: | The Gentoo Linux Hardened Team <hardened> |
Status: | RESOLVED WONTFIX | ||
Severity: | critical | CC: | amd64, ketjow |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Grzegorz Kulewski
2004-12-18 05:16:33 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 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. 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" I meant on a Athlon XP sorry.... could you please both do a emerge sync and retry? this should be fixed since yesterday (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 #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" I am sleepy and dumb, just to clarify/correct my earlier statement:: It fails with hardened GCC, but not with vanilla GCC. Reassigning to hardened... Guys, seems you need to fix your gcc-specfile ;-) hardened refuses to fix that broken ass grub ebuild. Try bug #80693. |