Проблемы с компиляцией (wine, grub), жалобы на флаг --host (GCC4.1) Gentoo 2006.0 (~amd64)

Sabayon, Calculate, Funtoo, Exherbo

Модератор: /dev/random

Аватара пользователя
Kasper_WPS
Сообщения: 312
ОС: Gentoo

Проблемы с компиляцией (wine, grub), жалобы на флаг --host (GCC4.1) Gentoo 2006.0 (~amd64)

Сообщение Kasper_WPS »

Ничего не могу понять, сначала grub компилировался, теперь не хочет, а при запуске вот что пишет:

Код: Выделить всё

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 по неволе :) На последнем срезе XOR'a были дисты только под ~amd64... В чем может быть дело, вроде в баг-траке были сообщения что бинарники не запускаются, но я так и не понял в чем дело, как разрешить эту ситуацию. Спасибо!
Gentoo Linux - Stage1 - Core2 Q6600 Quad - 2008.0
Kernel: Gentoo-sources - 2.6.36 GCC 4.5.1
XOrg-server 1.9.2 (NVIDIA-9600GT), KDE4 4.5.4
Спасибо сказали:
Аватара пользователя
ddc
Бывший модератор
Сообщения: 3535
Статус: OpenBSD-compatible
ОС: OpenBSD -current

Re: Проблемы с компиляцией (wine, grub), жалобы на флаг --host (GCC4.1) Gentoo 2006.0 (~amd64)

Сообщение ddc »

Явные проблемы настройкой сборочного окружения: свежесобранный софт выходит с ошибкой, о чём и говорит скрипт. Предлагаю вернуться на GCC-3 и поэксперементировать в следующий раз.
Спасибо сказали:
Аватара пользователя
ArtSh
Сообщения: 433
ОС: Gentoo

Re: Проблемы с компиляцией (wine, grub), жалобы на флаг --host (GCC4.1) Gentoo 2006.0 (~amd64)

Сообщение ArtSh »

Вы лучше посмотрите почему он запустит программу не смог. В лог файле, где-то за 30 строчек до конца файла это должно быть. весь файл сюда постить не надо ;)

P.S. у меня лично как раз gcc 4.1.1 и всё в порядке (~amd64)
Поставь букву "Ё" на место еЁ!
Спасибо сказали:
Аватара пользователя
Kasper_WPS
Сообщения: 312
ОС: Gentoo

Re: Проблемы с компиляцией (wine, grub), жалобы на флаг --host (GCC4.1) Gentoo 2006.0 (~amd64)

Сообщение Kasper_WPS »

Придется перекомпилировать ВСЕ :blink: emerge glibc - завершается аналогичной ошибкой, как и emerge gcc Не знаю что я сделал не так, как появится свободное время переустановлю всю систему.
Gentoo Linux - Stage1 - Core2 Q6600 Quad - 2008.0
Kernel: Gentoo-sources - 2.6.36 GCC 4.5.1
XOrg-server 1.9.2 (NVIDIA-9600GT), KDE4 4.5.4
Спасибо сказали:
Аватара пользователя
ddc
Бывший модератор
Сообщения: 3535
Статус: OpenBSD-compatible
ОС: OpenBSD -current

Re: Проблемы с компиляцией (wine, grub), жалобы на флаг --host (GCC4.1) Gentoo 2006.0 (~amd64)

Сообщение ddc »

ArtSh
У меня на одном компьютере было всё в порядке, а на другом - нет, так что раз на раз не приходится.

Kasper_WPS

Код: Выделить всё

eselect --help
Спасибо сказали: