Bug 217846 - Port: java/openjdk8 fails at the configure stage
Summary: Port: java/openjdk8 fails at the configure stage
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-java (Nobody)
URL:
Keywords:
: 213088 218483 (view as bug list)
Depends on:
Blocks: 213088
  Show dependency treegraph
 
Reported: 2017-03-16 16:13 UTC by Robert Cina
Modified: 2017-04-10 05:13 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (java)


Attachments
Synth log of failed java/openjdk8 build (25.62 KB, text/x-log)
2017-03-16 17:32 UTC, Robert Cina
no flags Details
poudriere testport log for java/openjdk8 (29.56 KB, text/x-log)
2017-03-20 12:40 UTC, Robert Cina
no flags Details
java/openjdk8 poudriere build log with r315895 (28.70 KB, text/x-log)
2017-03-24 19:31 UTC, Robert Cina
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Cina 2017-03-16 16:13:18 UTC
The openjdk8 port fails to build on my system.  Also fails to build with similar error using synth. The synth log is attached. 

System details:
FreeBSD alto.localdomain 11.0-STABLE FreeBSD 11.0-STABLE #0 r315336: Wed Mar 15 20:06:21 EDT 2017     root@alto.localdomain:/usr/obj/usr/src/sys/GENERIC  amd64

Make details:

make install clean

===>   openjdk8-8.121.13 depends on executable: zip - found
===>   openjdk8-8.121.13 depends on file: /usr/local/include/cups/cups.h - found
===>   openjdk8-8.121.13 depends on executable: bash - found
===>   openjdk8-8.121.13 depends on executable: gmake - found
===>   openjdk8-8.121.13 depends on package: libiconv>=1.14_9 - found
===>   openjdk8-8.121.13 depends on package: pkgconf>=1.3.0_1 - found
===>   openjdk8-8.121.13 depends on file: /usr/local/bin/autoconf-2.69 - found
===>   openjdk8-8.121.13 depends on shared library: libasound.so - found (/usr/local/lib/libasound.so)
===>   openjdk8-8.121.13 depends on shared library: libfreetype.so - found (/usr/local/lib/libfreetype.so)
===>   openjdk8-8.121.13 depends on shared library: libfontconfig.so - found (/usr/local/lib/libfontconfig.so)
===>   openjdk8-8.121.13 depends on shared library: libgif.so - found (/usr/local/lib/libgif.so)
===>   openjdk8-8.121.13 depends on shared library: libX11.so.6 - found (/usr/local/lib/libX11.so.6)
===>   openjdk8-8.121.13 depends on shared library: libXext.so.6 - found (/usr/local/lib/libXext.so.6)
===>   openjdk8-8.121.13 depends on shared library: libXi.so.6 - found (/usr/local/lib/libXi.so.6)
===>   openjdk8-8.121.13 depends on shared library: libXrender.so.1 - found (/usr/local/lib/libXrender.so.1)
===>   openjdk8-8.121.13 depends on shared library: libXt.so.6 - found (/usr/local/lib/libXt.so.6)
===>   openjdk8-8.121.13 depends on shared library: libXtst.so.6 - found (/usr/local/lib/libXtst.so.6)
===>  Configuring for openjdk8-8.121.13
Warning: You are using legacy autoconf cross-compilation flags.
It is recommended that you use --openjdk-target instead.

Running generated-configure.sh
./../../common/autoconf/generated-configure.sh: redirection error: cannot duplicate fd: Bad file descriptor
./../../common/autoconf/generated-configure.sh: line 561: 1: Bad file descriptor
configure exiting with result code 1
===>  Script "../../configure" failed unexpectedly.
Please report the problem to java@FreeBSD.org [maintainer] and attach the
"/usr/ports/java/openjdk8/work/openjdk/common/autoconf/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/java/openjdk8
*** Error code 1

Stop.
make: stopped in /usr/ports/java/openjdk8
Comment 1 Robert Cina 2017-03-16 17:32:41 UTC
Created attachment 180882 [details]
Synth log of failed java/openjdk8 build
Comment 2 Robert Cina 2017-03-20 12:40:11 UTC
Created attachment 180990 [details]
poudriere testport log for java/openjdk8

I have tried building openjdk8 with poudriere also and it still fails with a redirection error when building at the configure stage. Attached is the poudriere testport buildlog from my box.

===>  Configuring for openjdk8-8.121.13
Warning: You are using legacy autoconf cross-compilation flags.
It is recommended that you use --openjdk-target instead.

Running generated-configure.sh
./../../common/autoconf/generated-configure.sh: redirection error: cannot duplicate fd: Bad file descriptor
./../../common/autoconf/generated-configure.sh: line 560: 0: Bad file descriptor
configure exiting with result code 1
===>  Script "../../configure" failed unexpectedly.
Please report the problem to java@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/java/openjdk8/work/openjdk/common/autoconf/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1
Comment 3 Konstantin Belousov freebsd_committer freebsd_triage 2017-03-23 06:35:43 UTC
If you revert your kernel to pre-r315312, does the error go away ?
Comment 4 Niels Kobschätzki 2017-03-23 12:42:54 UTC
Same problem here. Reverting to r315311 let me compile java/openjdk8 again.
Comment 5 Robert Cina 2017-03-23 14:09:39 UTC
I reverted to r315311 and openjdk8 compiled as well.
Comment 6 Konstantin Belousov freebsd_committer freebsd_triage 2017-03-24 09:13:17 UTC
Fixed by src commit r315895.
Comment 7 Robert Cina 2017-03-24 19:31:46 UTC
Created attachment 181160 [details]
java/openjdk8 poudriere build log with r315895

Poudriere still fails to build java/openjdk8 with a configure error on my stable system. I have attached the poudriere build log of the failure.
Comment 8 Greg Lewis freebsd_committer freebsd_triage 2017-03-25 18:17:54 UTC
*** Bug 213088 has been marked as a duplicate of this bug. ***
Comment 9 Matthew Rezny freebsd_committer freebsd_triage 2017-03-26 12:57:44 UTC
(In reply to Konstantin Belousov from comment #6)

Updating my 11-STABLE system past r315895 resolved all the bash-related build failures. Thanks!
Comment 10 Thomas Zander freebsd_committer freebsd_triage 2017-04-10 05:13:25 UTC
*** Bug 218483 has been marked as a duplicate of this bug. ***