LINUX.ORG.RU

Ответ на: Re: gcc: Internal error: Segmentation fault (program cc1) от mv

Re: gcc: Internal error: Segmentation fault (program cc1)

gentoo ~ # emerge gcc
Calculating dependencies ... done!
>>> starting parallel fetching

>>> Emerging (1 of 2) sys-devel/gcc-config-1.4.0-r4 to /

>>> checking ebuild checksums ;-)

>>> checking auxfile checksums ;-)

>>> checking miscfile checksums ;-)

>>> Unpacking source...

>>> Source unpacked.

>>> Compiling source in /var/tmp/portage/gcc-config-1.4.0-r4/work ...

i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe wrapper.c -o wrapper
i686-pc-linux-gnu-gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/>; for instructions.
make: *** [wrapper] Error 1

!!! ERROR: sys-devel/gcc-config-1.4.0-r4 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
gcc-config-1.4.0-r4.ebuild, line 29: Called die

!!! compile wrapper
!!! If you need support, post the topmost build error, and the call stack if relevant.

Error in sys.exitfunc:


Как решить?

Solker ()
Ответ на: Re: gcc: Internal error: Segmentation fault (program cc1) от Solker

Re: gcc: Internal error: Segmentation fault (program cc1)

gate ~ # emerge --info
Portage 2.1-r2 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.18-gentoo-r5 i686)
=================================================================
System uname: 2.6.18-gentoo-r5 i686 Intel(R) Celeron(R) CPU 1.70GHz
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
app-shells/bash: 3.1_p16
dev-java/java-config: [Not Present]
dev-lang/python: 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.3
dev-util/confcache: [Not Present]
sys-apps/baselayout: 1.12.1
sys-apps/openrc: [Not Present]
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg candy distlocks metadata-transfer nodoc noinfo parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS=" http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.supp.name/";
LANG="ru_RU.KOI8-R"
LINGUAS="ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

gentoo ~ # cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 1
model name : Intel(R) Celeron(R) CPU 1.70GHz
stepping : 3
cpu MHz : 1700.068
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm up
bogomips : 3402.80

Он ничего не может собрать.
Пытался emerge links

configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/links-2.1/work/links-2.1/config.log

!!! ERROR: www-client/links-2.1 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
links-2.1.ebuild, line 96: Called econf '--without-x' '--without-libpng' '--without-libjpeg' '--without-libtiff' '--without-svgalib' '--without-directfb' '--with-ssl' '--without-sdl' '--with-zlib' '--without-bzip2' '--without-fb'
ebuild.sh, line 541: Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Как решить данную проблему?

Solker ()

Re: gcc: Internal error: Segmentation fault (program cc1)

Файлик назвать hello.cpp компилять g++ ?

imp ★★ ()

Re: gcc: Internal error: Segmentation fault (program cc1)

> #include <iostream.h>

O_O

> void main()

O_O

>> cout << "Hello Pokemons!";

O_O

sig_wall ()

Re: gcc: Internal error: Segmentation fault (program cc1)

а у тебя тачка вообще здорова? Память проверь. Впрочем, вижу у тебя гента, может ты ось просто раздраконил?

true_admin ★★★★★ ()
Ответ на: Re: gcc: Internal error: Segmentation fault (program cc1) от Solker

Re: gcc: Internal error: Segmentation fault (program cc1)

ну может при обновлении revdep-rebuild не запускал итп вот gcc и глючит. В общем, начни с memtest. И пересобери зависимости gcc вместе с ним(можно перетащить пакеты с другой тачки если компилер вообще не пашет).

true_admin ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.