NetBSD Problem Report #52356
From bjjl@hermes.lorenz.place Sun Jul 2 08:22:13 2017
Return-Path: <bjjl@hermes.lorenz.place>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 64C527A104
for <gnats-bugs@gnats.NetBSD.org>; Sun, 2 Jul 2017 08:22:13 +0000 (UTC)
Message-Id: <20170702082210.A0F102523A@hermes.lorenz.place>
Date: Sun, 2 Jul 2017 10:22:10 +0200 (CEST)
From: ben@pocket.services
To: gnats-bugs@NetBSD.org
Subject: lang/openjdk8 needs clang compiler
X-Send-Pr-Version: 3.95
>Number: 52356
>Category: pkg
>Synopsis: lang/openjdk8 needs clang compiler
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 02 08:25:00 +0000 2017
>Last-Modified: Mon Jul 03 14:00:01 +0000 2017
>Originator: Benjamin Lorenz
>Release: NetBSD 8.99.1
>Organization:
>Environment:
System: NetBSD hermes.lorenz.place 8.99.1 NetBSD 8.99.1 (RPI2) #1: Sat Jul 1 14:10:03 CEST 2017 bjjl@hermes.lorenz.place:/home/bjjl/obj/sys/arch/evbarm/compile/RPI2 evbarm
Architecture: earmv7hf
Machine: evbarm
>Description:
Compilation fails at
/home/bjjl/current/pkgsrc/lang/openjdk8/work/openjdk/hotspot/src/os_cpu/bsd_zero/v
m/os_bsd_zero.cpp:64:10: error: function returns address of local variable [-Werro
r=return-local-addr]
return dummy;
^
/home/bjjl/current/pkgsrc/lang/openjdk8/work/openjdk/hotspot/src/os_cpu/bsd_zero/v
m/os_bsd_zero.cpp:63:11: note: declared here
address dummy = (address) &dummy;
^
cc1plus: all warnings being treated as errors
make[6]: *** [os_bsd_zero.o] Error 1
Using clang from pkgsrc the package builds successfully.
This holds for my RPI2, not sure about other platforms.
>How-To-Repeat:
>Fix:
>Audit-Trail:
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/52356: lang/openjdk8 needs clang compiler
Date: Mon, 3 Jul 2017 15:26:17 +0200
On Sun, Jul 02, 2017 at 08:25:01AM +0000, ben@pocket.services wrote:
> >Description:
> Compilation fails at
>
> /home/bjjl/current/pkgsrc/lang/openjdk8/work/openjdk/hotspot/src/os_cpu/bsd_zero/v
> m/os_bsd_zero.cpp:64:10: error: function returns address of local variable [-Werro
> r=return-local-addr]
> return dummy;
> ^
> /home/bjjl/current/pkgsrc/lang/openjdk8/work/openjdk/hotspot/src/os_cpu/bsd_zero/v
> m/os_bsd_zero.cpp:63:11: note: declared here
> address dummy = (address) &dummy;
That should be using logic similar to the end of patch-bi.
Joerg
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/52356: lang/openjdk8 needs clang compiler
Date: Mon, 3 Jul 2017 08:26:23 -0500 (CDT)
On Sun Jul 02 08:25:00 +0000 2017, Benjamin Lorenz <ben@pocket.services>
writes:
> System: NetBSD hermes.lorenz.place 8.99.1 NetBSD 8.99.1 (RPI2) #1: Sat Jul 1 14:10:03 CEST 2017 bjjl@hermes.lorenz.place:/home/bjjl/obj/sys/arch/evbarm/compile/RPI2 evbarm
> Architecture: earmv7hf
> Machine: evbarm
[...]
> This holds for my RPI2, not sure about other platforms.
As a datapoint, lang/openjdk8 (pkgsrc-2017Q1) builds just fine with GCC
5.4 on i386 and amd64 8.0_BETA and 8.99.1 (and with GCC 4.8.5 on i386
and amd64 7.1_STABLE)
My only ARM system at the moment is BeagleBone Green, but my intended
use case does not include openjdk8, so I cannot say whether it exhibits
the reported problem.
I have not tried to build openjdk8 on sparc64 at all so I cannot say.
(The Synopsis seemed overly broad.)
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
ben@pocket.services
Subject: Re: pkg/52356: lang/openjdk8 needs clang compiler
Date: Mon, 3 Jul 2017 15:55:15 +0200
On Mon, Jul 03, 2017 at 01:30:01PM +0000, John D. Baker wrote:
> The following reply was made to PR pkg/52356; it has been noted by GNATS.
>
> From: "John D. Baker" <jdbaker@mylinuxisp.com>
> To: gnats-bugs@NetBSD.org
> Cc:
> Subject: Re: pkg/52356: lang/openjdk8 needs clang compiler
> Date: Mon, 3 Jul 2017 08:26:23 -0500 (CDT)
>
> On Sun Jul 02 08:25:00 +0000 2017, Benjamin Lorenz <ben@pocket.services>
> writes:
>
> > System: NetBSD hermes.lorenz.place 8.99.1 NetBSD 8.99.1 (RPI2) #1: Sat Jul 1 14:10:03 CEST 2017 bjjl@hermes.lorenz.place:/home/bjjl/obj/sys/arch/evbarm/compile/RPI2 evbarm
> > Architecture: earmv7hf
> > Machine: evbarm
> [...]
> > This holds for my RPI2, not sure about other platforms.
>
> As a datapoint, lang/openjdk8 (pkgsrc-2017Q1) builds just fine with GCC
> 5.4 on i386 and amd64 8.0_BETA and 8.99.1 (and with GCC 4.8.5 on i386
> and amd64 7.1_STABLE)
That's not relevant, this is highly platform specific code.
Joerg
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.