NetBSD Problem Report #53223

From tsutsui@ceres.dti.ne.jp  Sat Apr 28 14:11:58 2018
Return-Path: <tsutsui@ceres.dti.ne.jp>
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 7A2507A186
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 28 Apr 2018 14:11:58 +0000 (UTC)
Message-Id: <201804281411.w3SEBr3Q021393@ceres.dti.ne.jp>
Date: Sat, 28 Apr 2018 23:11:53 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
X-Send-Pr-Version: 3.95

>Number:         53223
>Category:       pkg
>Synopsis:       lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 28 14:15:00 +0000 2018
>Closed-Date:    Sun May 27 05:03:03 +0000 2018
>Last-Modified:  Sun May 27 05:03:03 +0000 2018
>Originator:     Izumi Tsutsui
>Release:        NetBSD 8.0_RC1 + pkgsrc-2018Q1
>Organization:
>Environment:
System: NetBSD optiplex 8.0_RC1 NetBSD 8.0_RC1 (GENERIC.201804191727Z) i386
Architecture: i386
Machine: i386
>Description:
lang/openjdk8 build fails during configure phase on NetBSD/i386 8.0_RC1.

---
=> Bootstrap dependency digest>=20010302: found digest-20160304
=> Checksum SHA1 OK for openjdk7/bootstrap-jdk-1.7.76-netbsd-7-i386-20150301.tar.xz
=> Checksum RMD160 OK for openjdk7/bootstrap-jdk-1.7.76-netbsd-7-i386-20150301.tar.xz
=> Checksum SHA512 OK for openjdk7/bootstrap-jdk-1.7.76-netbsd-7-i386-20150301.tar.xz
=> Checksum SHA1 OK for openjdk7/openjdk-1.8.162-20180212.tar.xz
=> Checksum RMD160 OK for openjdk7/openjdk-1.8.162-20180212.tar.xz
=> Checksum SHA512 OK for openjdk7/openjdk-1.8.162-20180212.tar.xz
===> Installing dependencies for openjdk8-1.8.162nb2

 :

===> Configuring for openjdk8-1.8.162nb2
=> Generating pkg-config file for builtin expat package.
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Checking for portability problems in extracted files
Warning: You are using legacy autoconf cross-compilation flags.
It is recommended that you use --openjdk-target instead.

Running generated-configure.sh
configure: Configuration created at Sat Apr 28 23:03:13 JST 2018.
configure: configure script generated at timestamp 1501170108.
checking for basename... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/basename
checking for bash... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/bash
checking for cat... (cached) /bin/cat
checking for chmod... /bin/chmod
checking for cmp... /usr/bin/cmp
checking for comm... /usr/bin/comm
checking for cp... /bin/cp
checking for cpio... /bin/cpio
checking for cut... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/cut
checking for date... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/date
checking for gdiff... /usr/bin/diff
checking for dirname... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/dirname
checking for echo... (cached) echo
checking for expr... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/expr
checking for file... /usr/bin/file
checking for find... /usr/bin/find
checking for head... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/head
checking for ln... /bin/ln
checking for ls... /bin/ls
checking for mkdir... /bin/mkdir -p
checking for mktemp... /usr/bin/mktemp
checking for mv... /bin/mv
checking for printf... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/printf
checking for rm... /bin/rm
checking for sh... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/sh
checking for sort... /usr/bin/sort
checking for tail... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/tail
checking for tar... /bin/tar
checking for tee... /usr/bin/tee
checking for touch... /usr/bin/touch
checking for tr... /usr/bin/tr
checking for uname... /usr/bin/uname
checking for uniq... /usr/bin/uniq
checking for wc... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/wc
checking for which... /usr/bin/which
checking for xargs... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/xargs
checking for gawk... /usr/bin/awk
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for fgrep... /usr/bin/grep -F
checking for a sed that does not truncate output... /usr/bin/sed
checking for nawk... no
checking for gawk... /usr/pkg/bin/gawk
checking for cygpath... no
checking for readlink... /usr/bin/readlink
checking for df... /bin/df
checking for SetFile... no
checking build system type... i486--netbsdelf
checking host system type... i486--netbsdelf
checking target system type... i486--netbsdelf
checking openjdk-build os-cpu... bsd-x86
checking openjdk-target os-cpu... bsd-x86
checking compilation type... native
checking for presence of closed sources... no
checking if closed source is suppressed (openjdk-only)... no
checking which variant of the JDK to build... normal
checking which interpreter of the JVM to build... template
checking which variants of the JVM to build... server
checking which debug level to use... release
checking what configuration name to use... bsd-x86-normal-server-release
checking for apt-get... no
checking for yum... no
checking for port... no
checking for pkgutil... no
checking for pkgadd... no
configure: Testing potential make at make, found using user supplied MAKE=make
configure: Rewriting FOUND_MAKE to "/s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/make"
configure: Using GNU make 3.81 (or later) at /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/make (version: GNU Make 4.1)
checking if find supports -delete... yes
checking for unzip... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/unzip
checking for zip... /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/.tools/bin/zip
checking for ldd... /usr/bin/ldd
checking for readelf... /usr/bin/readelf
checking for hg... /usr/pkg/bin/hg
checking for stat... /usr/bin/stat
checking for time... /usr/bin/time
checking pkg-config is at least version 0.9.0... yes
checking for 7z... no
checking for unzip... unzip
checking for wget... wget
checking headful support... include support for both headful and headless
configure: Found potential Boot JDK using configure arguments
configure: Potential Boot JDK found at /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/bootstrap is incorrect JDK version (/s/obj.i386/pkgsrc/lang/openjdk8/work.i386/bootstrap/jre/lib/i386/server/libjvm.so: text relocations); ignoring
configure: (Your Boot JDK must be version 7 or 8)
configure: error: The path given by --with-boot-jdk does not contain a valid Boot JDK
configure exiting with result code 1
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/lang/openjdk8
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/openjdk8

