Am 2017-10-22 um 00:00 schrieb Michael Osipov:
Hi folks,
I have cloned from bsd-port parent and child repos and are trying to
build it and stumbled in to some issues.
I am on "FreeBSD mika-ion 11.1-RELEASE-p1 FreeBSD 11.1-RELEASE-p1 #0:
Wed Aug 9 11:17:49 UTC 2017
r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386"
Configured with "bash ./configure --with-cups=/usr/local
--enable-dtrace=no"
Build stucks for three errors:
1. printf complains about "-s" illegal option. This patch fixes the
issue in jdk submodule:
===========================
diff -r 828469cc7455 make/copy/Copy-java.base.gmk
--- a/make/copy/Copy-java.base.gmk Sat Oct 07 16:48:12 2017 -0700
+++ b/make/copy/Copy-java.base.gmk Sat Oct 21 23:33:01 2017 +0200
@@ -135,23 +135,23 @@
$(RM) $(@)
# Now check for other permutations
ifeq ($(call check-jvm-variant, server), true)
- $(PRINTF) "-server KNOWN\n">>$(@)
- $(PRINTF) "-client ALIASED_TO -server\n">>$(@)
+ $(PRINTF) -- "-server KNOWN\n">>$(@)
+ $(PRINTF) -- "-client ALIASED_TO -server\n">>$(@)
ifeq ($(call check-jvm-variant, minimal), true)
- $(PRINTF) "-minimal KNOWN\n">>$(@)
+ $(PRINTF) -- "-minimal KNOWN\n">>$(@)
endif
else
ifeq ($(call check-jvm-variant, client), true)
- $(PRINTF) "-client KNOWN\n">>$(@)
- $(PRINTF) "-server ALIASED_TO -client\n">>$(@)
+ $(PRINTF) -- "-client KNOWN\n">>$(@)
+ $(PRINTF) -- "-server ALIASED_TO -client\n">>$(@)
ifeq ($(call check-jvm-variant, minimal), true)
- $(PRINTF) "-minimal KNOWN\n">>$(@)
+ $(PRINTF) -- "-minimal KNOWN\n">>$(@)
endif
else
ifeq ($(call check-jvm-variant, minimal), true)
- $(PRINTF) "-minimal KNOWN\n">>$(@)
- $(PRINTF) "-server ALIASED_TO -minimal\n">>$(@)
- $(PRINTF) "-client ALIASED_TO -minimal\n">>$(@)
+ $(PRINTF) -- "-minimal KNOWN\n">>$(@)
+ $(PRINTF) -- "-server ALIASED_TO -minimal\n">>$(@)
+ $(PRINTF) -- "-client ALIASED_TO -minimal\n">>$(@)
endif
endif
endif
==========================
2. hotspot/make/lib/CompileLibjsig.gmk is completely missing 'bsd' as
target OS and fails with "Unknown target OS bsd in CompileLibjsig.gmk".
I have blindly compiled the Linux part and changed to "bsd" (just quick
and dirty). After that it fails with zip which cannot bundle debug
symbols. I have reconfigured with internal debug symbols and the error
was gone. How can this be fixed to work out of the box?
3. ./hotspot/make/lib/JvmMapfile.gmk is like second: "Unknown target OS
bsd...".
so did the same for JvmMapfile.gmk (copying linux block) and hit issue
after issue: [1] in hotspot/src/share/vm/gc/g1/heapRegionSet.hpp,
missing DefaultSelectorProvider with KQueue.
It pretty much looks like many changes from devel/openjdk8 haven't been
yet applied to bsd-port. Is that correct?
Michael
[1] https://stackoverflow.com/q/42074035/696632