LinuxForum.Fans
Тема

Сборка ядра

Автор: tyrnov 198 сообщений 37308 просмотров В конец обсуждения ↓
#255088
"Lupo Alberto" написал:
emerge -av gcc
Выдал ошибку
(chroot) Gentoo-2012 ~ # emerge -av gcc

* IMPORTANT: 2 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] sys-devel/autoconf-wrapper-12 0 kB
[ebuild N ] sys-devel/automake-wrapper-6 0 kB
[ebuild N ] sys-devel/m4-1.4.15 USE="-examples" 925 kB
[ebuild N ] dev-perl/Locale-gettext-1.50.0 8 kB
[ebuild N ] sys-devel/autoconf-2.68 USE="-emacs" 1,350 kB
[ebuild N ] sys-devel/bison-2.4.3 USE="nls -static" 1,614 kB
[ebuild N ] sys-apps/help2man-1.40.8 USE="nls" 178 kB
[ebuild N ] sys-devel/automake-1.11.1 1,042 kB
[ebuild N ] sys-devel/libtool-2.4-r1 USE="-test -vanilla" 833 kB
[ebuild N ] sys-devel/flex-2.5.35_p10 USE="nls -static -test" 1,268 kB
[ebuild R ] sys-devel/gcc-4.5.3-r2 USE="cxx fortran mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk (-hardened) (-libssp) -lto -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" 64,862 kB

Total: 11 packages (10 new, 1 reinstall), Size of downloads: 72,076 kB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 11) sys-devel/autoconf-wrapper-12
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/sys-devel/autoconf-wrapper-12/work
>>> Compiling source in /var/tmp/portage/sys-devel/autoconf-wrapper-12/work ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-devel/autoconf-wrapper-12

>>> Install autoconf-wrapper-12 into /var/tmp/portage/sys-devel/autoconf-wrapper-12/image/ category sys-devel
>>> Completed installing autoconf-wrapper-12 into /var/tmp/portage/sys-devel/autoconf-wrapper-12/image/


>>> Installing (1 of 11) sys-devel/autoconf-wrapper-12
* checking 8 files for package collisions
>>> Merging sys-devel/autoconf-wrapper-12 to /
--- /usr/
--- /usr/lib64/
--- /usr/lib64/misc/
>>> /usr/lib64/misc/ac-wrapper.sh
--- /usr/bin/
>>> /usr/bin/autoupdate -> ../lib64/misc/ac-wrapper.sh
>>> /usr/bin/autoreconf -> ../lib64/misc/ac-wrapper.sh
>>> /usr/bin/autoconf -> ../lib64/misc/ac-wrapper.sh
>>> /usr/bin/autoscan -> ../lib64/misc/ac-wrapper.sh
>>> /usr/bin/autoheader -> ../lib64/misc/ac-wrapper.sh
>>> /usr/bin/ifnames -> ../lib64/misc/ac-wrapper.sh
>>> /usr/bin/autom4te -> ../lib64/misc/ac-wrapper.sh
>>> sys-devel/autoconf-wrapper-12 merged.

>>> Emerging (2 of 11) sys-devel/automake-wrapper-6
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/sys-devel/automake-wrapper-6/work
>>> Compiling source in /var/tmp/portage/sys-devel/automake-wrapper-6/work ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-devel/automake-wrapper-6

>>> Install automake-wrapper-6 into /var/tmp/portage/sys-devel/automake-wrapper-6/image/ category sys-devel
>>> Completed installing automake-wrapper-6 into /var/tmp/portage/sys-devel/automake-wrapper-6/image/


>>> Installing (2 of 11) sys-devel/automake-wrapper-6
* checking 4 files for package collisions
>>> Merging sys-devel/automake-wrapper-6 to /
--- /usr/
--- /usr/lib64/
--- /usr/lib64/misc/
>>> /usr/lib64/misc/am-wrapper.sh
--- /usr/share/
--- /usr/share/aclocal/
>>> /usr/share/aclocal/.keep_sys-devel_automake-wrapper-0
--- /usr/bin/
>>> /usr/bin/aclocal -> ../lib64/misc/am-wrapper.sh
>>> /usr/bin/automake -> ../lib64/misc/am-wrapper.sh
>>> sys-devel/automake-wrapper-6 merged.

