Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268299 - dev-java/gnu-classpath-0.97.2-r1 fails due to -Werror
Summary: dev-java/gnu-classpath-0.97.2-r1 fails due to -Werror
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-02 15:13 UTC by David Pyke
Modified: 2010-03-21 21:02 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Pyke 2009-05-02 15:13:06 UTC
compilation fails due to gcc-4.4.0's strict aliasing requirements.

Reproducible: Always

Actual Results:  
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -I../../../native/jni/classpath -I../../../native/jni/native-lib -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Wstrict-prototypes -pedantic -Werror -O2 -march=native -pipe -c cpnet.c  -fPIC -DPIC -o .libs/cpnet.o                                                                                         
cc1: warnings being treated as errors                                                                                                        
cpnet.c: In function 'cpnet_addMembership':                                                                                                  
cpnet.c:583: error: dereferencing type-punned pointer will break strict-aliasing rules                                                       
cpnet.c: In function 'cpnet_dropMembership':                                                                                                 
cpnet.c:598: error: dereferencing type-punned pointer will break strict-aliasing rules                                                       
make[3]: *** [cpnet.lo] Error 1
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2009-05-02 22:53:58 UTC
compilation fails due to the use of -Werror, which is bad in general.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2009-07-14 21:40:50 UTC
0.98 does not use -Werror any more. Keeping this open until old slots are gone.
Comment 3 Andrew John Hughes 2010-01-28 01:17:57 UTC
There is an option --disable-Werror to pass to configure to fix this.
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-03-21 21:02:20 UTC
(In reply to comment #3)
> There is an option --disable-Werror to pass to configure to fix this.
> 

Seems it was applied in all ebuilds already, including the one in summary:

  14 Jul 2009; Andrew John Hughes <ahughes@redhat.com> gnu-classpath-0.97-r2.ebuild, gnu-classpath-0.98.ebuild:
        Disable -Werror to allow builds with GCC 4.4.