---

The message
"s/obj.i386/pkgsrc/lang/openjdk8/work.i386/bootstrap/jre/lib/i386/server/libjvm.so: text relocations"
is from /libexec/ld.elf_so on running 7.0 binaries.

---
# /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/bootstrap/bin/jar
/s/obj.i386/pkgsrc/lang/openjdk8/work.i386/bootstrap/jre/lib/i386/server/libjvm.so: text relocations
Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dir] files ...
Options:
    -c  create new archive
    -t  list table of contents for archive
    -x  extract named (or all) files from archive
    -u  update existing archive
    -v  generate verbose output on standard output
    -f  specify archive file name
    -m  include manifest information from specified manifest file
    -e  specify application entry point for stand-alone application 
        bundled into an executable jar file
    -0  store only; use no ZIP compression
    -M  do not create a manifest file for the entries
    -i  generate index information for the specified jar files
    -C  change to the specified directory and include the following file
If any file is a directory then it is processed recursively.
The manifest file name, the archive file name and the entry point name are
specified in the same order as the 'm', 'f' and 'e' flags.

Example 1: to archive two class files into an archive called classes.jar: 
       jar cvf classes.jar Foo.class Bar.class 
Example 2: use an existing manifest file 'mymanifest' and archive all the
           files in the foo/ directory into 'classes.jar': 
       jar cvfm classes.jar mymanifest -C foo/ .

# 
---

Note builds on NetBSD/amd64 8.0_RC1 and NetBSD/i386 7.1.2 work fine.

>How-To-Repeat:
checkout pkgsrc-2018Q1 on NetBSD/i386 8.0_RC1
cd pkgsrc/lang/openjdk8
make package

>Fix:
Check why ld.elf_so complains "text relocations" on
executing 7.x bootstrap binaries?
Preparing bootstrap binaries for 8.0_RC1?

>Release-Note:

