Код: Выделить всё
home kasper # grub
bash: /sbin/grub: cannot execute binary file
home kasper # emerge grub
Calculating dependencies... done!
>>> Emerging (1 of 1) sys-boot/grub-0.97-r2 to /
>>> checking ebuild checksums;-)
>>> checking auxfile checksums;-)
>>> checking miscfile checksums;-)
>>> checking grub-0.97.tar.gz;-)
>>> checking splash.xpm.gz;-)
>>> checking grub-0.97-patches-1.2.tar.bz2;-)
>>> Unpacking source...
>>> Unpacking grub-0.97.tar.gz to /var/tmp/portage/grub-0.97-r2/work
>>> Unpacking splash.xpm.gz to /var/tmp/portage/grub-0.97-r2/work
>>> Unpacking grub-0.97-patches-1.2.tar.bz2 to /var/tmp/portage/grub-0.97-r2/work
* Applying various patches (bugfixes/updates) ...
* 001_all_grub-0.95.20040823-splash.patch ... [ ok ]
* 005_all_grub-0.96-PIC.patch ... [ ok ]
* 010_all_grub-0.96-bounced-checks.patch ... [ ok ]
* 015_all_grub-0.96-unsigned-addresses.patch ... [ ok ]
* 020_all_grub-0.96-i2o-raid.patch ... [ ok ]
* 040_all_grub-0.96-nxstack.patch ... [ ok ]
* 060_all_grub-0.96-netboot-pic.patch ... [ ok ]
* 500_all_grub-0.97-netboot-gcc4.patch ... [ ok ]
* Done with patching
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/grub-0.97-r2/work/grub-0.97 ...
* econf: updating grub-0.97/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating grub-0.97/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/lib --datadir=/usr/lib/grub --exec-prefix=/ --disable-auto-linux-mem-opt --build=x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/grub-0.97-r2/work/grub-0.97/config.log
!!! ERROR: sys-boot/grub-0.97-r2 failed.
Call stack:
ebuild.sh, line 1540: Called dyn_compile
ebuild.sh, line 940: Called src_compile
grub-0.97-r2.ebuild, line 95: Called econf '--libdir=/lib' '--datadir=/usr/lib/grub' '--exec-prefix=/' '--disable-auto-linux-mem-opt'
ebuild.sh, line 541: Called die
!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
И wine тоже:
Код: Выделить всё
home kasper # emerge wine
Calculating dependencies... done!
>>> Emerging (1 of 1) app-emulation/wine-0.9.15 to /
>>> checking ebuild checksums;-)
>>> checking auxfile checksums;-)
>>> checking miscfile checksums;-)
>>> checking wine-0.9.15.tar.bz2;-)
>>> Unpacking source...
>>> Unpacking wine-0.9.15.tar.bz2 to /var/tmp/portage/wine-0.9.15/work
* Applying wine-gentoo-no-ssp.patch ... [ ok ]>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/wine-0.9.15/work/wine-0.9.15 ...
* econf: updating wine-0.9.15/tools/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating wine-0.9.15/tools/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --sysconfdir=/etc/wine --with-curses --with-opengl --with-x --disable-trace --disable-debug --libdir=/usr/lib32 --build=i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/wine-0.9.15/work/wine-0.9.15/config.log
!!! ERROR: app-emulation/wine-0.9.15 failed.
Call stack:
ebuild.sh, line 1540: Called dyn_compile
ebuild.sh, line 940: Called src_compile
wine-0.9.15.ebuild, line 102: Called econf '--sysconfdir=/etc/wine' '--with-curses' '--with-opengl' '--with-x' '--disable-trace' '--disable-debug'
ebuild.sh, line 541: Called die
!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Код: Выделить всё
home kasper # gcc --version
x86_64-pc-linux-gnu-gcc (GCC) 4.1.1 (Gentoo 4.1.1)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Стал использовать gcc4 по неволе
