|Summary:||BSD grep causes openjdk11 configuration failures|
|Component:||bin||Assignee:||freebsd-bugs mailing list <bugs>|
|Severity:||Affects Only Me||CC:||glewis, ktullavik, mizhka, mvoorhis|
Description tjlegg 2019-03-21 03:07:27 UTC
openjdk11 fails during configure. configure:21890: checking that grep (/usr/bin/grep) -Fx handles empty lines in the pattern list correctly configure:21907: error: grep does not handle -Fx correctly. 11.2-STABLE FreeBSD 11.2-STABLE #22 r344491M
Comment 1 Greg Lewis 2019-03-21 20:29:53 UTC
Here is what that looks like for me: checking that grep (/usr/bin/grep) -Fx handles empty lines in the pattern list correctly... yes This is on FreeBSD 11.2-RELEASE-p7
Comment 2 Michael Zhilin 2019-03-22 07:54:43 UTC
Hi, grep can be different: BSD or GPL. Could you please provide output of "grep -V"? Thanks!
Comment 3 tjlegg 2019-03-23 00:40:39 UTC
(In reply to Michael Zhilin from comment #2) BINGO! I'd forgotten about that. $ grep -V grep (BSD grep, GNU compatible) 2.6.0-FreeBSD $ grep -i grep /etc/src.conf WITHOUT_GNU_GREP=true WITH_BSD_GREP=true
Comment 4 Greg Lewis 2019-07-26 19:05:36 UTC
This seems like a bug in BSD grep then rather than something to do with the JDK. I'll update this accordingly.
Comment 5 ktullavik 2019-08-21 00:08:11 UTC
Any quick workarounds for this? I tried installing gnugrep and setting BINARY_ALIAS= grep=gnugrep in the makefile. Still getting the error with openjdk 11 and 12 on CURRENT. checking that grep (/usr/bin/grep) -Fx handles empty lines in the pattern list correctly... configure: error: grep does not handle -Fx correctly. configure exiting with result code 1 ===> Script "configure" failed unexpectedly.
Comment 6 ktullavik 2019-08-21 00:28:22 UTC
Well, temporarely swapping in a link to the gnu binary in /usr/bin, like a madman, did the trick.
Comment 7 M. Voorhis 2019-09-08 13:06:56 UTC
I normally use BSD GREP on my 12-stable system and ran into this "grep does not handle -Fx correctly" error. I did the symlink trick referred to in comment 6 and that worked fine, but then I got hung up because openjdk11 doesn't want me to be using CCACHE. I went to /etc/make.conf and commented out "WITH_CCACHE_BUILD=yes" that was there. After running a "make clean" and "make" now still complains about the existence of CCACHE despite its being disabled in /etc/make.conf. Do I need to physically remove the ccache package from my machine in order for the configure script to be happy.