>Audit-Trail:
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
Date: Sat, 28 Apr 2018 10:03:18 -0500 (CDT)

 I think this issue may have been reported in a previous PR.  If not, it
 may have just been a thread in pkgsrc-users@.

 Wherever the previous discussion took place, it pointed to the following
 local patch which allows openjdk8 to build on i386 for netbsd-7/8/current
 (and doesn't interfere with amd64):


 +--- common/autoconf/generated-configure.sh.orig2	2016-10-05 09:08:24.135882549 -0500
 ++++ common/autoconf/generated-configure.sh	2016-10-05 09:22:12.332706492 -0500
 +@@ -11423,7 +11423,7 @@ $as_echo "$as_me: Potential Boot JDK fou
 +             BOOT_JDK_FOUND=no
 +           else
 +             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
 +-            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 ++            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | grep version`
 + 
 +             # Extra M4 quote needed to protect [] in grep expression.
 +             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`

 -- 
 |/"\ 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: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: jdbaker@mylinuxisp.com, tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
Date: Sun, 29 Apr 2018 01:12:47 +0900

 >  +-            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 >  ++            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | grep version`

 This works fine on my NetBSD/i386 8.0_RC1. Thanks.
 (though there are too many 'text relocations' messages during build)

 ---
 Izumi Tsutsui

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
Date: Sat, 28 Apr 2018 12:18:59 -0500 (CDT)

 The text relocation errors are what fouls up the test on i386.  Since
 stderr is being duplicated on stdout, the first line is the error message
 instead of the version output, so 'head -n 1' picks up the error message
 instead of the version output.

 Odd that PR pkg/51221 was closed even though the issue was clearly never
 resolved.

 There are lots of packages that exhibit the "text relocations" issue as
 well as many that run afoul of PAX MPROTECT, requesting read-write
 mapping of text segments, making them unsuable (basically anything that
 uses ffmpeg*).

 -- 
 |/"\ 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: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: jdbaker@mylinuxisp.com, tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
Date: Sun, 29 Apr 2018 02:52:44 +0900

 >  The text relocation errors are what fouls up the test on i386.

 Maybe we should have another PR for toolchain..

 >  Odd that PR pkg/51221 was closed even though the issue was clearly never
 >  resolved.

 It looks common/autoconf/generated-configure.sh has much more similar lines.
 PR 51221 fixes the first one. Yours are for the second one.
 Should we replace all ones?

 % grep -n BOOT_JDK_VERSION work.i386/openjdk/common/autoconf/generated-configure.sh.orig | grep head
 11458:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 11790:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 12108:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 12296:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 12624:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 12839:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 13019:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 13227:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 13407:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 13615:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 13795:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 14003:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 14183:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 14378:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 14556:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 14752:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 14930:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 15125:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 15303:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 15499:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 15677:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 15854:            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 % 

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org, 
	pkgsrc-bugs@netbsd.org, tsutsui@ceres.dti.ne.jp
Cc: 
Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
Date: Sat, 28 Apr 2018 14:07:14 -0400

 On Apr 28,  5:55pm, tsutsui@ceres.dti.ne.jp (Izumi Tsutsui) wrote:
 -- Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1

 | The following reply was made to PR pkg/53223; it has been noted by GNATS.
 | 
 | From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
 | To: gnats-bugs@NetBSD.org
 | Cc: jdbaker@mylinuxisp.com, tsutsui@ceres.dti.ne.jp
 | Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
 | Date: Sun, 29 Apr 2018 02:52:44 +0900
 | 
 |  >  The text relocation errors are what fouls up the test on i386.

 We should fix the text relocations!

 christos

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
Date: Sat, 28 Apr 2018 20:36:56 +0200

 On Sat, Apr 28, 2018 at 05:55:01PM +0000, Izumi Tsutsui wrote:
 >  >  The text relocation errors are what fouls up the test on i386.
 >  
 >  Maybe we should have another PR for toolchain..

 It's not a toolchain problem. ffmpeg contains non-PIC code for
 "performance" reasons.

 Joerg

From: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
Date: Sat, 28 Apr 2018 19:38:17 +0000

 > It's not a toolchain problem. ffmpeg contains non-PIC code for
 > "performance" reasons.

 last I looked at this, ffmpeg was building *C* code as non-PIC.
 Other platforms probably don't run into this because they have different
 compiler defaults, e.g. ubuntu defaults to building all code as PIE via
 specfile.

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: joerg@bec.de, tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
Date: Sun, 29 Apr 2018 04:51:01 +0900

 > >  >  The text relocation errors are what fouls up the test on i386.
 > >  
 > >  Maybe we should have another PR for toolchain..
 > 
 > It's not a toolchain problem. ffmpeg contains non-PIC code for
 > "performance" reasons.

 I don't know about your ffmpeg problem, but as noted in the first PR mail
 it's from openjdk's bootstrap binaries.

 >> # /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/bootstrap/bin/jar
 >> /s/obj.i386/pkgsrc/lang/openjdk8/work.i386/bootstrap/jre/lib/i386/server/libjvm.so: text relocations
 >> Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dir] files ...

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
Date: Sat, 28 Apr 2018 22:14:17 +0200

 On Sat, Apr 28, 2018 at 07:55:00PM +0000, Izumi Tsutsui wrote:
 > The following reply was made to PR pkg/53223; it has been noted by GNATS.
 > 
 > From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
 > To: gnats-bugs@NetBSD.org
 > Cc: joerg@bec.de, tsutsui@ceres.dti.ne.jp
 > Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
 > Date: Sun, 29 Apr 2018 04:51:01 +0900
 > 
 >  > >  >  The text relocation errors are what fouls up the test on i386.
 >  > >  
 >  > >  Maybe we should have another PR for toolchain..
 >  > 
 >  > It's not a toolchain problem. ffmpeg contains non-PIC code for
 >  > "performance" reasons.
 >  
 >  I don't know about your ffmpeg problem, but as noted in the first PR mail
 >  it's from openjdk's bootstrap binaries.

 It's still not a toolchain problem, but a bug in the (bootstrap) JDK.

 Joerg

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: joerg@bec.de
Cc: gnats-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
Date: Sun, 29 Apr 2018 05:30:17 +0900

 The warnings were introduced into ld.elf_so after this change:
  http://cvsweb.netbsd.org/bsdweb.cgi/src/libexec/ld.elf_so/reloc.c#rev1.108

 I thought ld.elf_so is part of toolchain, but anyway I hope
 someone who is actually annoyed by the messages will file
 a new PR (probably bin or something else).

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
Date: Sat, 28 Apr 2018 22:38:54 +0200

 On Sat, Apr 28, 2018 at 08:35:00PM +0000, Izumi Tsutsui wrote:
 >  The warnings were introduced into ld.elf_so after this change:
 >   http://cvsweb.netbsd.org/bsdweb.cgi/src/libexec/ld.elf_so/reloc.c#rev1.108
 >  
 >  I thought ld.elf_so is part of toolchain, but anyway I hope
 >  someone who is actually annoyed by the messages will file
 >  a new PR (probably bin or something else).

 Yes, ld.elf_so now shows a warning about bad binaries. Text relocations
 have *always* been a stupid idea, but some folks pretended that the
 benefits of having an additional register is more important. For once,
 binaries with text relocations will break under W^X. They behave worse
 for core dumps and other reasons. Just because it wasn't as visible
 before doesn't mean the old behavior was acceptable.

 Joerg

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org, 
	pkgsrc-bugs@netbsd.org, tsutsui@ceres.dti.ne.jp
Cc: 
Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1
Date: Sat, 28 Apr 2018 17:24:42 -0400

 On Apr 28,  8:35pm, tsutsui@ceres.dti.ne.jp (Izumi Tsutsui) wrote:
 -- Subject: Re: pkg/53223: lang/openjdk8 build fails on NetBSD/i386 8.0_RC1

 |  The warnings were introduced into ld.elf_so after this change:
 |   http://cvsweb.netbsd.org/bsdweb.cgi/src/libexec/ld.elf_so/reloc.c#rev1.108
 |  
 |  I thought ld.elf_so is part of toolchain, but anyway I hope
 |  someone who is actually annoyed by the messages will file
 |  a new PR (probably bin or something else).

 The warnings were put there to indicate problems with programs that use
 text relocations.

 christos

From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53223 CVS commit: pkgsrc/lang/openjdk8
Date: Sun, 27 May 2018 04:58:20 +0000

 Module Name:	pkgsrc
 Committed By:	tsutsui
 Date:		Sun May 27 04:58:20 UTC 2018

 Modified Files:
 	pkgsrc/lang/openjdk8: distinfo
 	pkgsrc/lang/openjdk8/patches:
 	    patch-common_autoconf_generated-configure.sh

 Log Message:
 openjdk8: use grep to get BOOT_JDK_VERSION in all possible places.

 The bootstrap binaries might contain text relocations and
 using 'head -n 1' could fail due to warning messages from ld.elf_so.
 Fixes PR pkg/53223.


 To generate a diff of this commit:
 cvs rdiff -u -r1.55 -r1.56 pkgsrc/lang/openjdk8/distinfo
 cvs rdiff -u -r1.13 -r1.14 \
     pkgsrc/lang/openjdk8/patches/patch-common_autoconf_generated-configure.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sun, 27 May 2018 05:03:03 +0000
State-Changed-Why:
Fix committed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.