RFR: Update Readme with macOs specifics [v2]
Brice Dutheil
duke at openjdk.java.net
Tue Mar 29 10:32:58 UTC 2022
On Tue, 29 Mar 2022 10:14:59 GMT, Brice Dutheil <duke at openjdk.java.net> wrote:
>> The macOs libclang location as well as build output differ enough to warrant specific information. In particular the use of the XCode based path to find the libclang is not an easy find. The output also makes use of jpackage with `app-image` type, but the macOs _.app_ layout different enough on macOs.
>
> Brice Dutheil has updated the pull request incrementally with one additional commit since the last revision:
>
> Fix review comments
So I have enclosed the alternative local installation in a `details` block.
>From what I have done so far using `clean verify` tasks for all alternative works well, and the `jextract` command works well too.
* `sh ./gradlew -Pjdk18_home=$(asdf where java corretto-18.0.0.37.1) -Pllvm_home=$(brew --prefix llvm) clean verify`
* `sh ./gradlew -Pjdk18_home=$(asdf where java corretto-18.0.0.37.1) -Pllvm_home=/Library/Developer/CommandLineTools/usr/ clean verify`
* `sh ./gradlew -Pjdk18_home=$(asdf where java corretto-18.0.0.37.1) -Pllvm_home=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/ clean verify`
* `sh ./gradlew -Pjdk18_home=$(asdf where java corretto-18.0.0.37.1) -Pllvm_home=$HOME/Downloads/clang+llvm-14.0.0-x86_64-apple-darwin clean verify`
However `jtreg` doesn't pass in my current setup., I noticed this in the JTwork reports.
java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
at java.base/java.lang.System.setSecurityManager(System.java:416)
at com.sun.javatest.regtest.agent.RegressionSecurityManager.install(RegressionSecurityManager.java:56)
at com.sun.javatest.regtest.agent.AgentServer.<init>(AgentServer.java:211)
at com.sun.javatest.regtest.agent.AgentServer.main(AgentServer.java:70)
result: Error. Agent communication error: java.net.SocketException: Connection reset; check console log for any additional details
I don't quite know about `jtreg` at this time, so I'm not sure what to do with this yet.
<details><summary><code>sh ./gradlew -Pjdk18_home=$(asdf where java corretto-18.0.0.37.1) -Pllvm_home=$HOME/Downloads/clang+llvm-14.0.0-x86_64-apple-darwin -Pjtreg_home=$HOME/Downloads/jtreg clean jtreg</code></summary>
$ sh ./gradlew -Pjdk18_home=$(asdf where java corretto-18.0.0.37.1) -Pllvm_home=$HOME/Downloads/clang+llvm-14.0.0-x86_64-apple-darwin -Pjtreg_home=$HOME/Downloads/jtreg clean jtreg
> Task :cmakeConfigure
-- The C compiler identification is AppleClang 13.1.6.13160021
-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/funcPointerInvokers/libFunc.c
-- Lib name: Func
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/test8239918/libTest8239918.c
-- Lib name: Test8239918
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/test8244938/libTest8244938.c
-- Lib name: Test8244938
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/test8244959/libPrintf.c
-- Lib name: Printf
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/test8245003/libTest8245003.c
-- Lib name: Test8245003
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/test8246341/libTest8246341.c
-- Lib name: Test8246341
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/test8246400/libTest8246400.c
-- Lib name: Test8246400
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/test8249757/libTest8249757.c
-- Lib name: Test8249757
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/test8252016/libVSPrintf.c
-- Lib name: VSPrintf
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/test8252121/libArrayparam.c
-- Lib name: Arrayparam
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/test8253102/libTest8253102.c
-- Lib name: Test8253102
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/test8257892/libUnsupported.c
-- Lib name: Unsupported
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/test8258605/libFuncParam.c
-- Lib name: FuncParam
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/test8261511/libTest8261511.c
-- Lib name: Test8261511
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/testFunctionPointer/libFuncPtr.c
-- Lib name: FuncPtr
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/generator/testStruct/libStruct.c
-- Lib name: Struct
-- Processing test lib: /Users/brice.dutheil/opensource/jextract/test/../test/java/org/openjdk/jextract/test/toolprovider/libExamples.c
-- Lib name: Examples
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/brice.dutheil/opensource/jextract/build/testlib-build
> Task :cmakeBuild
[ 2%] Building C object CMakeFiles/Func.dir/Users/brice.dutheil/opensource/jextract/test/generator/funcPointerInvokers/libFunc.c.o
[ 5%] Linking C shared library libFunc.dylib
[ 5%] Built target Func
[ 8%] Building C object CMakeFiles/Test8239918.dir/Users/brice.dutheil/opensource/jextract/test/generator/test8239918/libTest8239918.c.o
[ 11%] Linking C shared library libTest8239918.dylib
[ 11%] Built target Test8239918
[ 14%] Building C object CMakeFiles/Test8244938.dir/Users/brice.dutheil/opensource/jextract/test/generator/test8244938/libTest8244938.c.o
[ 17%] Linking C shared library libTest8244938.dylib
[ 17%] Built target Test8244938
[ 20%] Building C object CMakeFiles/Printf.dir/Users/brice.dutheil/opensource/jextract/test/generator/test8244959/libPrintf.c.o
[ 23%] Linking C shared library libPrintf.dylib
[ 23%] Built target Printf
[ 26%] Building C object CMakeFiles/Test8245003.dir/Users/brice.dutheil/opensource/jextract/test/generator/test8245003/libTest8245003.c.o
[ 29%] Linking C shared library libTest8245003.dylib
[ 29%] Built target Test8245003
[ 32%] Building C object CMakeFiles/Test8246341.dir/Users/brice.dutheil/opensource/jextract/test/generator/test8246341/libTest8246341.c.o
[ 35%] Linking C shared library libTest8246341.dylib
[ 35%] Built target Test8246341
[ 38%] Building C object CMakeFiles/Test8246400.dir/Users/brice.dutheil/opensource/jextract/test/generator/test8246400/libTest8246400.c.o
[ 41%] Linking C shared library libTest8246400.dylib
[ 41%] Built target Test8246400
[ 44%] Building C object CMakeFiles/Test8249757.dir/Users/brice.dutheil/opensource/jextract/test/generator/test8249757/libTest8249757.c.o
[ 47%] Linking C shared library libTest8249757.dylib
[ 47%] Built target Test8249757
[ 50%] Building C object CMakeFiles/VSPrintf.dir/Users/brice.dutheil/opensource/jextract/test/generator/test8252016/libVSPrintf.c.o
[ 52%] Linking C shared library libVSPrintf.dylib
[ 52%] Built target VSPrintf
[ 55%] Building C object CMakeFiles/Arrayparam.dir/Users/brice.dutheil/opensource/jextract/test/generator/test8252121/libArrayparam.c.o
[ 58%] Linking C shared library libArrayparam.dylib
[ 58%] Built target Arrayparam
[ 61%] Building C object CMakeFiles/Test8253102.dir/Users/brice.dutheil/opensource/jextract/test/generator/test8253102/libTest8253102.c.o
[ 64%] Linking C shared library libTest8253102.dylib
[ 64%] Built target Test8253102
[ 67%] Building C object CMakeFiles/Unsupported.dir/Users/brice.dutheil/opensource/jextract/test/generator/test8257892/libUnsupported.c.o
[ 70%] Linking C shared library libUnsupported.dylib
[ 70%] Built target Unsupported
[ 73%] Building C object CMakeFiles/FuncParam.dir/Users/brice.dutheil/opensource/jextract/test/generator/test8258605/libFuncParam.c.o
[ 76%] Linking C shared library libFuncParam.dylib
[ 76%] Built target FuncParam
[ 79%] Building C object CMakeFiles/Test8261511.dir/Users/brice.dutheil/opensource/jextract/test/generator/test8261511/libTest8261511.c.o
[ 82%] Linking C shared library libTest8261511.dylib
[ 82%] Built target Test8261511
[ 85%] Building C object CMakeFiles/FuncPtr.dir/Users/brice.dutheil/opensource/jextract/test/generator/testFunctionPointer/libFuncPtr.c.o
[ 88%] Linking C shared library libFuncPtr.dylib
[ 88%] Built target FuncPtr
[ 91%] Building C object CMakeFiles/Struct.dir/Users/brice.dutheil/opensource/jextract/test/generator/testStruct/libStruct.c.o
[ 94%] Linking C shared library libStruct.dylib
[ 94%] Built target Struct
[ 97%] Building C object CMakeFiles/Examples.dir/Users/brice.dutheil/opensource/jextract/test/java/org/openjdk/jextract/test/toolprovider/libExamples.c.o
[100%] Linking C shared library libExamples.dylib
[100%] Built target Examples
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libFunc.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libTest8239918.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libTest8244938.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libPrintf.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libTest8245003.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libTest8246341.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libTest8246400.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libTest8249757.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libVSPrintf.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libArrayparam.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libTest8253102.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libUnsupported.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libFuncParam.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libTest8261511.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libFuncPtr.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libStruct.dylib
-- Installing: /Users/brice.dutheil/opensource/jextract/build/testlib-install/lib/libExamples.dylib
> Task :compileJava
warning: using incubating module(s): jdk.incubator.foreign
1 warning
> Task :verify
WARNING: Using incubator modules: jdk.incubator.foreign
> Task :jtreg
Directory "JTwork" not found: creating
Directory "JTreport" not found: creating
WARNING: Using incubator modules: jdk.incubator.foreign
WARNING: Using incubator modules: jdk.incubator.foreign
Error: generator/funcPointerInvokers/TestFuncPointerInvokers.java#classes
Error: generator/funcPointerInvokers/TestFuncPointerInvokers.java#sources
Error: generator/test8239918/LibTest8239918Test.java#sources
Error: generator/test8244412/LibTest8244412Test.java#classes
Error: generator/test8240373/Lib8240373Test.java#sources
Error: generator/test8244412/LibTest8244412Test.java#sources
Error: generator/test8240373/Lib8240373Test.java#classes
Error: generator/test8239918/LibTest8239918Test.java#classes
Error: generator/test8246341/LibTest8246341Test.java#classes
Error: generator/test8245003/Test8245003.java#sources
Error: generator/test8245003/Test8245003.java#classes
Error: generator/test8244959/Test8244959.java#sources
Error: generator/test8244959/Test8244959.java#classes
Error: generator/test8244938/Test8244938.java#sources
Error: generator/test8244938/Test8244938.java#classes
Error: generator/test8252016/Test8252016.java#sources
Error: generator/test8252016/Test8252016.java#classes
Error: generator/test8249757/LibTest8249757Test.java#sources
Error: generator/test8249757/LibTest8249757Test.java#classes
Error: generator/test8246400/LibTest8246400Test.java#sources
Error: generator/test8246400/LibTest8246400Test.java#classes
Error: generator/test8246341/LibTest8246341Test.java#sources
Error: generator/test8253390/LibTest8253390Test.java#classes
Error: generator/test8253102/LibTest8253102Test.java#sources
Error: generator/test8253102/LibTest8253102Test.java#classes
Error: generator/test8252465/LibTest8252465Test.java#sources
Error: generator/test8252465/LibTest8252465Test.java#classes
Error: generator/test8252121/Test8252121.java#sources
Error: generator/test8252121/Test8252121.java#classes
Error: generator/test8258605/LibTest8258605Test.java#sources
Error: generator/test8258605/LibTest8258605Test.java#classes
Error: generator/test8257892/LibUnsupportedTest.java#sources
Error: generator/test8257892/LibUnsupportedTest.java#classes
Error: generator/test8254983/LibTest8254983Test.java#sources
Error: generator/test8254983/LibTest8254983Test.java#classes
Error: generator/test8253390/LibTest8253390Test.java#sources
Error: generator/testFunctionPointer/LibFuncPtrTest.java#classes
Error: generator/test8282235/Test8282235.java
Error: generator/test8281764/Test8281764.java
Error: generator/test8261511/Test8261511.java#sources
Error: generator/test8261511/Test8261511.java#classes
Error: generator/test8259473/LibTest8259473Test.java#sources
Error: generator/test8259473/LibTest8259473Test.java#classes
Error: java/org/openjdk/jextract/test/api/SmokeTest.java
Error: java/org/openjdk/jextract/test/api/JextractApiTestBase.java
Error: generator/testStruct/LibStructTest.java#sources
Error: generator/testStruct/LibStructTest.java#classes
Error: generator/testGlobalRedefinition/TestGlobalRedefinition.java#sources
Error: generator/testGlobalRedefinition/TestGlobalRedefinition.java#classes
Error: generator/testFunctionPointer/LibFuncPtrTest.java#sources
Error: java/org/openjdk/jextract/test/api/TestMacros.java
Error: java/org/openjdk/jextract/test/api/TestAttributes.java
Error: java/org/openjdk/jextract/test/api/Test8241650.java
Error: java/org/openjdk/jextract/test/api/Test8240853.java
Error: java/org/openjdk/jextract/test/api/Test8240372.java
Error: java/org/openjdk/jextract/test/api/Test8239490.java
Error: java/org/openjdk/jextract/test/api/Test8238712.java
Error: java/org/openjdk/jextract/test/toolprovider/JextractToolRunner.java
Error: java/org/openjdk/jextract/test/toolprovider/JextractToolProviderTest.java
Error: java/org/openjdk/jextract/test/toolprovider/IncompleteArrayTest.java
Error: java/org/openjdk/jextract/test/toolprovider/ConstantsTest.java
Error: java/org/openjdk/jextract/test/toolprovider/BadBitfieldTest.java
Error: java/org/openjdk/jextract/test/api/TestTypedef.java
Error: java/org/openjdk/jextract/test/api/TestNestedBitfields.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8245767.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8244412.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8240811.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8240752.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8240657.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8240181.java
Error: java/org/openjdk/jextract/test/toolprovider/RepeatedDeclsTest.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8258405.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8258223.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8251943.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8249300.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8249290.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8248474.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8248415.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8262117.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8261893.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8261578.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8260929.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8260717.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8260705.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8260344.java
Error: java/org/openjdk/jextract/test/toolprovider/TestNested.java
Error: java/org/openjdk/jextract/test/toolprovider/TestFilters.java
Error: java/org/openjdk/jextract/test/toolprovider/TestClassGeneration.java
Error: java/org/openjdk/jextract/test/toolprovider/TestAttributedPointerTypedef.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8262851.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8262825.java
Error: java/org/openjdk/jextract/test/toolprovider/Test8262733.java
Error: java/org/openjdk/jextract/test/TestUtils.java
Error: java/org/openjdk/jextract/test/toolprovider/UniondeclTest.java
Error: java/org/openjdk/jextract/test/toolprovider/TestTypedefIsFunctionProto.java
Error: java/org/openjdk/jextract/test/toolprovider/TestSplit.java
Test results: error: 96
Report written to /Users/brice.dutheil/opensource/jextract/build/JTreport/html/report.html
Results written to /Users/brice.dutheil/opensource/jextract/build/JTwork
Error: Some tests failed or other problems occurred.
> Task :jtreg FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':jtreg'.
> Process 'command '/Users/brice.dutheil/.asdf/installs/java/corretto-17.0.2.8.1/bin/java'' finished with non-zero exit value 3
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 53s
16 actionable tasks: 16 executed
</details>
-------------
PR: https://git.openjdk.java.net/jextract/pull/10
More information about the jextract-dev
mailing list