(Device @ Воскресенье, 06 Марта 2005, 23:35) писал(а):2 /bin/ladin:
плохо читали.
Да, лажанулся

Тут на вдумчивое чтение, к сожалению, отнюдь не так много времени отпущено, приходится буквой Z

Сегодня ещё раз просмотрел, вроде повнимательней. Ткните же носом, что я не доделал!!
Главное, природа этой ерунды непонятна, жалобы на g++/c++.
Короче бутстрап прошёл, но проблема осталась.
Делал так:
Код: Выделить всё
#/etc/make.conf
CFLAGS="-O2 -march=pentium4 -mtune=pentium4 -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
ARCH="x86"
ACCEPT_KEYWORDS="~x86"
MAKEOPTS="-j2"
FEATURES="-sandbox sfperms"
RC_DEVICES="udev"
USE="nptl nptlonly etc............"
#end of /etc/make.conf
cd /etc
rm -f make.profile
ln -s ../usr/portage/profiles/default-linux/x86/2005.0 make.profile
echo "virtual/dev-manager sys-fs/udev" >> /etc/make.profile/virtuals
echo "virtual/linux-sources sys-kernel/gentoo-dev-sources" >> /etc/make.profile/virtuals
echo "virtual/kernel sys-kernel/linux26-headers" >> /etc/make.profile/virtuals
echo "virtual/os-headers sys-kernel/linux26-headers" >> /etc/make.profile/virtuals
#Собрал и установил gcc-3.4.3, в обход portage-db:
USE="-* bootstrap build fortran gcj objc" emerge --nodeps -B gcc &&
tar -xjf /usr/portage/packages/All/gcc-3.4.3.20050110.tbz2 -C / &&
gcc-config 2 && env-update && source /etc/profile &&
cd /usr/portage && scripts/bootstrap.sh
Не знаю, зачем перед бутстрапом вляпывать linux26-headers, когда они и так первым делом ставятся. Сомневаюсь, что --nodeps здесь рояль какую играет. По крайней мере у меня что так, что эдак одна байда выходила.
Перед бутстрапом добавил флаг build в bootstrap.sh в следующие строки:
export USE="${ORIGUSE} build bootstrap ${STAGE1_USE}" (после чего перестало требоваться это libart_lgpl)
и
export USE="build ${ORIGUSE}" (в самом конце, где ncurses пересобираются, иначе вываливаются в процессе компиляции с жалобой на c++)
ncurses собирается с флагами build, bootstrap, build bootstrap. Без как минимум одного из них НЕ собирается.
В процессе ./configure ругань опять же на c++ у groff и libart_lgpl
"Логи":
[ebuild R ] sys-libs/ncurses-5.4-r5 -bootstrap* -build* -debug +doc +gpm -nocxx (-uclibc) +unicode 0 kB
DHAVE_CONFIG_H -I. -I../include -D_GNU_SOURCE -DNDEBUG -O3 -march=pentium4 -mtune=pentium4 -mcpu=pentium4 -fomit-frame-pointer
-pipe -fPIC -fPIC
gcc -O3 -march=pentium4 -mtune=pentium4 -mcpu=pentium4 -fomit-frame-pointer -pipe -fPIC -o xmas ../obj_s/xmas.o -L../lib -lformw -lmenuw -lpanelw -lncursesw -lgpm -lncurses -Wl,-rpath,/var/tmp/portage/ncurses-5.4-r5/work/ncurses-5.4/lib -I../test -I. -DHAVE_CONFIG_H -I. -I../include -D_GNU_SOURCE -DNDEBUG -O3 -march=pentium4 -mtune=pentium4 -mcpu=pentium4 -fomit-frame-pointer
-pipe -fPIC -fPIC
make[1]: Leaving directory `/var/tmp/portage/ncurses-5.4-r5/work/ncurses-5.4/test'
cd misc && make DESTDIR="" all
make[1]: Entering directory `/var/tmp/portage/ncurses-5.4-r5/work/ncurses-5.4/misc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/ncurses-5.4-r5/work/ncurses-5.4/misc'
cd c++ && make DESTDIR="" all
make[1]: Entering directory `/var/tmp/portage/ncurses-5.4-r5/work/ncurses-5.4/c++'
cd ../obj_s; -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include -D_GNU_SOURCE -DNDEBUG -O3 -march=pentium4 -mtune=pentium4 -mcpu=pentium4 -fomit-frame-pointer -pipe -fPIC -fPIC -c ../c++/cursesf.cc
/bin/sh: -I../c++: No such file or directory
make[1]: *** [../obj_s/cursesf.o] Error 127
make[1]: Leaving directory `/var/tmp/portage/ncurses-5.4-r5/work/ncurses-5.4/c++'
make: *** [all] Error 2
!!! ERROR: sys-libs/ncurses-5.4-r5 failed.
!!! Function src_compile, Line 77, Exitcode 2
!!! make failed
[ebuild N ] sys-apps/groff-1.19.1-r2 +X -debug 0 kB
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for i686-pc-linux-gnu-g++... g++
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking that C++ compiler can compile simple program... no
configure: error: a working C++ compiler is required
[ebuild N ] media-libs/libart_lgpl-2.3.17 -debug 0 kB
checking for dlfcn.h... yes
checking for i686-pc-linux-gnu-g++... no
checking for i686-pc-linux-gnu-c++... no
checking for i686-pc-linux-gnu-gpp... no
checking for i686-pc-linux-gnu-aCC... no
checking for i686-pc-linux-gnu-CC... no
checking for i686-pc-linux-gnu-cxx... no
checking for i686-pc-linux-gnu-cc++... no
checking for i686-pc-linux-gnu-cl... no
checking for i686-pc-linux-gnu-FCC... no
checking for i686-pc-linux-gnu-KCC... no
checking for i686-pc-linux-gnu-RCC... no
checking for i686-pc-linux-gnu-xlC_r... no
checking for i686-pc-linux-gnu-xlC... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/libart_lgpl-2.3.17/work/libart_lgpl-2.3.17/config.log
!!! ERROR: media-libs/libart_lgpl-2.3.17 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
Так в чём же причина сей оказии с c++??
p.s. CXX="всякая_разная_всячина" тоже пробовал..
В мануалах ну не нашёл ничего!!..
pps Спасибо за внимание а, главное, терпенье :megalol: :megalol:
Просто обидно, отступать не хоцца :thumbsup:
"Лишь две вещи поражают меня: звёздное небо надо мною и нравственный закон внутри меня." (Иммануил Кант)