Hi, I just tried to compile the latest java/openjdk8 port on a server running 8.4-RELEASE-p19 and it breaks with the following error message: Compiling /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/prims/jni.cpp cc1plus: warnings being treated as errors /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/classfile/javaClasses.cpp: In function 'int merge_bci_and_version(int, int)': /usr/ports/java/openjdk8/work/openjdk/hotspot/src/share/vm/classfile/javaClasses.cpp:1245: warning: comparison between signed and unsigned integer expressions /usr/ports/java/openjdk8/work/openjdk/hotspot/make/bsd/makefiles/rules.make:149: recipe for target 'javaClasses.o' failed gmake[6]: *** [javaClasses.o] Error 1 gmake[6]: *** Waiting for unfinished jobs.... % uname -a FreeBSD waltam.wegtam.com 8.4-RELEASE-p19 FreeBSD 8.4-RELEASE-p19 #0: Mon Nov 3 17:12:38 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 The gcc from ports is version 4.8.3_2, the gcc from system is 4.2.1. Regards, Jens
Auto-assigned to maintainer java@FreeBSD.org
Created attachment 149585 [details] Port patch Try this patch.
Hi, I can confirm that the port compiles using this patch on 8.4. Thanks for your work, Jens
I'll take it.
A commit references this bug: Author: jkim Date: Thu Nov 20 04:37:21 UTC 2014 New revision: 372834 URL: https://svnweb.freebsd.org/changeset/ports/372834 Log: - Add an empty directory to plist to fix staging. - Fix build for 8.x on amd64. [1] - Use tar(1) to extract all distfiles. [2] PR: 194988 [1] Submitted by: Mikhail T. (mi at aldan dot algebra dot com) [2] Changes: head/java/openjdk8/Makefile head/java/openjdk8/files/patch-bsd