Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] p7zip-9.13 fails to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Yuu
Apprentice
Apprentice


Joined: 23 Dec 2008
Posts: 223
Location: France

PostPosted: Mon Jul 05, 2010 10:31 am    Post subject: [SOLVED] p7zip-9.13 fails to compile Reply with quote

Hi everyone,

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 :
Quote:
>>> 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 <https://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 <https://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 make.conf :
Quote:
# 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"


My emerge --info
Quote:
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


GCC's configuration seems to be okay :
Quote:
root@nekoserv ~ # gcc-config -l
[1] x86_64-pc-linux-gnu-4.4.3 *


I use default 10.0 profile :
Quote:
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


System logs :
Quote:
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


Additionnal comments :

  • 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


Any help will be greatly appreciated, thank you :)


PS : sorry for my bad english, It's not my native language.
_________________
Main laptop : T8300 cpu | 200 GB hard drive | 2 GB of ram | 8600M GT | Gentoo x86_64
Server : Celeron 220 cpu | 250 GB hard drive | 2 GB of ram | SiS 662 VGA | Gentoo x86_64


Last edited by Yuu on Thu Jul 08, 2010 4:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
Yuu
Apprentice
Apprentice


Joined: 23 Dec 2008
Posts: 223
Location: France

PostPosted: Tue Jul 06, 2010 5:41 pm    Post subject: Reply with quote

Anyone ?

I'm currently re-emerging glibc, and I'm planning to rebuild all my packages with : emerge -ve world.
_________________
Main laptop : T8300 cpu | 200 GB hard drive | 2 GB of ram | 8600M GT | Gentoo x86_64
Server : Celeron 220 cpu | 250 GB hard drive | 2 GB of ram | SiS 662 VGA | Gentoo x86_64
Back to top
View user's profile Send private message
razamatan
Apprentice
Apprentice


Joined: 28 Feb 2003
Posts: 160

PostPosted: Wed Jul 07, 2010 7:53 am    Post subject: Reply with quote

i had compile errors, too, but then i tried re-compiling again, and it was hit or miss that it would succeed for fail. i'm on amd64 with a phenom ii x4 945 cpu, so i was compiling w/ parallel make (-j5)...

i haven't tested since getting a good compile, but you should try compiling w/ -j1 or something to see if serial compilation removes the error. if so, you should file a bug stating that p7zip should force serial make.
_________________
a razamatan doth speaketh,
"Never attribute to malice, that which can be adequately explained by stupidity"
Back to top
View user's profile Send private message
Yuu
Apprentice
Apprentice


Joined: 23 Dec 2008
Posts: 223
Location: France

PostPosted: Wed Jul 07, 2010 2:31 pm    Post subject: Reply with quote

Thank you for your reply razamatan :)

I've just tried with -j1 but it failed again. Beforce that, I sucessfully re-emerged gcc with CFLAGS="-O2 -march=nocona -msse3 -pipe", because I think that's the safest CFLAGS for my little CPU. I removed fomit-frame-pointer because it seems to be enabled on "-O, -O2, -O3, and -Os" (see here) and mfpmath because I learn (see here) it's quite experimental, unstable and sometimes slower. Since I prefer stability over performance on this server in production, theses CFLAGS should be safer :)

[on my laptop]
I'm currently successfully compiling this package on my laptop with :
Code:
CFLAGS="-O2 -march=core2 -msse4.1 -pipe"
MAKEOPTS="-j3 -l3"
EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=3.0 --with-bdeps y"
LDFLAGS="${LDFLAGS} -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both"

[/on my laptop]

And I was too lazy to rebuild all packages (emerge -ve world), so I'm currently rebuilding only the system (emerge -ve system) and I'll see if something fails. Maybe I'll rebuild "world" when I'll get p7zip-9.13 compiling; because at the moment, I haven't emerged this package successfully. I just hope that this bug isn't caused by a weird sporadic hardware issue :roll:
_________________
Main laptop : T8300 cpu | 200 GB hard drive | 2 GB of ram | 8600M GT | Gentoo x86_64
Server : Celeron 220 cpu | 250 GB hard drive | 2 GB of ram | SiS 662 VGA | Gentoo x86_64
Back to top
View user's profile Send private message
Yuu
Apprentice
Apprentice


Joined: 23 Dec 2008
Posts: 223
Location: France

PostPosted: Thu Jul 08, 2010 4:19 pm    Post subject: Reply with quote

Problem solved : I upgraded my hardened kernel from 2.6.28 to 2.6.32, because it was stabilised few days ago. Also, I copied my .config to this new kernel. At first, I didn't want to upgrade my kernel to preserve.. my uptime (lol).

With this new kernel, p7zip is emerging fine now. Great job Gentoo's AMD64 team :D !!

---
PS : maybe someone could try compiling p7zip on 2.6.28 and see if it fails. If so, a notice should be show while emerging this package.
_________________
Main laptop : T8300 cpu | 200 GB hard drive | 2 GB of ram | 8600M GT | Gentoo x86_64
Server : Celeron 220 cpu | 250 GB hard drive | 2 GB of ram | SiS 662 VGA | Gentoo x86_64
Back to top
View user's profile Send private message
ianw1974
Guru
Guru


Joined: 18 Oct 2006
Posts: 387
Location: UK and Poland

PostPosted: Fri Jan 27, 2012 11:09 am    Post subject: Reply with quote

I've recently had this problem, but as I'm using kernel 3.1.6 I didn't think it would be the same resolution.

As it happens, mine was solved simply by:

Code:
revdep-rebuild


which fixed and re-emerged 15 packages. Then when I attempted:

Code:
emerge -uDN world


p7zip installed without problems.
_________________
Ian Walker

Light travels faster than sound. This is why some people appear bright until you hear them speak.........

Linux Systems Limited | Masternode Monitoring
Back to top
View user's profile Send private message
mimosinnet
l33t
l33t


Joined: 10 Aug 2006
Posts: 713
Location: Barcelona, Spain

PostPosted: Tue Apr 29, 2014 3:42 pm    Post subject: Reply with quote

I had the same issue with sys-kernel/hardened-sources-3.13.6-r3. p7zip-9.20.1-r4 emerged with USE="-pch".

Happy gentooing!
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum