Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307549 - dev-java/fec-1.0.3-r1 on Hardened Gentoo fails to compile
Summary: dev-java/fec-1.0.3-r1 on Hardened Gentoo fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Thomas Sachau
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-02 23:20 UTC by Ermanno Baschiera
Modified: 2010-04-11 22:02 UTC (History)
0 users

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


Attachments
build log (build.log,5.16 KB, text/plain)
2010-03-02 23:23 UTC, Ermanno Baschiera
Details
build log (build.log,5.00 KB, text/plain)
2010-03-12 18:34 UTC, Ermanno Baschiera
Details
build log fec 1.0.4 with -O2 (build.log,4.94 KB, text/plain)
2010-03-15 19:23 UTC, Ermanno Baschiera
Details
modified fec-1.0.4 ebuild for testing (fec-1.0.4.ebuild,1.66 KB, text/plain)
2010-03-26 20:27 UTC, Thomas Sachau
Details
build log fec 1.0.4 gcc4 (build.log,5.14 KB, text/plain)
2010-04-03 09:53 UTC, Ermanno Baschiera
Details
build log fec 1.0.4 i686-pc-linux-gnu-3.4.6 (build.log-gcc3,5.20 KB, text/plain)
2010-04-03 09:54 UTC, Ermanno Baschiera
Details
build log fec 1.0.4 i686-pc-linux-gnu-3.4.6-hardenednossp (build.log-gcc3hns,5.20 KB, text/plain)
2010-04-03 09:54 UTC, Ermanno Baschiera
Details
another modified fec-1.0.4.ebuild for testing (fec-1.0.4.ebuild,1.73 KB, text/plain)
2010-04-09 02:01 UTC, Thomas Sachau
Details
another modified fec-1.0.4.ebuild for testing (fec-1.0.4.ebuild,1.68 KB, text/plain)
2010-04-09 22:19 UTC, Thomas Sachau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ermanno Baschiera 2010-03-02 23:20:54 UTC
Trying to emerge, it fails to compile.

