Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249234 - sys-devel/libperl-5.8.8-r2 CFLAGS=-ftree-parallelize-loops=4 -
Summary: sys-devel/libperl-5.8.8-r2 CFLAGS=-ftree-parallelize-loops=4 -
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-29 08:33 UTC by Devin Cofer
Modified: 2008-12-02 00:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log for failed compile. (build.log,39.31 KB, text/plain)
2008-11-29 08:34 UTC, Devin Cofer
Details
Build log for failed compile with no ithreads USE flag. (build.log,35.82 KB, text/plain)
2008-11-29 16:32 UTC, Devin Cofer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Cofer 2008-11-29 08:33:17 UTC
emerging sys-devel/libperl-5.8.8-r2 fails with the CFLAG 'parallelize-loops=4'. Removing said CFLAG allows successful compile.

Reproducible: Always

Steps to Reproduce:
1. Set the CFLAG 'parallelize-loops=4'.
2. emerge sys-devel/libperl-5.8.8-r2.
Actual Results:  
Compile aborts with errors.

Expected Results:  
libperl compiles successfully.

emerge --info:

Portage 2.2_rc16 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27.07-std113-amd64 x86_64)
=================================================================
System uname: Linux-2.6.27.07-std113-amd64-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Thu, 27 Nov 2008 17:05:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.0-r1
sys-apps/openrc:     0.3.0.20081113-r2
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.63
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -fomit-frame-pointer -ftree-parallelize-loops=4 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -fomit-frame-pointer -ftree-parallelize-loops=4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch prelink preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox webrsync-gpg"
GENTOO_MIRRORS="ftp://mirror.rit.edu/gentoo "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j5"
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"
SYNC="rsync://mirror.rit.edu/gnetoo-portage"
USE="acl acpi amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm glibc-omitfp gpm hashstyle iconv ipv6 isdnlog ithreads midi mmx mmxext mudflap multilib multitarget ncurses nls nptl nptlonly ntpl ntplonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 sse3 ssl ssse3 sysfs tcpd threads 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="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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Devin Cofer 2008-11-29 08:34:08 UTC
Created attachment 173728 [details]
Build log for failed compile.
Comment 2 Devin Cofer 2008-11-29 08:43:09 UTC
Oops, forgot to add, disabling Perl threads (USE="-ithreads") does not fix the issue.
Comment 3 Devin Cofer 2008-11-29 16:31:16 UTC
(In reply to comment #2)
> Oops, forgot to add, disabling Perl threads (USE="-ithreads") does not fix the
> issue.
> 

OK, more info. Disabling ithreads DOES change the error. I'll post the non-ithreads build.log.
Comment 4 Devin Cofer 2008-11-29 16:32:15 UTC
Created attachment 173779 [details]
Build log for failed compile with no ithreads USE flag.
Comment 5 Devin Cofer 2008-11-29 17:22:21 UTC
Sorry, more info. perl also fails compiling with errors with that CFLAG. Same errors as already posted.
Comment 6 Wormo (RETIRED) gentoo-dev 2008-11-30 07:34:04 UTC
This optimization is still pretty new to gcc, and has known bugs in gcc 4.3.2. I see other reports in the gcc bugzilla that look similar to each of your failures; one will be fixed in gcc 4.4.0, and the other is still open.

Thanks for bothering to report this issue with full build logs etc, but I think the toolchain maintainers will just recommend turning the optimization off as not stable enough. If you are interested in trying to help this feature become more stable, you could try again with a gcc 4.4.0 snapshot (e.g. from dirtyepic's overlay http://overlays.gentoo.org/dev/dirtyepic/browser/sys-devel/gcc) and file a bug report with gcc if the optimization is still broken:
http://gcc.gnu.org/bugzilla
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2008-12-02 00:50:20 UTC
yeah, sorry to be obvious here, but if it hurts when you do that, don't do it. :P