UPDATE : p7zip-4.65-r1 successfully compiles and p7zip-9.13 fails (on my server).
UPDATE2 : I recompiled sys-devel/gcc-4.4.3-r2, but p7zip-9.13 still fails.
UPDATE3 : I tried using this gcc (before, I backuped all my gcc files, with tar and $(qlist sys-devel/gcc)), but unsuccessfully : it still fails.
I also tried changing my CFLAGS to "-O2 -march=nocona -msse3 -mfpmath=sse -fomit-frame-pointer -pipe", but I remains the same.
since I have a quite slow CPU on my server, I update my system very often (about every 2 days or so), without any crashes, since today : p7zip failed to emerge and here is the log :
My make.conf :>>> Source prepared.
>>> Configuring source in /home/.portage_tmpdir/portage/app-arch/p7zip-9.13/work/p7zip_9.13 ...
>>> Source configured.
>>> Compiling source in /home/.portage_tmpdir/portage/app-arch/p7zip-9.13/work/p7zip_9.13 ...
make -j2 all3
mkdir -p bin
make -C CPP/7zip/Bundles/Alone all
mkdir -p bin
make -C CPP/7zip/Bundles/SFXCon all
make[1]: entrant dans le répertoire « /home/.portage_tmpdir/portage/app-arch/p7zip-9.13/work/p7zip_9.13/CPP/7zip/Bundles/Alone »
rm -f StdAfx.h.gch
x86_64-pc-linux-gnu-g++ -m64 -O2 -march=core2 -pipe -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -DBREAK_HANDLER -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows ../../../myWindows/StdAfx.h -o StdAfx.h.gch
make[1]: entrant dans le répertoire « /home/.portage_tmpdir/portage/app-arch/p7zip-9.13/work/p7zip_9.13/CPP/7zip/Bundles/SFXCon »
rm -f StdAfx.h.gch
x86_64-pc-linux-gnu-g++ -m64 -O2 -march=core2 -pipe -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -DEXTRACT_ONLY -DNO_READ_FROM_CODER -D_SFX -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows ../../../myWindows/StdAfx.h -o StdAfx.h.gch
x86_64-pc-linux-gnu-g++ -m64 -O2 -march=core2 -pipe -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -DBREAK_HANDLER -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows ../../../myWindows/myGetTickCount.cpp
x86_64-pc-linux-gnu-g++ -m64 -O2 -march=core2 -pipe -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -DEXTRACT_ONLY -DNO_READ_FROM_CODER -D_SFX -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows ../../../myWindows/myGetTickCount.cpp
x86_64-pc-linux-gnu-g++ -m64 -O2 -march=core2 -pipe -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -DBREAK_HANDLER -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows ../../../myWindows/wine_date_and_time.cpp
x86_64-pc-linux-gnu-g++ -m64 -O2 -march=core2 -pipe -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -DEXTRACT_ONLY -DNO_READ_FROM_CODER -D_SFX -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows ../../../myWindows/wine_date_and_time.cpp
x86_64-pc-linux-gnu-g++ -m64 -O2 -march=core2 -pipe -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -DBREAK_HANDLER -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows ../../../myWindows/myAddExeFlag.cpp
x86_64-pc-linux-gnu-g++ -m64 -O2 -march=core2 -pipe -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -DEXTRACT_ONLY -DNO_READ_FROM_CODER -D_SFX -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows ../../../myWindows/mySplitCommandLine.cpp
x86_64-pc-linux-gnu-g++ -m64 -O2 -march=core2 -pipe -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -DBREAK_HANDLER -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows ../../../myWindows/mySplitCommandLine.cpp
x86_64-pc-linux-gnu-g++ -m64 -O2 -march=core2 -pipe -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -DEXTRACT_ONLY -DNO_READ_FROM_CODER -D_SFX -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows Main.cpp
x86_64-pc-linux-gnu-g++: Erreur internal error: Erreur de segmentation (programme cc1plus)
SVP soumettre un rapport complet d'anomalies.
Consulter <http://bugs.gentoo.org/> pour les instructions.
make[1]: *** [Main.o] Erreur 1
make[1]: quittant le répertoire « /home/.portage_tmpdir/portage/app-arch/p7zip-9.13/work/p7zip_9.13/CPP/7zip/Bundles/SFXCon »
make: *** [sfx] Erreur 2
x86_64-pc-linux-gnu-g++ -m64 -O2 -march=core2 -pipe -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -DBREAK_HANDLER -DUNICODE -D_UNICODE -c -I. -I../../../myWindows -I../../../ -I../../../include_windows ../../UI/Console/BenchCon.cpp
make: *** Attente des tâches non terminées....
x86_64-pc-linux-gnu-g++: Erreur internal error: Erreur de segmentation (programme cc1plus)
SVP soumettre un rapport complet d'anomalies.
Consulter <http://bugs.gentoo.org/> pour les instructions.
make[1]: *** [BenchCon.o] Erreur 1
make[1]: *** Attente des tâches non terminées....
make[1]: quittant le répertoire « /home/.portage_tmpdir/portage/app-arch/p7zip-9.13/work/p7zip_9.13/CPP/7zip/Bundles/Alone »
make: *** [7za] Erreur 2
* ERROR: app-arch/p7zip-9.13 failed:
* compilation error
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 2440: Called die
* The specific snippet of code:
* emake all3 || die "compilation error";
My emerge --info# These settings were set by the catalyst build script that automatically buil0 Please consult /etc/make.conf.example for a more detailed example
# Flags
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
# Main
AUTOCLEAN="yes"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/"
MAKEOPTS="-j2" # don't limit load avg
PORTAGE_TMPDIR="/home/.portage_tmpdir" # set portage tmpdir
USE="-X mmx multilib netboot sse sse2 sse3 -gtk -sdl"
# Features & misc
FEATURES="-sandbox -parallel-fetch" # set some features
LINGUAS="fr" # set lang
NOCOLOR="false" # enable emerge color
PORTAGE_NICENESS="19" # emerge run wh low priority
# Apache
APACHE2_MODULES="alias auth_basic authn_file authz_default authz_host authz_user autoindex dir filter headers log_config mime mime_magic negotiation rewrite status userdir vhost_alias"
GCC's configuration seems to be okay :Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.28-hardened-r9 x86_64)
=================================================================
System uname: Linux-2.6.28-hardened-r9-x86_64-Intel-R-_Celeron-R-_CPU_220_@_1.20GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 05 Jul 2010 01:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash: 4.0_p37
dev-lang/python: 2.6.5-r2, 3.1.2-r3
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.65
sys-devel/automake: 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/.portage_tmpdir"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses netboot nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 sse3 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic authn_file authz_default authz_host authz_user autoindex dir filter headers log_config mime mime_magic negotiation rewrite status userdir vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
I use default 10.0 profile :root@nekoserv ~ # gcc-config -l
[1] x86_64-pc-linux-gnu-4.4.3 *
System logs :root@nekoserv ~ # eselect profile list
Available profile symlink targets:
[1] default/linux/amd64/10.0 *
[2] default/linux/amd64/10.0/desktop
[3] default/linux/amd64/10.0/desktop/gnome
[4] default/linux/amd64/10.0/desktop/kde
[5] default/linux/amd64/10.0/developer
[6] default/linux/amd64/10.0/no-multilib
[7] default/linux/amd64/10.0/server
[8] hardened/linux/amd64/10.0
[9] hardened/linux/amd64/10.0/no-multilib
[10] selinux/2007.0/amd64
[11] selinux/2007.0/amd64/hardened
[12] selinux/v2refpolicy/amd64
[13] selinux/v2refpolicy/amd64/desktop
[14] selinux/v2refpolicy/amd64/developer
[15] selinux/v2refpolicy/amd64/hardened
[16] selinux/v2refpolicy/amd64/server
Additionnal comments :root@nekoserv ~ # tail -n5 /var/log/messages
Jul 5 12:18:58 nekoserv kernel: cc1plus[29959]: segfault at 3181c5b33810 ip 0000000000a2ed20 sp 00007722af0fec58 error 4 in cc1plus[400000+885000]
Jul 5 12:18:58 nekoserv kernel: grsec: From 139.124.14.122: signal 11 sent to /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/cc1plus[cc1plus:29959] uid/euid:0/0 gid/egid:0/0, parent /usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3/x86_64-pc-linux-gnu-g++[x86_64-pc-linux:29958] uid/euid:0/0 gid/egid:0/0
Jul 5 12:18:58 nekoserv kernel: grsec: From 139.124.14.122: signal 11 sent to /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/cc1plus[cc1plus:29962] uid/euid:0/0 gid/egid:0/0, parent /usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3/x86_64-pc-linux-gnu-g++[x86_64-pc-linux:29961] uid/euid:0/0 gid/egid:0/0
Jul 5 12:18:58 nekoserv kernel: cc1plus[29962]: segfault at 34529a2de710 ip 0000000000a2ed20 sp 00007e7ab1fdb418 error 4 in cc1plus[400000+885000]
Jul 5 12:18:58 nekoserv kernel: grsec: From 139.124.14.122: signal 11 sent to /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/cc1plus[cc1plus:29962] uid/euid:0/0 gid/egid:0/0, parent /usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3/x86_64-pc-linux-gnu-g++[x86_64-pc-linux:29961] uid/euid:0/0 gid/egid:0/0
- Last month, I've run a cpuburn and a memtest without any crashes.
- Others packages are compiling without any crashes
- I tried re-compiling app-arch/unrar without a crash
- I don't use ccache on my server
- I've successfully emerged this package (same version) on my laptop without error
PS : sorry for my bad english, It's not my native language.


