How to compile openJdk8 on macOs mojave
Magnus Ihse Bursie
magnus.ihse.bursie at oracle.com
Wed Jan 30 09:31:52 UTC 2019
On 2019-01-28 08:40, zcauniverse wrote:
> Hi,guys
>
>
> I’m trying to compile openjdk8 on my Mac. when I execute ‘make’ command, I got some errors like following:
>
>
>
>
> In file included from /Users/xxx/Documents/opensource_projects/openjdk-learning/openjdk/hotspot/src/share/vm/adlc/archDesc.cpp:27:
> /Users/xxx/Documents/opensource_projects/openjdk-learning/openjdk/hotspot/src/share/vm/adlc/adlc.hpp:35:10: fatal error: 'iostream' file not found
> #include iostream
> ^~~~~~~~~~
> In file included from /Users/xxx/Documents/opensource_projects/openjdk-learning/openjdk/hotspot/src/share/vm/adlc/adlparse.cpp:27:
> /Users/xxx/Documents/opensource_projects/openjdk-learning/openjdk/hotspot/src/share/vm/adlc/adlc.hpp:35:10: fatal error: 'iostream' file not found
> #include iostream
> ^~~~~~~~~~
> 1 error generated.
> make[8]: *** [../generated/adfiles/archDesc.o] Error 1
> make[8]: *** Waiting for unfinished jobs....
> 1 error generated.
>
>
>
>
> I have tried both xcode9.4.1 and Xcode10, neither of one worked.
>
>
> I want to know if that is possible to compile openJdk8 on Mojave . If it is, what should I do to make it done. Thanks
This looks like your system headers are not found. How did you run
configure? What did it say?
It might very well be that JDK 8 cannot be built on Mojave in the end
anyway, but it should not fail like this -- that is the sign of an build
environment error.
/Magnus
More information about the jdk-dev
mailing list