-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup OSX Machines for JDK8 #3323
Comments
related to #36 |
@cwillhelm can you please setup the remaining 3 macs using these instructions. Please provide any questions or feedback here. Thanks. |
For these statements is it as simple as doing |
@cwillhelm Xcode comes as a |
fyi @sxa555 |
Do you specifically need MacOS 10.10, or can we use a newer version? (10.13) |
not sure. it will depend on whether Xcode4 and Xcode7 work with a newer OSX version. i followed the instructions from here: https://github.com/manasthakur/jdk-tips/wiki/Building-OpenJDK-8-on-Mac-OS-X-Yosemite. |
Added instructions to Build OpenJ9 JDK8 in the first post. |
A good source for build platform requirements used for OpenJDK + Hotspot by other providers: https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms. Mac OSX version seems to be flexible. JDK 8 build platforms supported by Oracle
Other JDK 8 build platforms
|
Some additional steps to do prior to starting install (because brew can't be run as root):
|
Changes to the OpenJ9 JDK8 build process on OSX. The following environment variables won't work anymore:
Reference: ibmruntimes/openj9-openjdk-jdk8#147. Instead of using the above environment variables,
Examples:
The instructions in the main description above have also been updated. |
^^^ fyi: @sxa555 @groeges @AdamBrousseau @jdekonin |
Mounting and copying Xcode dmg fileThis will help in automating the setup process on OSX machines:
Reference: http://osxdaily.com/2011/12/17/mount-a-dmg-from-the-command-line-in-mac-os-x/ |
I also needed to install |
@jdekonin So I can now undo the change to |
The Note: One won't be able to edit fyi - @sxa555 |
Update: Referring to comment. Once #3629 and ibmruntimes/openj9-openjdk-jdk8#206 are merged, entire OpenJ9 can be built with Xcode7 and the default clang/clang++. This will remove the dependency on I have updated the build instructions above. Three important changes needed once #3629 and ibmruntimes/openj9-openjdk-jdk8#206 are merged:
|
Based on content in eclipse-openj9#3323, added a section for macOS. [ci skip] Signed-off-by: Sue Chaplain <[email protected]>
- Both compressed and non Related eclipse-openj9#3323 [skip ci] Signed-off-by: Adam Brousseau <[email protected]>
Setting up the machine
Install Mac OS X 10.10 (Yosemite)
The instructions below must be executed with
sudo
permissions.Install brew
./get_source.sh
asks for Bash version 4. Bash version 4 will be located here:/usr/local/bin/bash
. Extension repo scripts will try to use/bin/bash
./bin/bash
will point to Bash version 3 after installing Bash version 4. Associate/bin/bash
symlink to Bash version 4:sed
on OSX won't process carriage returns (\r
) and new-lines (\n
).gsed
will doesn't have this issue.tar
on OSX doesn't support--exclude-vcs
option wheregtar
supports--exclude-vcs
.typedef void (^dispatch_block_t)(void);
) in /usr/include/dispatch/object.h:Building OpenJ9 JDK8
Download the boot JDK from AdoptOpenJDK. Technically, JDK7 should be used as the boot JDK but JDK7 isn't available at AdoptOpenJDK. So, I used OpenJDK8 with Hotspot as the boot JDK, and no issues were seen: https://adoptopenjdk.net/releases.html#x64_mac.
Clone openj9-openjdk-jdk8 extensions repo:
freemarker.jar
:The default BSD
tar
on Mac won't strip component.gtar
should be used to--strip-components
.^^^ Make sure that the above file and executable paths are valid on the machine. ^^^
./configure
:make
:If
make
is successful, aj2sdk-images
and aj2re-image
should be generated in thebuild
directory.The text was updated successfully, but these errors were encountered: