Gcc bugs break java/jdk15 build? [Workaround]
Michiel Boland
michiel at boland.org
Thu Aug 16 06:52:09 PDT 2007
> I tried already with the gcc 4.2.1 patch from
> (http://people.freebsd.org/~kan/contrib-gcc421.tar.gz),
> but the build also breaks with optimization. (I am not sure, if it was the
> same error) Without optimization it was working.
FWIW the builds succeeds for me if I add -fno-tree-vrp to OPT_CFLAGS:
diff -ur o/jdk15.patches n/jdk15.patches
--- o/jdk15.patches 2007-07-26 18:00:23.000000000 +0200
+++ n/jdk15.patches 2007-08-16 14:12:04.000000000 +0200
@@ -16460,7 +16460,7 @@
+CFLAGS += $(GCC_SAVE_TEMPS)
+
+# The flags to use for an Optimized g++ build
-+OPT_CFLAGS += -O3
++OPT_CFLAGS += -O3 -fno-tree-vrp
+# Hotspot uses very unstrict aliasing turn this optimization off
+OPT_CFLAGS += -fno-strict-aliasing
+
More information about the freebsd-java
mailing list