Во время установки системы gcc не находит cc1
alex2312 7 июля, 2016 - 10:30
Устанавливаю систему по хендбуку, при установке gentoo-sources:
(chroot) Gentoo-2012 / # emerge -av gentoo-sources * IMPORTANT: 8 news items need reading for repository 'gentoo'. * Use eselect news read to view new items. * Last emerge --sync was 50d 3h 59m 43s ago. These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sys-devel/bc-1.06.95-r2::gentoo USE="readline -libedit -static" 0 KiB [ebuild N ] sys-kernel/gentoo-sources-4.6.0:4.6.0::gentoo USE="symlink -build -experimental -kdbus" 0 KiB Total: 2 packages (2 new), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No] ^[[A^[[B Sorry, response '' not understood. [Yes/No] yes >>> Verifying ebuild manifests >>> Emerging (1 of 2) sys-devel/bc-1.06.95-r2::gentoo openpty failed: 'out of pty devices' * bc-1.06.95.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking bc-1.06.95.tar.bz2 to /var/tmp/portage/sys-devel/bc-1.06.95-r2/work >>> Source unpacked in /var/tmp/portage/sys-devel/bc-1.06.95-r2/work >>> Preparing source in /var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95 ... * Applying bc-1.06.95-void_uninitialized.patch ... [ ok ] * Applying bc-1.06.95-mem-leak.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95 ... ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --libdir=/usr/lib --with-readline --without-libedit checking for a BSD-compatible install... /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c checking whether build environment is sane... yes checking for gawk... gawk 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... configure: error: C compiler cannot create executables See `config.log' for more details. !!! Please attach the following file when seeking support: !!! /var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95/config.log * ERROR: sys-devel/bc-1.06.95-r2::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 133: Called src_configure * environment, line 2245: Called econf '--with-readline' '--without-libedit' * phase-helpers.sh, line 662: Called __helpers_die 'econf failed' * isolated-functions.sh, line 117: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=sys-devel/bc-1.06.95-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-devel/bc-1.06.95-r2::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-devel/bc-1.06.95-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/bc-1.06.95-r2/temp/environment'. * Working directory: '/var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95' * S: '/var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95' >>> Failed to emerge sys-devel/bc-1.06.95-r2, Log file: >>> '/var/tmp/portage/sys-devel/bc-1.06.95-r2/temp/build.log' * Messages for package sys-devel/bc-1.06.95-r2: * ERROR: sys-devel/bc-1.06.95-r2::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 133: Called src_configure * environment, line 2245: Called econf '--with-readline' '--without-libedit' * phase-helpers.sh, line 662: Called __helpers_die 'econf failed' * isolated-functions.sh, line 117: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=sys-devel/bc-1.06.95-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-devel/bc-1.06.95-r2::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-devel/bc-1.06.95-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/bc-1.06.95-r2/temp/environment'. * Working directory: '/var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95' * S: '/var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95'
в config.log:
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by bc configure 1.06.95, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --libdir=/usr/lib --with-readline --without-libedit ## --------- ## ## Platform. ## ## --------- ## hostname = Gentoo-2012 uname -m = i686 uname -r = 3.3.0-gentoo uname -s = Linux uname -v = #1 SMP Fri Mar 30 06:21:45 UTC 2012 /usr/bin/uname -p = Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/lib/portage/python3.4/ebuild-helpers/xattr PATH: /usr/lib/portage/python3.4/ebuild-helpers PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /opt/bin PATH: /usr/i686-pc-linux-gnu/gcc-bin/4.9.3 ## ----------- ## ## Core tests. ## ## ----------- ## configure:1357: checking for a BSD-compatible install configure:1412: result: /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c configure:1423: checking whether build environment is sane configure:1466: result: yes configure:1531: checking for gawk configure:1547: found /usr/bin/gawk configure:1557: result: gawk configure:1567: checking whether make sets $(MAKE) configure:1587: result: yes configure:1784: checking for i686-pc-linux-gnu-gcc configure:1800: found /usr/bin/i686-pc-linux-gnu-gcc configure:1810: result: i686-pc-linux-gnu-gcc configure:2092: checking for C compiler version configure:2095: i686-pc-linux-gnu-gcc --version &5 i686-pc-linux-gnu-gcc (Gentoo 4.9.3 p1.5, pie-0.6.4) 4.9.3 Copyright (C) 2015 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. configure:2098: $? = 0 configure:2100: i686-pc-linux-gnu-gcc -v &5 Using built-in specs. COLLECT_GCC=/usr/i686-pc-linux-gnu/gcc-bin/4.9.3/i686-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-linux-gnu/4.9.3/lto-wrapper Target: i686-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.9.3 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.9.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.9.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.9.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.9.3/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.9.3/include/g++-v4 --with-python-dir=/share/gcc-data/i686-pc-linux-gnu/4.9.3/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.9.3 p1.5, pie-0.6.4' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-altivec --disable-fixed-point --with-arch=i686 --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --enable-vtable-verify --enable-libvtv --enable-lto --without-cloog --enable-libsanitizer Thread model: posix gcc version 4.9.3 (Gentoo 4.9.3 p1.5, pie-0.6.4) configure:2103: $? = 0 configure:2105: i686-pc-linux-gnu-gcc -V &5 i686-pc-linux-gnu-gcc: error: unrecognized command line option '-V' i686-pc-linux-gnu-gcc: fatal error: no input files compilation terminated. configure:2108: $? = 1 configure:2131: checking for C compiler default output file name configure:2134: i686-pc-linux-gnu-gcc -O2 -pipe -fomit-frame-pointer -march=native -mtune=native -Wl,-O1 -Wl,--as-needed conftest.c >&5 i686-pc-linux-gnu-gcc: error trying to exec 'cc1': execvp: No such file or directory configure:2137: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "bc" | #define PACKAGE_TARNAME "bc" | #define PACKAGE_VERSION "1.06.95" | #define PACKAGE_STRING "bc 1.06.95" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "bc" | #define VERSION "1.06.95" | #define DC_VERSION "1.3.95" | #define BC_COPYRIGHT "Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc." | #define DC_COPYRIGHT "Copyright 1994, 1997, 1998, 2000, 2001, 2004, 2005, 2006 Free Software Foundation, Inc." | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2176: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-O2 -pipe -fomit-frame-pointer -march=native -mtune=native' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--as-needed' ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=i686-pc-linux-gnu ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=i686-pc-linux-gnu ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_path_install='/usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c' ac_cv_prog_AWK=gawk ac_cv_prog_CC=i686-pc-linux-gnu-gcc ac_cv_prog_make_make_set=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95/missing --run aclocal-1.9' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='${SHELL} /var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95/missing --run tar' AUTOCONF='${SHELL} /var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95/missing --run autoconf' AUTOHEADER='${SHELL} /var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95/missing --run autoheader' AUTOMAKE='${SHELL} /var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95/missing --run automake-1.9' AWK='gawk' BC_VERSION='' CC='i686-pc-linux-gnu-gcc' CCDEPMODE='' CFLAGS='-O2 -pipe -fomit-frame-pointer -march=native -mtune=native' CPP='' CPPFLAGS='' CYGPATH_W='echo' DC_VERSION='' DEFS='' DEPDIR='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s' LDFLAGS='-Wl,-O1 -Wl,--as-needed' LEX='' LEXLIB='' LEX_OUTPUT_ROOT='' LIBOBJS='' LIBS='' LTLIBOBJS='' MAKEINFO='${SHELL} /var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95/missing --run makeinfo' OBJEXT='' PACKAGE='bc' PACKAGE_BUGREPORT='' PACKAGE_NAME='bc' PACKAGE_STRING='bc 1.06.95' PACKAGE_TARNAME='bc' PACKAGE_VERSION='1.06.95' PATH_SEPARATOR=':' RANLIB='' READLINELIB='' SET_MAKE='' SHELL='/bin/bash' STRIP='' VERSION='1.06.95' YACC='' ac_ct_CC='' ac_ct_RANLIB='' ac_ct_STRIP='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__include='' am__leading_dot='.' am__quote='' am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' bindir='${exec_prefix}/bin' build_alias='i686-pc-linux-gnu' datadir='/usr/share' exec_prefix='NONE' host_alias='i686-pc-linux-gnu' includedir='${prefix}/include' infodir='/usr/share/info' install_sh='/var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95/install-sh' libdir='/usr/lib' libexecdir='${exec_prefix}/libexec' localstatedir='/var/lib' mandir='/usr/share/man' mkdir_p='mkdir -p --' oldincludedir='/usr/include' prefix='/usr' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define BC_COPYRIGHT "Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc." #define DC_COPYRIGHT "Copyright 1994, 1997, 1998, 2000, 2001, 2004, 2005, 2006 Free Software Foundation, Inc." #define DC_VERSION "1.3.95" #define PACKAGE "bc" #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "bc" #define PACKAGE_STRING "bc 1.06.95" #define PACKAGE_TARNAME "bc" #define PACKAGE_VERSION "1.06.95" #define VERSION "1.06.95" configure: exit 77
Т.е. как я понимаю, компилятор не находит cc1. На другом компьютере все ставилось без проблем. Как вылечить?
make.conf:
# These settings were set by the catalyst build script that automatically # built this stage. # Please consult /etc/make.conf.example for a more detailed example. CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native" CXXFLAGS="${CFLAGS}" # 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="i686-pc-linux-gnu" MAKEOPTS="-j3" ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="*" USE="symlink X -gnome qt4 qt5 qt3support alsa svg -gtk jpeg jpeg2k tiff \ djvu png truetype cairo -cups opengl wmf mp3 x264 xvid \ xulrunner fuse avahi automount glitz xcb ldap pam winbind samba \ kde wav sip mdnsresponder-compat dns pipechan nas -hal \ -pulseaudio semantic-desktop -lffi dvd mpeg mad wxwindows aac \ dts a52 ogg flac theora oggvorbis matroska freetype bidi xv \ gnutls stream vlm httpd cdda vcd cdio live v4l2 unicode \ minizip upcall bindlist fbcondecor lua -consolekit -systemd tk upower \ semantic-desktop -nepomuk dbus udisksdvd cdr xattr \ acl aio client netapi readline server smbclient zeroconf \ ipv6 libmount nfsidmap nfsv4 uuid " CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" VIDEO_CARDS="fbdev vesa intel" LINGUAS="ru" FEATURES="splitdebug" # distcc" CCACHE_SIZE="2G" CCACHE_DIR="/var/tmp/ccache" PORTDIR="/usr/portage" ALSA_CARDS="intel7x0" LC_MESSAGES="ru_RU.utf8"
результат gcc-config -l:
[1] i686-pc-linux-gnu-4.9.3 *
В чем же все таки проблема?
»
- Для комментирования войдите или зарегистрируйтесь
В системе
1. В системе (что-то криво поставлено... это виртуалка/контейнер?):
2. Тебя же просили:
3. Права и свободное место на диске.
4. Возможно неправильная/обломаная установка/обновление
gcc
- тут очень важно точно следовать документации, особенно когда несовсем понимаешь, что делаешь!1. Устанавливаю через
1. Устанавливаю через livedvd. Stage3 пробовал как последний, так и от 17-05-2016.
2.
3.Места 70Гб использовано 3%
права, все открыто:
4. Делаю все последовательно, gcc не трогал, как он может быть ломаным?
alex2312 написал(а):1.
Попробуй с SRCD
Отключи барьеры, покажи
df -i
, права на/usr/portage
,/var/tmp/*
, поскольку права на '/' вообще не в тему! :)Да запросто! Места не хватило, среда не прописана и пр. Точно по https://wiki.gentoo.org/wiki/Handbook:Main_Page делал?!..
.
:wq
--
Live free or die
Рекомендуемый источник понимания
/dev/brain
?.. ;)SysA написал(а): Anarchist
mount: /dev/brain: No such file or directory
Сочувствую! :(
Сочувствую!.. :)
.
Несамодостаточно!
RTFM(«синдром Маугли»)!
:wq
--
Live free or die
Цитата: Ты хоть понимаешь,
Это было взято из конфига с другого компа, на котором все собралось нормально. Первоначально же было установлено ~x86 и результат был тот же, ставил х86 - ничего не менялось
/mnt/gentoo - корень
/var - папка в корне, а не отдельный раздел
И как отключаются барьеры? Монтирую так:
Ещё вопрос: с чем связан
Ещё вопрос: с чем связан выбор 32-битной системы? Ведь процессор вполне себе 64-бит.
Не кроется ли тут загвоздка наподобие выбора 64-битного stage3 (какой использован, мы пока не знаем) и попытки сборки под x86?
Ставил
Ставил stage3-i686-20160517.tar.bz2.
Это для совместимости с другой 32-ой системой.
Проблема решена. Установку
Проблема решена. Установку произвел через SRCD, установил барьеры примонтированных разделов в 0.
Спасибо за помощь!