Mobile JDK 9 Status

Bob Vandette bob.vandette at oracle.com
Sat Jan 23 17:43:30 UTC 2016


> On Jan 21, 2016, at 9:04 AM, Ali Ebrahimi <ali.ebrahimi1781 at gmail.com> wrote:
> 
> Hi,
> I followed your instructions and built jdk but I got following error when using result in xcode:
> "building for ios simulator, but linking in object file built for osx, for architecture"
> 
> I fix this by adding line for your bash script iOS x86_64:
> export ASFLAGS='-miphoneos-version-min=8.0’
Here is the fix that will be eventually pushed to the mobile/dev repo for this problem.
Rather than adding ASFLAGS, we pass the EXTRA_CFLAGS to ASFLAGS.  This allows
the ios min version to get set in addition to other important options such as bitcode.
Although assembler files can’t support bitcode, the binaries must be marked or you’ll get
a link time failure.

diff --git a/hotspot/make/bsd/makefiles/vm.make b/hotspot/make/bsd/makefiles/vm.make
--- a/make/bsd/makefiles/vm.make
+++ b/make/bsd/makefiles/vm.make
@@ -118,6 +118,9 @@
 # Extra flags from gnumake's invocation or environment
 CFLAGS += $(EXTRA_CFLAGS)
 LFLAGS += $(EXTRA_CFLAGS)
+ifeq ($(OPENJDK_TARGET_OS), ios)
+ASFLAGS += $(EXTRA_CFLAGS)
+endif

Bob.

> 
> Now I successfully build mobile-jdk.
> 
> Now when I trying to start java VM from object-c code I get: "signal sigsegv"
> What is wrong here?
> 
> I use mac os 10.11 and xcode 7.2
> 
> 
> On Thu, Jan 21, 2016 at 12:08 AM, Bob Vandette <bob.vandette at oracle.com <mailto:bob.vandette at oracle.com>> wrote:
> Here are a few updates on the Mobile Dev Repository (http://hg.openjdk.java.net/mobile/dev <http://hg.openjdk.java.net/mobile/dev> <http://hg.openjdk.java.net/mobile/dev <http://hg.openjdk.java.net/mobile/dev>>)
> 
> The mobile/dev forest was merged a few weeks ago with http://hg.openjdk.java.net/jdk9/dev/ <http://hg.openjdk.java.net/jdk9/dev/> <http://hg.openjdk.java.net/jdk9/dev/ <http://hg.openjdk.java.net/jdk9/dev/>> as of build 98.
> 
> The Mobile Dev forest is now capable of building both iOS ARM64 and x86_64.
> 
> I’ve updated the iOS build instructions to include building the libffi and libfreetype libraries
> as well as a canned set of JDK 9 iOS build instructions to make it easier for developers to
> get started.
> 
> http://openjdk.java.net/projects/mobile/ios.html <http://openjdk.java.net/projects/mobile/ios.html> <http://openjdk.java.net/projects/mobile/ios.html <http://openjdk.java.net/projects/mobile/ios.html>>
> 
> I’ll be working on completing the Android ARM builds and providing more the Android build instructions next.
> 
> Enjoy,
> Bob
> 
> 
> 
> 
> 
> -- 
> 
> Best Regards,
> Ali Ebrahimi



More information about the mobile-dev mailing list