Summary: | =dev-java/icedtea-7.2.1 fails to build with gcc 4.7: all warnings being treated as errors | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Philipp Richter <richterphilipp.pops> |
Component: | [OLD] Java | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | flameeyes, floppym, jakub.daniel, kredba, kuba.iluvatar, patrizio.bassi, voyageur, xaviermiller |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 260867, 390247 | ||
Attachments: |
the build.log
build.log of =dev-java/icedtea-7.2.2 from java-overlay Disable -Werror on Linux builds Disables -Werror fo Linux builds - bootstrap patch |
Description
Philipp Richter
2012-05-31 11:57:54 UTC
Please try 7.2.2 from java-overlay which contains some fixes for gcc-4.7. Thanks. (In reply to comment #1) > Please try 7.2.2 from java-overlay which contains some fixes for gcc-4.7. > Thanks. Thanks. I emerged 7.2.2 from java-overlay: emerge -pv =dev-java/icedtea-7.2.2 These are the packages that would be merged, in order: Calculating dependencies ... done! [ebuild U ] dev-java/icedtea-7.2.2::java-overlay [7.2.1::gentoo] USE="X alsa cups jbootstrap nsplugin nss pulseaudio source systemtap webstart -cjk -debug -doc -examples -javascript -pax_kernel -test" 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB But I still get the same error as before. I append the build.log. Created attachment 313735 [details]
build.log of =dev-java/icedtea-7.2.2 from java-overlay
I tried now, are you intersted in complete build log? Thank you. -cut- Compiling /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/gc_implementation/g1/g1ErgoVerbose.cpp rm -f g1ErgoVerbose.o x86_64-pc-linux-gnu-g++ -DLINUX -D_GNU_SOURCE -DAMD64 -DPRODUCT -I. -I/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/prims -I/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm -I/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/precompiled -I/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/cpu/x86/vm -I/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/os_cpu/linux_x86/vm -I/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/os/linux/vm -I/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"23.0-b21\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"root\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -O2 -pipe -ggdb -march=native -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64 -pipe -g -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fpic -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m64 -pipe -g -O3 -fno-strict-aliasing -g -DVM_LITTLE_ENDIAN -D_LP64=1 -fno-omit-frame-pointer -DINCLUDE_TRACE -Werror -Wpointer-arith -Wsign-compare -c -MMD -MP -MF ../generated/dependencies/g1ErgoVerbose.o.d -o g1ErgoVerbose.o /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/gc_implementation/g1/g1ErgoVerbose.cpp In file included from /usr/include/string.h:642:0, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp:35, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/utilities/globalDefinitions.hpp:33, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/utilities/debug.hpp:29, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/runtime/globals.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/memory/allocation.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/memory/iterator.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/memory/genOopClosures.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/oops/klass.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/runtime/handles.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/code/oopRecorder.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/asm/assembler.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/precompiled/precompiled.hpp:29: In function 'void* memset(void*, int, size_t)', inlined from 'void G1BlockOffsetSharedArray::_ZN24G1BlockOffsetSharedArray16set_offset_arrayEmmh.isra.72(unsigned char*, size_t, size_t, unsigned char)' at /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.hpp:169:52, inlined from 'void G1BlockOffsetArray::set_remainder_to_point_to_start_incl(size_t, size_t)' at /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.cpp:195:67, inlined from 'void G1BlockOffsetArray::_ZN18G1BlockOffsetArray31set_remainder_to_point_to_startEP8HeapWordS1_.part.81(HeapWord*, HeapWord*)' at /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.cpp:168:61, inlined from 'void G1BlockOffsetArray::set_remainder_to_point_to_start(HeapWord*, HeapWord*)' at /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.cpp:369:1, inlined from 'void G1BlockOffsetArray::alloc_block_work2(HeapWord**, size_t*, HeapWord*, HeapWord*)' at /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.cpp:510:53, inlined from 'HeapWord* G1BlockOffsetArray::forward_to_block_containing_addr_slow(HeapWord*, HeapWord*, const void*)' at /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.cpp:394:59: /usr/include/bits/string3.h:82:32: error: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror] /usr/include/bits/string3.h:82:32: error: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror] /usr/include/bits/string3.h:82:32: error: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror] /usr/include/bits/string3.h:82:32: error: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror] /usr/include/bits/string3.h:82:32: error: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror] /usr/include/bits/string3.h:82:32: error: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror] cc1plus: all warnings being treated as errors make[7]: *** [g1BlockOffsetTable.o] Error 1 make[7]: *** Waiting for unfinished jobs.... make[7]: Leaving directory `/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk.build-boot/hotspot/outputdir/linux_amd64_compiler2/product' make[6]: *** [the_vm] Error 2 make[6]: Leaving directory `/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk.build-boot/hotspot/outputdir/linux_amd64_compiler2/product' make[5]: *** [product] Error 2 make[5]: Leaving directory `/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk.build-boot/hotspot/outputdir' make[4]: *** [generic_build2] Error 2 make[4]: Leaving directory `/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/make' make[3]: *** [product] Error 2 make[3]: Leaving directory `/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot/hotspot/make' make[2]: *** [hotspot-build] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot' make[1]: *** [build_product_image] Error 2 make[1]: Leaving directory `/var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk-boot' make: *** [stamps/icedtea-boot.stamp] Error 2 * ERROR: dev-java/icedtea-7.2.2 failed (compile phase): *** Bug 419161 has been marked as a duplicate of this bug. *** *** Bug 420703 has been marked as a duplicate of this bug. *** I'm having a similar issue with gcc-4.6 because I have -Wall in my CFLAGS so that portage can pick up various QA violations. I would greatly appreciate it if you could disable -Werror in the build system. Otherwise, I will need to have a separate set of CFLAGS for icedtea. Seems this bug hit me too on my AMD64 with gcc-4.7.0 and icedtea-7.2.2. In file included from /usr/include/string.h:642:0, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp:35, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/utilities/globalDefinitions.hpp:33, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/utilities/debug.hpp:29, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/runtime/globals.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/memory/allocation.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/memory/iterator.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/memory/genOopClosures.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/oops/klass.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/runtime/handles.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/code/oopRecorder.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/asm/assembler.hpp:28, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/precompiled/precompiled.hpp:29, from /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.cpp:25: In function 'void* memset(void*, int, size_t)', inlined from 'void G1BlockOffsetSharedArray::_ZN24G1BlockOffsetSharedArray16set_offset_arrayEmmh.isra.72(unsigned char*, size_t, size_t, unsigned char)' at /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.hpp:169:52, inlined from 'void G1BlockOffsetArray::set_remainder_to_point_to_start_incl(size_t, size_t)' at /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.cpp:195:67, inlined from 'void G1BlockOffsetArray::_ZN18G1BlockOffsetArray31set_remainder_to_point_to_startEP8HeapWordS1_.part.81(HeapWord*, HeapWord*)' at /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.cpp:168:61, inlined from 'void G1BlockOffsetArray::set_remainder_to_point_to_start(HeapWord*, HeapWord*)' at /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.cpp:369:1, inlined from 'void G1BlockOffsetArray::alloc_block_work2(HeapWord**, size_t*, HeapWord*, HeapWord*)' at /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.cpp:510:53, inlined from 'HeapWord* G1BlockOffsetArray::forward_to_block_containing_addr_slow(HeapWord*, HeapWord*, const void*)' at /var/tmp/portage/dev-java/icedtea-7.2.2/work/icedtea-2.2/openjdk/hotspot/src/share/vm/gc_implementation/g1/g1BlockOffsetTable.cpp:394:59: /usr/include/bits/string3.h:82:32: error: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror] /usr/include/bits/string3.h:82:32: error: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror] /usr/include/bits/string3.h:82:32: error: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror] /usr/include/bits/string3.h:82:32: error: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror] /usr/include/bits/string3.h:82:32: error: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror] /usr/include/bits/string3.h:82:32: error: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [-Werror] cc1plus: all warnings being treated as errors make[7]: *** [g1BlockOffsetTable.o] Error 1 This problem is not on my x86 P3. Created attachment 315173 [details, diff]
Disable -Werror on Linux builds
Unsetting this WARNINGS_ARE_ERRORS variable allows compilation on amd64/gcc-4.7 (it may be worth unsetting it in other *.make files) Bug is still present with gcc-4.7.1 . Tried to let the ebuild apply the patch but the matching file seems to be only in src_compile phase extracted or generated. Created attachment 315529 [details, diff]
Disables -Werror fo Linux builds - bootstrap patch
This is most likely not the correct/portable way to patch the build system, but it should work. For hardened there is still a patch needed to unset mprotect on openjdk.build/bin/java. Why is this still UNCONFIRMED? Will the ebuild be updated so that people do not have to patch it manually? (In reply to comment #14) > Why is this still UNCONFIRMED? Will the ebuild be updated so that people do > not have to patch it manually? My question as well, especially given it was initially reported over two weeks ago and there have been several duplicate reports linked to this thread. I too, got hit with this bug on my ~amd64 laptop when I recompiled my system with gcc-4.7.1 yesterday. Only this and subversion failed to emerge. (In reply to comment #15) Relax guys, it is just a status code. This bug is still evident in the newest version in portage icedtea-7.2.2.1 It's the same issue, warnings are being treated as errors and the build crashes. My emerge info for my ~amd64 laptop: Portage 2.2.0_alpha110 (default/linux/amd64/10.0/desktop/kde, gcc-4.7.1, glibc-2.15-r2, 3.4.2-pf x86_64) ================================================================= System uname: Linux-3.4.2-pf-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.1 Timestamp of tree: Thu, 21 Jun 2012 06:45:01 +0000 app-shells/bash: 4.2_p29 dev-java/java-config: 2.1.12 dev-lang/python: 2.7.3-r2, 3.2.3-r1 dev-util/cmake: 2.8.8-r3 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.10.3 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.11.5, 1.12.1 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.6.3, 4.7.1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.4 (virtual/os-headers) sys-libs/glibc: 2.15-r2 Repositories: gentoo sunrise sabayon my_local_overlay Installed sets: @gst-plugins, @tool-chain ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="!* /etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb" CONFIG_PROTECT_MASK="!* /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=3 --with-bdeps=y --keep-going --complete-graph --load-average=9" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs candy collision-protect config-protect-if-modified distlocks fixlafiles multilib-strict news parallel-fetch parallel-install parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe -march=native" GENTOO_MIRRORS="http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.wetzlmayr.com/ http://osmirrors.cerias.purdue.edu/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.hoobly.com/ ftp://gentoo.imj.fr/pub/gentoo/ http://130.59.10.35/ftp/mirror/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US" MAKEOPTS="-j3 -s" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/sabayon /usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X a52 aac aacplus aacs aalib acl acpi alsa amd64 amr analitza ass attica avahi berkdb bidi bittorrent bluetooth bluray branding bzip2 cairo cdda cddb cdio cdr chm cli consolekit contrast corefonts cracklib crypt cups curl cxx dbus declarative designer-plugin desktopglobe dirac djvu dri dts dv dvd dvdr ebook emboss emovix encode exif faac faad fam fbcondecor fbsplash ffmpeg firefox fits flac fontconfig fortran g3dvl gdbm gif gimp glibc-omitfp gnutls gphoto2 groupwise gstreamer hdri http httpd iconv ieee1394 imagemagick imlib indi ipv6 java javascript jbig jpeg jpeg2k kde kipi lame latex lcms ldap lensfun libass libnotify libsamplerate live lm_sensors lzma lzo mad matroska mdnsresponder-compat meanwhile mjpeg mms mmx mng modplug modules mp3 mp4 mpeg msn mudflap multilib musepack musicbrainz ncurses nls nptl nsplugin ntp nvidia offensive offlinehelp ogg openal opencl openexr opengl openmp oscar otr pam pango pcre pdf phonon plasma png policykit postproc ppds pppd ps python3 qalculate qt3support qt4 quicktime qwt rdesktop readline rtsp samba scanner schroedinger scim sdl semantic-desktop session skype smp sms sndfile solver soup sox spell sqlite sse sse2 ssl ssse3 startup-notification svg symlink taglib tcpd templates theora thumbnail tidy tiff truetype twolame udev udisks unicode upnp upower usb vcd vcdx vlm vnc vorbis vpx wavpack webpresence wicd wifi winpopup wmf wxwidgets x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="hda-intel" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON I tried to apply the patches, but I failed somehow. I used this as workaround: find . -type f -name Makefile -exec sed -i 's/-Werror//g' {} \; find . -type f -name *.gmk -exec sed -i 's/-Werror//g' {} \; find . -type f -name *.make -exec sed -i 's/-Werror//g' {} \; in /var/tmp/portage/dev-java/icedtea-7.2.2.1/work/icedtea-2.2.1. It seems to be building till now. -Werror located in files by find . -type f -exec grep -H Werror {} \; (In reply to comment #9) > Created attachment 315173 [details, diff] [details, diff] > Disable -Werror on Linux builds Hello, This patch fixed the problem for me. Can someone please guide me as to how to use these patches or how to use method in comment #18 to get this to build. I'm having no success properly applying the patches in my overlay. Thanks in advance. (In reply to comment #20) > Can someone please guide me as to how to use these patches or how to use > method in comment #18 to get this to build. I'm having no success properly > applying the patches in my overlay. Thanks in advance. Hello, As user patches are not activated, you need to - copy dev-java/icedtea to your local overlay - get attachment 315529 [details, diff] to dev-java/icedtea/files - edit the ebuild to add the patch (search the "epatch" lines, and add one line) HTH Openjdk itself already has some handling of Werror but was lacking a few bits. Now made Werror a configure option in 7.2.2.1 and disabled it by default and so building with gcc-4.7 should finally be possible. Thanks for all user support provided in here for early adopters of gcc-4.7. Much appreciated. 27 Jun 2012; Ralph Sennhauser <sera@gentoo.org> icedtea-7.2.2.1.ebuild, +files/icedtea-7.2.2.1-warnings_are_errors.patch: Make werror a configure option and disable it so icedtea 7 can be built using gcc 4.7. #310503 #418359 Many thanks to the various people providing support in #418359 *** Bug 423765 has been marked as a duplicate of this bug. *** |