From owner-freebsd-ppc@freebsd.org Fri May 3 16:14:04 2019 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73935159482A for ; Fri, 3 May 2019 16:14:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 175D27714E for ; Fri, 3 May 2019 16:14:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id E2A0CE3F8; Fri, 3 May 2019 16:14:03 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id DE3AFE3F7 for ; Fri, 3 May 2019 16:14:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 79F707714D for ; Fri, 3 May 2019 16:14:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 9F4FD10937 for ; Fri, 3 May 2019 16:14:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x43GE2sQ028136 for ; Fri, 3 May 2019 16:14:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x43GE2XQ028135 for powerpc@FreeBSD.org; Fri, 3 May 2019 16:14:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 237208] java/openjdk11: port to powerpc64 Date: Fri, 03 May 2019 16:14:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hamiltcl@verizon.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: 175D27714E X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.979,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 May 2019 16:14:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237208 --- Comment #42 from Curtis Hamilton --- (In reply to Francis Little from comment #41) I encountered the following error during my build: Compiling management_ext.c (for libmanagement_ext.so) In file included from /usr/ports/tmp/openjdk-jdk11u/src/jdk.management/bsd/native/libmanagement_e= xt/UnixOperatingSystem.c:29: /usr/include/sys/sysctl.h:1047:25: error: unknown type name 'u_int'; did you mean 'jint'? int sysctl(const int *, u_int, void *, size_t *, const void *, size_t); ^~~~~ jint cd /usr/ports/tmp/openjdk-jdk11u/build/bsd-ppc64-normal-server-release/support= /modules_libs/jdk.management.agent && /usr/bin/objcopy --add-gnu-debuglink=3D/usr/ports/tmp/openjdk-jdk11u/build/bsd-ppc64-normal-= server-release/support/modules_libs/jdk.management.agent/libmanagement_agen= t.debuginfo /usr/ports/tmp/openjdk-jdk11u/build/bsd-ppc64-normal-server-release/support= /modules_libs/jdk.management.agent/libmanagement_agent.so /usr/ports/tmp/openjdk-jdk11u/src/jdk.management/bsd/native/libmanagement_e= xt/UnixOperatingSystem.c: In function 'Java_com_sun_management_internal_OperatingSystemImpl_getProcessCpuLoad0': /usr/ports/tmp/openjdk-jdk11u/src/jdk.management/bsd/native/libmanagement_e= xt/UnixOperatingSystem.c:111:9: warning: implicit declaration of function 'sysctl'; did you mean 'syscall'? [-Wimplicit-function-declaration] if (sysctl(mib, 4, &kp, &len, NULL, 0) =3D=3D -1) { ^~~~~~ syscall /usr/bin/strip -g /usr/ports/tmp/openjdk-jdk11u/build/bsd-ppc64-normal-server-release/support= /modules_libs/jdk.management.agent/libmanagement_agent.so gmake[3]: *** [Lib-jdk.management.gmk:49:=20 To get pass this I added "sys/types.h" to UnixOperatingSystem.c, before sys/sysctl.h. Not sure this is the right fix, but it lets me get pass this error to completion. I configured using '--with-boot-jdk=3D/usr/local/openjdk11 --disable-ccache --enable-dtrace=3Dno --disable-warnings-as-errors --disable-hotspot-gtest --with-alsa=3D/usr/local --with-cups=3D/usr/local --with-fontconfig=3D/usr/= local --with-freetype=3Dsystem --with-freetype-include=3D/usr/local/include/freet= ype2 --with-freetype-lib=3D/usr/local/lib --with-milestone=3Dfcs --with-libjpeg= =3Dsystem --with-giflib=3Dsystem --with-libpng=3Dsystem --with-zlib=3Dsystem --with-l= cms=3Dsystem --with-toolchain-type=3Dgcc --x-includes=3D/usr/local/include --x-libraries=3D/usr/local/lib --with-debug-level=3Drelease' --=20 You are receiving this mail because: You are on the CC list for the bug.=