>>> Emerging (3 of 11) sys-devel/m4-1.4.15
* m4-1.4.15.tar.xz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking m4-1.4.15.tar.xz to /var/tmp/portage/sys-devel/m4-1.4.15/work
>>> Source unpacked in /var/tmp/portage/sys-devel/m4-1.4.15/work
>>> Preparing source in /var/tmp/portage/sys-devel/m4-1.4.15/work/m4-1.4.15 ...
* Applying m4-1.4.15-uclibc-sched_param-def.patch ... [ ok ]
* Applying m4-1.4.15-git-version-gen.patch ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-devel/m4-1.4.15/work/m4-1.4.15 ...
* econf: updating m4-1.4.15/build-aux/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating m4-1.4.15/build-aux/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --enable-changeword
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/sys-devel/m4-1.4.15/work/m4-1.4.15':
configure: error: C compiler cannot create executables
See `config.log' for more details.



attach the following file when seeking support:

!!! /var/tmp/portage/sys-devel/m4-1.4.15/work/m4-1.4.15/config.log
* ERROR: sys-devel/m4-1.4.15 failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 85: Called src_configure
* environment, line 1868: Called econf '--enable-changeword'
* phase-helpers.sh, line 467: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of 'emerge --info =sys-devel/m4-1.4.15',
* the complete build log and the output of 'emerge -pqv =sys-devel/m4-1.4.15'.
* The complete build log is located at '/var/tmp/portage/sys-devel/m4-1.4.15/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/m4-1.4.15/temp/environment'.
* S: '/var/tmp/portage/sys-devel/m4-1.4.15/work/m4-1.4.15'

>>> Failed to emerge sys-devel/m4-1.4.15, Log file:

>>> '/var/tmp/portage/sys-devel/m4-1.4.15/temp/build.log'

* Messages for package sys-devel/m4-1.4.15:

* ERROR: sys-devel/m4-1.4.15 failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 85: Called src_configure
* environment, line 1868: Called econf '--enable-changeword'
* phase-helpers.sh, line 467: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of 'emerge --info =sys-devel/m4-1.4.15',
* the complete build log and the output of 'emerge -pqv =sys-devel/m4-1.4.15'.
* The complete build log is located at '/var/tmp/portage/sys-devel/m4-1.4.15/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-devel/m4-1.4.15/temp/environment'.
* S: '/var/tmp/portage/sys-devel/m4-1.4.15/work/m4-1.4.15'

* GNU info directory index is up-to-date.

* IMPORTANT: 2 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.

#255089
text
emerge -av gcc

Переустановить пакет с предварительным запросом и подробным выводом опций сборки.

text
emerge -u gcc

Если доступна новая версия, обновить пакет.

#255093
"Spawn047" написал:
text
CFLAGS="-march=i486 -mtune=genreic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"

Честно говоря, не знаю, как эти опции согласуются :(

Покажите

text

emerge -pv system
#255094
emerge -pv system
(chroot) Gentoo-2012 ~ # emerge -pv system

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] app-arch/xz-utils-5.0.3 USE="nls threads -static-libs" 1
[ebuild R ] sys-devel/gnuconfig-20120116 51 kB
[ebuild R ] app-arch/bzip2-1.0.6-r3 USE="-static -static-libs" 764 k
[ebuild R ] sys-apps/which-2.20 133 kB
[ebuild R ] sys-devel/patch-2.6.1 USE="-static -test" 248 kB
[ebuild R ] sys-apps/texinfo-4.13 USE="nls -static" 1,528 kB
[ebuild R ] virtual/os-headers-0 0 kB
[ebuild R ] virtual/man-0 0 kB
[ebuild R ] sys-apps/less-444 USE="unicode" 496 kB
[ebuild R ] sys-apps/grep-2.9 USE="nls pcre" 1,017 kB
[ebuild R ] sys-apps/kbd-1.15.3 USE="nls" 1,621 kB
[ebuild R ] sys-apps/busybox-1.19.3-r1 USE="ipv6 pam -livecd% -make-symlinks-savedconfig (-selinux) -static" 0 kB
[ebuild R ] sys-apps/net-tools-1.60_p20110409135728 USE="nls -static" 222 kB
[ebuild R ] virtual/shadow-0 0 kB
[ebuild R ] virtual/modutils-0 0 kB
[ebuild R ] sys-apps/gawk-4.0.0 USE="nls readline" 2,016 kB
[ebuild R ] sys-apps/file-5.09 USE="zlib -python -static-libs" 594 k
[ebuild R ] app-arch/tar-1.26 USE="nls -static" 2,285 kB
[ebuild R ] virtual/package-manager-0 0 kB
[ebuild R ] virtual/editor-0 0 kB
[ebuild R ] sys-apps/coreutils-8.14 USE="acl nls unicode -caps -gmp (-selinuxtic -vanilla -xattr" 4,846 kB
[ebuild R ] sys-devel/make-3.82-r1 USE="nls -static" 1,214 kB
[ebuild R ] sys-process/procps-3.2.8_p11 USE="unicode" 375 kB
[ebuild R ] virtual/ssh-0 USE="-minimal" 0 kB
[ebuild R ] virtual/dev-manager-0 0 kB
[ebuild R ] sys-apps/findutils-4.4.2-r1 USE="nls (-selinux) -static" 2,100 kB
[ebuild R ] app-arch/gzip-1.4 USE="nls -pic -static" 887 kB
[ebuild R ] sys-apps/diffutils-3.0 USE="nls -static" 1,782 kB
[ebuild R ] sys-apps/baselayout-2.1-r1 USE="-build" 40 kB
[ebuild R ] virtual/libc-0 0 kB
[ebuild N ] sys-devel/m4-1.4.15 USE="-examples" 0 kB
[ebuild N ] dev-perl/Locale-gettext-1.50.0 0 kB
[ebuild N ] dev-perl/XML-Parser-2.410.0 233 kB
[ebuild R ] sys-apps/sed-4.2.1 USE="acl nls (-selinux) -static" 879 kB
[ebuild R ] sys-apps/util-linux-2.20.1-r1 USE="cramfs crypt ncurses nls unicodate -loop-aes -old-linux -perl (-selinux) -slang -static-libs (-uclibc)" 4,507 kB
[ebuild R ] sys-apps/man-pages-3.38 USE="nls" LINGUAS="-da -de -fr -it -ja -nl-ro -ru -zh_CN" 1,673 kB
[ebuild R ] net-misc/rsync-3.0.9 USE="acl iconv ipv6 -static -xattr" 77
[ebuild R ] net-misc/iputils-20101006-r2 USE="ipv6 ssl -SECURITY_HAZARD -doc -static" 114 kB
[ebuild R ] virtual/pager-0 0 kB
[ebuild N ] sys-devel/autoconf-2.68 USE="-emacs" 0 kB
[ebuild N ] sys-devel/bison-2.4.3 USE="nls -static" 0 kB
[ebuild N ] sys-apps/help2man-1.40.8 USE="nls" 0 kB
[ebuild N ] dev-util/intltool-0.50.2 186 kB
[ebuild N ] sys-devel/automake-1.11.1 0 kB
[ebuild N ] virtual/yacc-0 0 kB
[ebuild R ] app-shells/bash-4.2_p20 USE="net nls -afs -bashlogger -examples -mramble -plugins -vanilla" 6,888 kB
[ebuild N ] sys-devel/libtool-2.4-r1 USE="-test -vanilla" 0 kB
[ebuild R ] sys-process/psmisc-22.14 USE="ipv6 nls -X (-selinux)" 374 k
[ebuild N ] sys-devel/flex-2.5.35_p10 USE="nls -static -test" 1,268 kB
[ebuild R ] sys-devel/binutils-2.21.1-r1 USE="cxx nls zlib -multislot -multitarget -static-libs -test -vanilla" 18,573 kB
[ebuild R ] sys-devel/gcc-4.5.3-r2 USE="cxx fortran mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk (-hardened) (-libssp) -lto -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" 64,862 kB
[ebuild N ] dev-util/gtk-doc-am-1.18 623 kB
[ebuild N ] dev-libs/glib-2.30.3 USE="static-libs -debug -doc (-fam) (-selinux) -systemtap -test -utils -xattr" 5,898 kB
[ebuild N ] dev-util/pkgconfig-0.26 USE="-hardened" 0 kB
[ebuild N ] virtual/pkgconfig-0 0 kB
[ebuild N ] x11-misc/shared-mime-info-1.0 486 kB
[ebuild R ] sys-fs/e2fsprogs-1.42 USE="nls -static-libs" 0 kB
[ebuild R ] net-misc/wget-1.13.4-r1 USE="ipv6 nls ssl -debug -gnutls -idn -ntlm -static" 1,420 kB

Total: 58 packages (16 new, 42 reinstalls), Size of downloads: 132,185 kB

* IMPORTANT: 2 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
#255097

Если планируете в дальнейшем собирать и использовать Gtk-приложения, включите глобально соответствующий флаг.
По уму бы, после изменения CXXFLAGS, систему бы пересобрать, т.е.:

text

emerge -av system

...или хотя бы

text

emerge -auDNv --with-bdeps=y system
#255100
"Lupo Alberto" написал:
По уму бы, после изменения CXXFLAGS, систему бы пересобрать, т.е.:

Не понимаю откуда такие проблемы!!!. Всё делал, до этого момента (7.d. Alternative: Using genkernel) по Handbook. GTK у меня нет.

Мой /etc/make.conf
GNU nano 2.3.1 File: /etc/make.conf

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=i486 -mtune=genreic -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="mmx sse sse2"

GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ [url]ftp://mirror.yandex.ru/gentoo-$[/url]

SYNC="rsync://rsync2.ru.gentoo.org/gentoo-portage"
#255101
"Lupo Alberto" написал:
Честно говоря, не знаю, как эти опции согласуются sad

...и поэтому советую выставить CFLAGS в соответствии с моими рекомендациями. По крайней мере до тех пор, пока вы не станете делать это осознанно.

#255102
"Spawn047" написал:
-mtune=genreic

Должно быть generic

#255104

Что такое sad?

"Lupo Alberto" написал:
...и поэтому советую выставить CFLAGS в соответствии с моими рекомендациями. По крайней мере до тех пор, пока вы не станете делать это осознанно.

Попробую так!

После как изменю CFLAGS, выполнить emerge -av system, а затем можно emerge genkernel?

#255106
"Lupo Alberto" написал:
Должно быть generic

Спасибо!

#255108

Попробуй так:

text
CFLAGS="-march=native -mtune=native -O2 -pipe -g0 -Wno-all -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
#255109
"newzenon" написал:
CFLAGS="-march=native -mtune=native -O2 -pipe -g0 -Wno-all -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

Спасибо! Я уже так сделал:

CFLAGS="-march=native -O2 -pipe"
CXXFLAGS=${CFLAGS}

Щас запустил emerge -av system.

#255110

После emerge -av system, запускать emerge genkernel или ещё надо будет что-то изменить?

#255111
"Spawn047" написал:
После emerge -av system
"Lupo Alberto" написал:
Если планируете в дальнейшем собирать и использовать Gtk-приложения, включите глобально соответствующий флаг.

Покажите потом опять

text

emerge -pv gcc glibc binutils libtool linux-headers
#255112
"Spawn047" написал:
После emerge -av system, запускать emerge genkernel или ещё надо будет что-то изменить?

Он вроде в world входит, не в system, если он установлен зачем еще раз?
Вот я тут немного писал, читай про genkernel

#255118
"Lupo Alberto" написал:
Покажите потом опять

emerge -pv gcc glibc binutils libtool linux-headers
Вывод emerge -pv gcc glibc binutils libtool linux-headers
(chroot) Gentoo-2012 ~ # emerge -pv gcc glibc binutils libtool li

* IMPORTANT: config file '/etc/portage/savedconfig/sys-apps/busybox-1.19.3-rating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-kernel/linux-headers-3.1 4,706 kB
[ebuild R ] sys-devel/libtool-2.4-r1 USE="-test -vanilla" 0 kB
[ebuild R ] sys-devel/binutils-2.21.1-r1 USE="cxx nls zlib -multislot -multitarget -static-libs -test -vanilla" 0 kB
[ebuild R ] sys-devel/gcc-4.5.3-r2 USE="cxx fortran mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk (-hardened) (-libssp) -lto -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" 0 kB
[ebuild R ] sys-libs/glibc-2.14.1-r3 USE="(multilib) -debug -gd (-hardened) -profile (-selinux) -vanilla" 16,059 kB

Total: 5 packages (5 reinstalls), Size of downloads: 20,765 kB

* IMPORTANT: 2 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
#255121

Пересоберите sys-libs/glibc:

text

emerge -1 sys-libs/glibc
#255122
"Lupo Alberto" написал:
Пересоберите sys-libs/glibc:

emerge -1 sys-libs/glibc

Сейчас выполняю.

Что такое sys-libs/glibc? Где почитать можно?

#255126
"Spawn047" написал:
Что такое sys-libs/glibc? Где почитать можно?
text

man glibc
Войдите или зарегистрируйтесь, чтобы ответить.