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
Created attachment 180882 [details] Synth log of failed java/openjdk8 build
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
If you revert your kernel to pre-r315312, does the error go away ?
Same problem here. Reverting to r315311 let me compile java/openjdk8 again.
I reverted to r315311 and openjdk8 compiled as well.
Fixed by src commit r315895.
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.
*** Bug 213088 has been marked as a duplicate of this bug. ***
(In reply to Konstantin Belousov from comment #6) Updating my 11-STABLE system past r315895 resolved all the bash-related build failures. Thanks!
*** Bug 218483 has been marked as a duplicate of this bug. ***