emerge world media-gfx/inkscape-0.46-r2 does not compile properly Reproducible: Always Steps to Reproduce: 1.emerge media-gfx/inkscape 2. 3. Actual Results: compile error: color-profile.cpp:615: warning: comparison between signed and unsigned integer expressions i686-pc-linux-gnu-g++: Internal error: Killed (program cc1plus) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. i686-pc-linux-gnu-g++: Internal error: Killed (program cc1plus) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. {standard input}: Assembler messages: {standard input}:0: Warning: end of file not at end of a line; newline inserted make[2]: *** [color-profile.o] Error 1 {standard input}:643: Error: suffix or operands invalid for `mov' make[2]: *** Waiting for unfinished jobs.... make[2]: *** [conditions.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-gfx/inkscape-0.46-r2/work/inkscape-0.46/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-gfx/inkscape-0.46-r2/work/inkscape-0.46' make: *** [all] Error 2 * * ERROR: media-gfx/inkscape-0.46-r2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2630: Called gnome2_src_compile * environment, line 1999: Called die * The specific snippet of code: * emake || die "compile failure" * The die message: * compile failure * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/media-gfx:inkscape-0.46-r2:20080806-185249.log'. * The ebuild environment file is located at '/var/tmp/portage/media-gfx/inkscape-0.46-r2/temp/environment'. * Expected Results: compile normal emerge --info Portage 2.1.4.4 (hardened/x86/2.6, gcc-3.4.6, glibc-2.5-r4, 2.6.23-hardened-r11 i686) ================================================================= System uname: 2.6.23-hardened-r11 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Timestamp of tree: Wed, 06 Aug 2008 15:00:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r13, 2.5.2-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 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.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -mmmx -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/xsessions /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -mmmx -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://gentoo.inode.at/source/ http://gentoo.tiscali.nl/gentoo/" LANG="en_US" LC_ALL="" LINGUAS="de en en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /usr/local/overlays/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acpi aim alsa apache2 apm arts async audiofile avi bash-completion berkdb bitmap-fonts blas bonobo bzip2 cairo cdparanoia cdr cracklib crypt cscope cups curl custom-cflags dbus divx4linux dlloader doc dri dvd dvdr dvdread dvi eds emacs emacs-w3 encode esd ethereal evo examples expat f77 faad fam ffmpeg fftw firefox flac font-server foomaticdb fortran fpx gcj gd gdbm gif gimpprint ginac glut gmp gnome gpm graphviz gsl gstreamer gtk gtk2 gtkhtml hardened icq idea idn imagemagick imap imlib imlib2 inkjar ithreads jabber java jpeg jpeg2k junit kde kdeenablefinal lapack latex lcms leim libg++ libgda mad maildir mailwrapper math matroska mbox midi mikmod mmap mmx mmx2 mmxext mng motif mozbranding mp3 mpeg msn mule ncurses nls nptl nptlonly nsplugin oci8 odbc ogg oggvorbis opengl oracle oscar pam pcre pda pdf pdflib perl php pic plotutils plugin png postgres python qt quicktime readline real reflection rtc ruby samba scanner sdl slang smp spell spl sqlite ssl svg t1lib tcltk tcpd test tetex theora thesaurus threads tiff tk truetype truetype-fonts type1-fonts unicode urandom usb vcd vim-syntax vorbis win32codecs wmf x86 xine xml xml2 xorg xv xvid yv12 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB" USERLAND="GNU" VIDEO_CARDS="i810 mga nv" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS gcc --version: gcc (GCC) 3.4.6 (Gentoo Hardened 3.4.6-r2 p1.5, ssp-3.4.6-1.0, pie-8.7.10)
How much RAM does your system have?
top gives: Mem: 506444k total, 499840k used, 6604k free, 64096k buffers Swap: 497972k total, 42284k used, 455688k free, 342676k cached
Could you try with MAKEOPTS=-j1 please? I have plenty of experience building inkscape with just 512MB (which I assume your data represent) while running a desktop on the same system and most of the time I would see memory allocation problems when MAKEOPTS was set to >-j1...
i tried: MAKEOPTS="-j1" emerge -1va =media-gfx/inkscape-0.46-r2 and i've got the same error. What exactly sais this error message: make[2]: {standard input}:701: Error: suffix or operands invalid for `sub'
(In reply to comment #4) > i tried: > MAKEOPTS="-j1" > emerge -1va =media-gfx/inkscape-0.46-r2 > and i've got the same error. > What exactly sais this error message: > make[2]: {standard input}:701: Error: suffix or operands invalid for `sub' What is the output this time? Is it color-profile.cpp that fails again or a different file?
(In reply to comment #5) > (In reply to comment #4) > > i tried: > > MAKEOPTS="-j1" > > emerge -1va =media-gfx/inkscape-0.46-r2 > > and i've got the same error. > > What exactly sais this error message: > > make[2]: {standard input}:701: Error: suffix or operands invalid for `sub' > > What is the output this time? Is it color-profile.cpp that fails again or a > different file? > yes it was the same failure. It was managed to be compiled if it is chosen vanilla compile from gcc-config. However I want to know how different ("unsafe") is when I use vanilla instead hardened gcc-configuration?
Does dmesg give you any relevant output?
(In reply to comment #7) > Does dmesg give you any relevant output? > actually yes. Here a piece of the output: ----------------------------------------------------------------------------- Out of memory: kill process 29241 (cc1plus) score 308200 or a child Killed process 29241 (cc1plus) kdm_greet invoked oom-killer: gfp_mask=0x1201d2, order=0, oomkilladj=0 Pid: 4265, comm: kdm_greet Not tainted 2.6.24-hardened-r3 #3 [<c084d2ce>] oom_kill_process+0x10e/0x120 [<c084d47b>] out_of_memory+0xbb/0x120 [<c084ee2b>] __alloc_pages+0x2bb/0x360 [<c0851b08>] __do_page_cache_readahead+0x108/0x1a0 [<c0851c66>] do_page_cache_readahead+0x46/0x70 [<c084aa8f>] filemap_fault+0x24f/0x380 [<c085a274>] __do_fault+0x64/0x370 [<c085a9d1>] handle_mm_fault+0x211/0x2b0 [<c08166b9>] do_page_fault+0x149/0x640 [<c087a038>] sys_select+0x148/0x1a0 [<c0816570>] do_page_fault+0x0/0x640 [<c0ad64e5>] error_code+0x75/0x80 [<c0ad0000>] xdr_process_buf+0x60/0x1f0 ======================= Mem-info: DMA per-cpu: CPU 0: Hot: hi: 0, btch: 1 usd: 0 Cold: hi: 0, btch: 1 usd: 0 Normal per-cpu: CPU 0: Hot: hi: 186, btch: 31 usd: 178 Cold: hi: 62, btch: 15 usd: 48 Active:60682 inactive:50370 dirty:0 writeback:60 unstable:0 free:1191 slab:2105 mapped:1 pagetables:449 bounce:0 DMA free:2020kB min:88kB low:108kB high:132kB active:4924kB inactive:4576kB present:16256kB pages_scanned:20579 all_unreclaimable? yes lowmem_reserve[]: 0 483 483 483 Normal free:2744kB min:2768kB low:3460kB high:4152kB active:237804kB inactive:196904kB present:495300kB pages_scanned:1008742 all_unreclaimable? yes lowmem_reserve[]: 0 0 0 0 DMA: 1*4kB 2*8kB 1*16kB 20*32kB 17*64kB 2*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2020kB Normal: 28*4kB 1*8kB 0*16kB 0*32kB 1*64kB 2*128kB 1*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 2744kB Swap cache: add 124721, delete 124657, find 162/184, race 0+0 Free swap = 15128kB Total swap = 497972kB Free swap: 15128kB 128896 pages of RAM 0 pages of HIGHMEM 2351 reserved pages 11689 pages shared 64 pages swap cached 0 pages dirty 30 pages writeback 1 pages mapped 2105 pages slab 449 pages pagetables Out of memory: kill process 29249 (cc1plus) score 142192 or a child Killed process 29249 (cc1plus) cc1plus invoked oom-killer: gfp_mask=0x1280d2, order=0, oomkilladj=0 Pid: 5014, comm: cc1plus Not tainted 2.6.24-hardened-r3 #3 [<c084d2ce>] oom_kill_process+0x10e/0x120 [<c084d47b>] out_of_memory+0xbb/0x120 [<c084ee2b>] __alloc_pages+0x2bb/0x360 [<c085a129>] do_anonymous_page+0x49/0x130 [<c085a8d1>] handle_mm_fault+0x111/0x2b0 [<c085d15f>] expand_stack+0x6f/0xb0 [<c08166b9>] do_page_fault+0x149/0x640 [<c0825be5>] __do_softirq+0x75/0xf0 [<c0816570>] do_page_fault+0x0/0x640 [<c0ad64e5>] error_code+0x75/0x80 [<c0ad0000>] xdr_process_buf+0x60/0x1f0 =======================
I suspect hardware, but I do notice that you have it compile fine with a vanilla toolchain.
It's not hardware, its another gcc 3.4.6 SSP on C++ interaction. Similar to bugs 230119 and 230415. Workaround is to use -hardenednossp compiler specs or add "-fno-stack-protector -fno-stack-protector-all" to CXXFLAGS.
(In reply to comment #10) > It's not hardware, its another gcc 3.4.6 SSP on C++ interaction. Similar to > bugs 230119 and 230415. Workaround is to use -hardenednossp compiler specs or > add "-fno-stack-protector -fno-stack-protector-all" to CXXFLAGS. > yes this is how we compile some packages from time to time. The question is where can i find more information about the difference in these compile-options. What risks are hidden there if any.
The bug is not fixed, leave it to the assignee to close.
Seconded.
Created attachment 218969 [details] build log
Notice that 0.46 is not in portage anymore...
(In reply to comment #15) > Notice that 0.46 is not in portage anymore... And hardened gcc-3.x is long gone. This is certainly obsolete.