Running Diagnostic Examples

Jonathan Gibbons jonathan.gibbons at oracle.com
Mon Oct 31 17:09:08 UTC 2022


Filed https://bugs.openjdk.org/browse/JDK-8296137

the `make/make` pair in the error message is clearly wrong, but fixing 
it requires more investigation

-- Jon

On 10/29/22 4:14 PM, Thalia L wrote:
> Ran into an issue trying to run diagnostic examples, file in the 
> readme (located at 
> /test/langtools/tools/javac/diags/README.examples.txt/) states
>
> /    RunExamples can be run standalone and as a jtreg test, in which 
> case it
>     generates a simple plain text report. In addition, the 
> langtools/make/build.xml
>     file has a target "diags-examples" that uses RunExamples to create 
> an HTML
>     report containing the output from all the examples./
>
> but there is no file called langtools/make/build.xml however there is 
> a file /make/langtools/diags-examples.xml /which is the only one with 
> a diags-examples target
> it says to run like this/ant -f langtools/make/run-examples.xml 
> -Dlangtools.jdk.home=<JDK>/
>
> There is no /run-examples.xml.
> /
> When trying to run the command /cd make &&  ant -f 
> langtools/diags-examples.xml 
> -Dlangtools.jdk.home=../build/macosx-aarch64-server-release/jdk/, I 
> get this error/
> //
>
> Buildfile: 
> /Users/thalial/Desktop/source/jdk/make/langtools/diags-examples.xml
>
> -def-check:
>
> -check-langtools.jdk.home:
>
> -prepare-build:
>     [mkdir] Created dir: 
> /Users/thalial/Desktop/source/jdk/make/build/langtools/modules
>     [mkdir] Created dir: 
> /Users/thalial/Desktop/source/jdk/make/build/langtools/toolclasses
>     [mkdir] Created dir: 
> /Users/thalial/Desktop/source/jdk/make/build/langtools/gensrc
>     [mkdir] Created dir: 
> /Users/thalial/Desktop/source/jdk/make/build/langtools/bin
>     [mkdir] Created dir: 
> /Users/thalial/Desktop/source/jdk/make/build/langtools/prevsrc
>
> -def-pparse:
>
> BUILD FAILED
> /Users/thalial/Desktop/source/jdk/make/langtools/build.xml:285: 
> /Users/thalial/Desktop/source/jdk/make/make/langtools/tools/propertiesparser 
> does not exist.
>
> Total time: 0 seconds
>
> Any advice on this issue?
>
> -- 
> - Thalia La Pommeray
>
>                     “understate and overprove..."
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20221031/5817c250/attachment.htm>


More information about the compiler-dev mailing list