Bug 194988 - java/openjdk8 doesn't compile on FreeBSD 8.4
Summary: java/openjdk8 doesn't compile on FreeBSD 8.4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Jung-uk Kim
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-13 09:40 UTC by Jens Grassel
Modified: 2014-11-20 04:41 UTC (History)
2 users (show)

See Also:
freebsd-ports: maintainer-feedback? (java)


Attachments
Port patch (650 bytes, patch)
2014-11-19 13:34 UTC, Jimmy Kelley
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Grassel 2014-11-13 09:40:54 UTC
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
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-11-13 09:40:54 UTC
Auto-assigned to maintainer java@FreeBSD.org
Comment 2 Jimmy Kelley 2014-11-19 13:34:51 UTC
Created attachment 149585 [details]
Port patch

Try this patch.
Comment 3 Jens Grassel 2014-11-19 19:46:29 UTC
Hi,

I can confirm that the port compiles using this patch on 8.4.

Thanks for your work,

Jens
Comment 4 Jung-uk Kim freebsd_committer freebsd_triage 2014-11-19 19:58:25 UTC
I'll take it.
Comment 5 commit-hook freebsd_committer freebsd_triage 2014-11-20 04:37:35 UTC
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