Building jdk on OS/X

Michael Hall mik3hall at gmail.com
Sun Aug 15 11:25:47 UTC 2021



> On Aug 14, 2021, at 10:22 AM, Michael Hall <mik3hall at gmail.com> wrote:
> 
> Seeing the recent comments on build problems I was curious enough to try building on OS/X.
> I followed the directions here…
> https://hg.openjdk.java.net/jdk-updates/jdk9u/raw-file/tip/common/doc/building.html <https://hg.openjdk.java.net/jdk-updates/jdk9u/raw-file/tip/common/doc/building.html>
> I get errors like…
> 
> === Output from failing command(s) repeated here ===
> * For target buildtools_buildtools_hotspot_tools_classes__the.BUILD_TOOLS_HOTSPOT_batch:
> warning: [path] bad path element "/Library/Frameworks/BSF4ooRexx.framework/Classes/bsf4ooRexx-v641-20190830-bin.jar": no such file or directory
> warning: [path] bad path element "/Applications/OpenOffice.app/Contents/program/classes/ridl.jar": no such file or directory
> warning: [path] bad path element "/Applications/OpenOffice.app/Contents/program/classes/jurt.jar": no such file or directory
> warning: [path] bad path element "/Applications/OpenOffice.app/Contents/program/classes/juh.jar": no such file or directory
> warning: [path] bad path element "/Applications/OpenOffice.app/Contents/program/classes/unoil.jar": no such file or directory
> warning: [path] bad path element "/Applications/OpenOffice.app/Contents/program": no such file or directory
> warning: [path] bad path element "/Library/Frameworks/BSF4ooRexx.framework/Classes/bsf4ooRexx-v641-20191126-bin.jar": no such file or directory
> error: warnings found and -Werror specified
> 1 error
> 7 warnings

I ended up doing a search and started to eliminate -Werror occurrences.
It indicated something in the configuration had changed and had me do 
make reconfigure
The above warnings occurred many times but didn’t fail the build which worked

build/macosx-x86_64-server-release/jdk/bin/java -version
openjdk version "18-internal" 2022-03-15
OpenJDK Runtime Environment (build 18-internal+0-adhoc.mjh.jdk)
OpenJDK 64-Bit Server VM (build 18-internal+0-adhoc.mjh.jdk, mixed mode)

If this is a known issue feel free to ignore. If I should ask about it on another list please let me know.

Thanks.



More information about the jdk-dev mailing list