issues compiling adlc

Bob Vandette bob.vandette at oracle.com
Wed Aug 10 12:54:08 UTC 2016


Ok, I thought you were doing an x64 build.  The zero VM variant 
should also avoid building adlc.

Let me try a clean build to see if I can reproduce your issue.

I have Xcode 7.3.1.

Bob.


> On Aug 10, 2016, at 8:47 AM, Johan Vos <johan at lodgon.com> wrote:
> 
> I'm using --with-jvm-variants=zero as I'm building for arm64.
> Changing only that to minimal1 causes lots of other compile errors.
> It seems the HOTSPOT_LAUNCHER task is asking for adlc, and this task did not exist in the jdk tree I had a couple of months ago.
> 
> This is my configure script:
> 
> 
> #!/bin/tcsh 
> setenv LIBFFI_DIR $HOME/jdk9mobile/libffi/libffi-3.2.1/build_iphoneos-arm64 
> setenv CUPS_DIR $HOME/jdk9mobile/cups-2.1.2 
> setenv FREETYPE_DIR $HOME/jdk9mobile/freetype-2.6.2/build_iphoneos-arm64 
> setenv JDK_DIR /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home 
> bash configure \ 
> --enable-option-checking=fatal \ 
> --build=x86_64-apple-darwin \ 
> --host=aarch64-macos-ios \ 
> --target=aarch64-macos-ios \ 
> --disable-warnings-as-errors \ 
> --disable-headful \ 
> --with-boot-jdk=$JDK_DIR \ 
> --with-jdk-variant=normal \ 
> --with-jvm-variants=zero \ 
> --enable-static-build=yes \ 
> --with-libffi-include=$LIBFFI_DIR/include \ 
> --with-libffi-lib=$LIBFFI_DIR/lib \ 
> --with-extra-cflags="-arch arm64 -Wno-implicit-function-declaration -Wno-unused-parameter -miphoneos-version-min=8.0.0" \ 
> --with-extra-cxxflags="-arch arm64 -Wno-implicit-function-declaration -Wno-unused-parameter -miphoneos-version-min=8.0.0" \ 
> --with-extra-ldflags="-arch arm64 -miphoneos-version-min=8.0.0 -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/system" \ 
> --with-cups-include=$CUPS_DIR \ 
> --with-sys-root=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk \ 
> --with-tools-dir=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin \ 
> --with-debug-level=release \ 
> --disable-precompiled-headers \ 
> --with-freetype-lib=$FREETYPE_DIR/lib \ 
> --with-freetype-include=$FREETYPE_DIR/include/freetype2
> 
> 
> Op wo 10 aug. 2016 om 14:39 schreef Bob Vandette <bob.vandette at oracle.com <mailto:bob.vandette at oracle.com>>:
> Are you using "--with-jvm-variants=minimal1”
> 
> This should avoid the compilation of adlc.
> 
> Bob.
> 
> 
> > On Aug 10, 2016, at 6:31 AM, Johan Vos <johan at lodgon.com <mailto:johan at lodgon.com>> wrote:
> >
> > When building the latest with XCode 7.3.1 I ran into the issue that
> > hotspot/src/share/vm/adlc/adlparse.cpp could not be compiled due to an
> > "Unsupported architecture".
> > It seems that there the flags that are passed with the other compile tasks
> > (e.g. -arch arm64) are not passed for this file.
> > When I add -arch arm64 to the clang++ task, it works.
> >
> > I also notice that CompileJvm.gmk defines
> > JVM_EXCLUDES +=adlc
> > EXCLUDES := $(JVM_EXCLUDES)
> >
> > But I'm not sure this indicates adlc should not be compiled at all, or just
> > not included in libraries.
> >
> > - Johan
> 



More information about the mobile-dev mailing list