Portage 2.1.7.16 (hardened/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.28-hardened-r9 i686)
=================================================================
System uname: Linux-2.6.28-hardened-r9-i686-VIA_Esther_processor_1200MHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 02 Mar 2010 02:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.5.4-r4, 2.6.4
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       3.4.6-r2, 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -mmmx -msse -msse2 -msse3 -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=i686 -mmmx -msse -msse2 -msse3 -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.unina.it/pub/linux/distributions/gentoo  http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ ftp://ftp.unina.it/pub/linux/distributions/gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow acl apache2 berkdb bzip2 cairo cli cracklib crypt ctype cxx diskio dri exif gd gdbm gencertdaily geoip gpm hardened iconv imagemagick imap jpeg lm_sensors maildir mmx modules mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php pic png pop3d pppd python qmail readline reflection session simplexml snmp sockets spl sse sse2 ssl svg sysfs tcpd tokenizer truetype unicode urandom x86 xml xorg 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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="it en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel   mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage         siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware        voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 Ermanno Baschiera 2010-03-02 23:23:13 UTC
Created attachment 221887 [details]
build log
Comment 2 Thomas Sachau gentoo-dev 2010-03-12 15:47:02 UTC
Please try with CFLAGS="-march=i686 -O2" instead
Comment 3 Ermanno Baschiera 2010-03-12 18:34:06 UTC
Created attachment 223309 [details]
build log
Comment 4 Ermanno Baschiera 2010-03-12 18:35:06 UTC
(In reply to comment #2)
> Please try with CFLAGS="-march=i686 -O2" instead
> 

Similar result! :-(
(lines with errors are a little different)
Comment 5 Thomas Sachau gentoo-dev 2010-03-14 16:17:46 UTC
Could you please test with fec-1.0.4, if it gets you the same result?
Comment 6 Ermanno Baschiera 2010-03-15 19:22:25 UTC
(In reply to comment #5)
> Could you please test with fec-1.0.4, if it gets you the same result?
> 

Same result. Sorry!
Comment 7 Ermanno Baschiera 2010-03-15 19:23:41 UTC
Created attachment 223777 [details]
build log fec 1.0.4 with -O2
Comment 8 Thomas Sachau gentoo-dev 2010-03-16 17:05:41 UTC
I dont seem to be able to reproduce your issue, so it might be a bit harder to track and fix it.
Can you try with no LDFLAGS and also, if a different compiler version or disabled pie or ssp support for the compiler does change something (for the first, comment out the LDFLAGS line in /etc/make.conf, for second, choose your compiler with gcc-config)?
Comment 9 Ted Smith 2010-03-17 05:12:28 UTC
This (dev-java/fec-1.0.3-r1) builds successfully for me with CFLAGS="-march=i686 -O2" LDFLAGS="" and the i686-pc-linux-gnu-4.3.4-hardenednopie GCC config. It does not build successfully when using PIE.

dev-java/fec-1.0.4 also fails with or without PIE.
Comment 10 Thomas Sachau gentoo-dev 2010-03-17 18:07:09 UTC
(In reply to comment #9)
> This (dev-java/fec-1.0.3-r1) builds successfully for me with
> CFLAGS="-march=i686 -O2" LDFLAGS="" and the
> i686-pc-linux-gnu-4.3.4-hardenednopie GCC config. It does not build
> successfully when using PIE.
> 
> dev-java/fec-1.0.4 also fails with or without PIE.
> 

Can you compile fec-1.0.3-r1 with only <CFLAGS="-march=i686 -O2" LDFLAGS="">, with only i686-pc-linux-gnu-4.3.4-hardenednopie or do you need both?
Same question for fec-1.0.4
Comment 11 Ermanno Baschiera 2010-03-21 11:00:53 UTC
(In reply to comment #10)
> 
> Can you compile fec-1.0.3-r1 with only <CFLAGS="-march=i686 -O2" LDFLAGS="">,
> with only i686-pc-linux-gnu-4.3.4-hardenednopie or do you need both?
> Same question for fec-1.0.4
> 

I can compile fec-1.0.3-r1 only with i686-pc-linux-gnu-4.3.4-hardenednopie. CFLAGS and LDFLAGS are not important (I mean: I can leave them with my options or with those you suggested. It works on both setups).
I can't compile fec-1.0.4 with any combination.
Comment 12 Thomas Sachau gentoo-dev 2010-03-26 20:27:31 UTC
Created attachment 225371 [details]
modified fec-1.0.4 ebuild for testing

Could you try the attached ebuild locally and tell me, if that works?
Comment 13 Ermanno Baschiera 2010-03-29 19:05:52 UTC
(In reply to comment #12)
> Created an attachment (id=225371) [details]
> modified fec-1.0.4 ebuild for testing
> 
> Could you try the attached ebuild locally and tell me, if that works?
> 
Hi,
you ebuild works! ...only if I use i686-pc-linux-gnu-4.3.4-hardenednopie.
Thanks
Comment 14 Thomas Sachau gentoo-dev 2010-03-31 16:46:42 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Created an attachment (id=225371) [details] [details]
> > modified fec-1.0.4 ebuild for testing
> > 
> > Could you try the attached ebuild locally and tell me, if that works?
> > 
> Hi,
> you ebuild works! ...only if I use i686-pc-linux-gnu-4.3.4-hardenednopie.
> Thanks
> 

So what is your build.log with default hardened compiler?

If you have the old gcc-3 around, could you also test with that?
Comment 15 Ermanno Baschiera 2010-04-03 09:52:44 UTC
(In reply to comment #14)
> 
> So what is your build.log with default hardened compiler?
> 
> If you have the old gcc-3 around, could you also test with that?
> 

Hi,
I attached my build.log.

I also tested emerging with i686-pc-linux-gnu-3.4.6, but it failed (build.log-gcc3 attached). Failed also with i686-pc-linux-gnu-3.4.6-hardenednossp (build.log-gcc3hns).
With i686-pc-linux-gnu-3.4.6-hardenednopie, i686-pc-linux-gnu-3.4.6-hardenednopiessp it emerged fine.

I left my CFLAGS untouched.
Comment 16 Ermanno Baschiera 2010-04-03 09:53:37 UTC
Created attachment 226367 [details]
build log fec 1.0.4 gcc4
Comment 17 Ermanno Baschiera 2010-04-03 09:54:17 UTC
Created attachment 226369 [details]
build log fec 1.0.4 i686-pc-linux-gnu-3.4.6
Comment 18 Ermanno Baschiera 2010-04-03 09:54:46 UTC
Created attachment 226371 [details]
build log fec 1.0.4 i686-pc-linux-gnu-3.4.6-hardenednossp
Comment 19 Thomas Sachau gentoo-dev 2010-04-09 02:01:38 UTC
Created attachment 227067 [details]
another modified fec-1.0.4.ebuild for testing

Could you test this ebuild?
Comment 20 Ermanno Baschiera 2010-04-09 07:32:56 UTC
(In reply to comment #19)
> Created an attachment (id=227067) [details]
> another modified fec-1.0.4.ebuild for testing
> 
> Could you test this ebuild?
> 

It works!!!!
On gcc-4 and gcc-3 too.
I'd set this to FIXED.
Comment 21 Thomas Sachau gentoo-dev 2010-04-09 22:18:49 UTC
(In reply to comment #20)
> (In reply to comment #19)
> > Created an attachment (id=227067) [details] [details]
> > another modified fec-1.0.4.ebuild for testing
> > 
> > Could you test this ebuild?
> > 
> 
> It works!!!!
> On gcc-4 and gcc-3 too.
> I'd set this to FIXED.
> 

That ebuild contained a workaround, which results in textrels, so i would like you to test the new attachment too.
Comment 22 Thomas Sachau gentoo-dev 2010-04-09 22:19:10 UTC
Created attachment 227183 [details]
another modified fec-1.0.4.ebuild for testing
Comment 23 Ermanno Baschiera 2010-04-09 23:18:39 UTC
(In reply to comment #22)
> Created an attachment (id=227183) [details]
> another modified fec-1.0.4.ebuild for testing
> 

It works! I tested gcc-4 and gcc-3.
Comment 24 Thomas Sachau gentoo-dev 2010-04-10 00:13:26 UTC
fec-1.0.4-r1 should contain a fix, please test and report back
Comment 25 Ermanno Baschiera 2010-04-11 20:22:41 UTC
(In reply to comment #24)
> fec-1.0.4-r1 should contain a fix, please test and report back
> 

Confirmed: it works on both gcc's.