Error while building Jextract from Project Panama - gradle

I've tried following this guide step-by-step https://foojay.io/today/building-project-panamas-jextract-tool-by-yourself/
But sadly when I use git bash in the downloaded jextract folder there occur 3 scenarios:
If I just run sh ./gradlew I get:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Tim\Desktop\jextract-master\build.gradle' line: 15
* What went wrong:
A problem occurred evaluating root project 'jextract-master'.
Could not get unknown property 'llvm_home' for root project 'jextract-master' of type org.gradle.api.Project.
So then, of course, to resolve this problem, I need to specify the location of LLVM in program arguments that I am doing like so:
$ ./gradlew -Pjdk19_home="C:\Program Files\Java\jdk-19\bin"
-Pllvm_home="D:\LLVM\bin\clang.exe" clean verify
(also passing -Pjdk19_home as a parameter as suggested in the guide, but regardless of it, the error persists)
I have downloaded latest LLVM release here https://github.com/llvm/llvm-project/releases in the form of a winx64 installer. After the installation "D:\LLVM\bin" had been added to path.
So the error I am getting now is:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Tim\Desktop\jextract-master\build.gradle' line: 10
* What went wrong:
A problem occurred evaluating root project 'jextract-master'.
> No signature of method: static java.nio.file.Path.of() is applicable for argument types: (String) values: [D:\LLVM\bin\clang.exe]
Possible solutions: is(java.lang.Object), join(java.lang.String), sort(), sum(), max(), min()
When running this command sh ./gradlew -pllvm_home=D:\LLVM\bin clean verify
I get:
FAILURE: Build failed with an exception.
* What went wrong:
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
* Exception is:
org.gradle.api.UncheckedIOException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at org.gradle.internal.FileUtils.canonicalize(FileUtils.java:204)
at org.gradle.initialization.layout.BuildLayoutFactory.layout(BuildLayoutFactory.java:89)
at org.gradle.initialization.layout.BuildLayoutFactory.getLayoutFor(BuildLayoutFactory.java:85)
at org.gradle.initialization.layout.BuildLayoutFactory.getLayoutFor(BuildLayoutFactory.java:40)
at org.gradle.launcher.cli.converter.LayoutToPropertiesConverter.configureFromBuildDir(LayoutToPropertiesConverter.java:89)
at org.gradle.launcher.cli.converter.LayoutToPropertiesConverter.convert(LayoutToPropertiesConverter.java:67)
at org.gradle.launcher.cli.DefaultCommandLineActionFactory$WithLogging.execute(DefaultCommandLineActionFactory.java:223)
at org.gradle.launcher.Main.doAction(Main.java:35)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)
at org.gradle.launcher.GradleMain.main(GradleMain.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:35)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:108)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63)
Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:428)
at java.io.File.getCanonicalPath(File.java:624)
at java.io.File.getCanonicalFile(File.java:649)
at org.gradle.internal.FileUtils.canonicalize(FileUtils.java:202)
... 22 more
I need to build the jextract tool, but in all aforementioned cases the build failed
What should I do?
Thanks in advance.

Related

Grails 4 run-app on WIndows 10 throws error = 206 filename or extension is too long, yet Grails 3 with the same app is fine. How to fix grails 4?

Have converted a number of Grails 3 plugins to Grails 4. One of the Grails 4 plugins throws an error = 206 filename or extension is too long when invoking run-app. The command line and output follows. You can see that a pathing jar is in use for the run-app invocation, yet somewhere down the line the classpath is expanded and is causing this exception. Is there a cure for this on a Windows platform?
"C:\Program Files\Java\jdk1.8.0_301\bin\java.exe" -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:CICompilerCount=3 -Djline.WindowsTerminal.directConsole=false -Dgrails.full.stacktrace=true -Dfile.encoding=UTF-8 -classpath C:\Users\jay\AppData\Local\Temp\classpath1957686578.jar org.grails.cli.GrailsCli run-app --stacktrace --plain-output
|Running application...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bootRun'.
> A problem occurred starting process 'command 'C:\Program Files\Java\jdk1.8.0_301\bin\java.exe''
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':bootRun'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:96)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:65)
at org.gradle.api.internal.tasks.execution.ActionEventFiringTaskExecuter.execute(ActionEventFiringTaskExecuter.java:44)
at org.gradle.api.internal.tasks.execution.TimeoutTaskExecuter.execute(TimeoutTaskExecuter.java:53)
<< more stacktrace omitted >>
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting process 'command 'C:\Program Files\Java\jdk1.8.0_301\bin\java.exe''
at org.gradle.process.internal.DefaultExecHandle.execExceptionFor(DefaultExecHandle.java:232)
at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:209)
at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:356)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:86)
at org.gradle.internal.operations.CurrentBuildOperationPreservingRunnable.run(CurrentBuildOperationPreservingRunnable.java:42)
... 3 more
Caused by: net.rubygrapefruit.platform.NativeException: Could not start 'C:\Program Files\Java\jdk1.8.0_301\bin\java.exe'
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:27)
at net.rubygrapefruit.platform.internal.WindowsProcessLauncher.start(WindowsProcessLauncher.java:22)
at net.rubygrapefruit.platform.internal.WrapperProcessLauncher.start(WrapperProcessLauncher.java:36)
at org.gradle.process.internal.ExecHandleRunner.startProcess(ExecHandleRunner.java:97)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:70)
... 4 more
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.8.0_301\bin\java.exe" (in directory "C:\JtmdGrailsPlugin"): CreateProcess error=206, The filename or extension is too long
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
... 8 more
Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
... 9 more
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
Error |
Failed to start server (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.util.concurrent.ExecutionException: org.gradle.tooling.BuildException: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-5.0-bin.zip'.
at java_util_concurrent_Future$get.call(Unknown Source)
at run-app.run(run-app.groovy:89)
at org.grails.cli.profile.commands.script.GroovyScriptCommand.handle(GroovyScriptCommand.groovy:152)
at org.grails.cli.profile.AbstractProfile.handleCommand(AbstractProfile.groovy:482)
at org.grails.cli.GrailsCli.handleCommand(GrailsCli.groovy:377)
at org.grails.cli.GrailsCli.handleCommand(GrailsCli.groovy:350)
at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:271)
at org.grails.cli.GrailsCli.main(GrailsCli.groovy:159)
Caused by: org.gradle.tooling.BuildException: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-5.0-bin.zip'.
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:51)
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:41)
<< more stacktrace omitted >>
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting process 'command 'C:\Program Files\Java\jdk1.8.0_301\bin\java.exe''
at org.gradle.process.internal.DefaultExecHandle.execExceptionFor(DefaultExecHandle.java:232)
at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:209)
at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:356)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:86)
at org.gradle.internal.operations.CurrentBuildOperationPreservingRunnable.run(CurrentBuildOperationPreservingRunnable.java:42)
... 3 more
Caused by: net.rubygrapefruit.platform.NativeException: Could not start 'C:\Program Files\Java\jdk1.8.0_301\bin\java.exe'
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:27)
at net.rubygrapefruit.platform.internal.WindowsProcessLauncher.start(WindowsProcessLauncher.java:22)
at net.rubygrapefruit.platform.internal.WrapperProcessLauncher.start(WrapperProcessLauncher.java:36)
at org.gradle.process.internal.ExecHandleRunner.startProcess(ExecHandleRunner.java:97)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:70)
... 4 more
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.8.0_301\bin\java.exe" (in directory "C:\JtmdGrailsPlugin"): CreateProcess error=206, The filename or extension is too long
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
... 8 more
Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
... 9 more
Error |
Failed to start server
Process finished with exit code 1
Although in the invocation it appears that a pathing jar is active, adding this explicitly (as per the grails 4 documentation - bad on me) seems to have cured the problem.
grails { pathingJar = true }

Caused by: org.gradle.api.artifacts.PublishException: Cannot publish artifact 'xodus-samples.jar' as it does not exist

I'm getting this error:
Caused by: org.gradle.api.artifacts.PublishException: Cannot publish artifact 'xodus-samples.jar' (/Jetbrains/xodus/samples/build/libs/xodus-samples.jar) as it does not exist.
at org.gradle.internal.component.external.ivypublish.DefaultArtifactPublisher.isValidToPublish(DefaultArtifactPublisher.java:118)
at org.gradle.internal.component.external.ivypublish.DefaultArtifactPublisher.addConfigurations(DefaultArtifactPublisher.java:95)
at org.gradle.internal.component.external.ivypublish.DefaultArtifactPublisher.toPublishMetaData(DefaultArtifactPublisher.java:84)
at org.gradle.internal.component.external.ivypublish.DefaultArtifactPublisher.publish(DefaultArtifactPublisher.java:68)
at org.gradle.api.internal.artifacts.ivyservice.IvyContextualArtifactPublisher.lambda$publish$0(IvyContextualArtifactPublisher.java:39)
at org.gradle.internal.Transformers$4.transform(Transformers.java:139)
at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager.withIvy(DefaultIvyContextManager.java:64)
at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager.withIvy(DefaultIvyContextManager.java:41)
at org.gradle.api.internal.artifacts.ivyservice.IvyContextualArtifactPublisher.publish(IvyContextualArtifactPublisher.java:38)
at org.gradle.api.tasks.Upload.upload(Upload.java:66)
... 183 more
When trying to do ./gradlew install for this script https://github.com/JetBrains/xodus/blob/master/build.gradle
What could be wrong in my process? How can I manage to make it install correctly?

Jmeter plugins manager failed to install plugin

JMeter (version 4.0) plugins manager (jmeter-plugins-manager-1.0.2) failed to install plugins.
Following error is thrown.
2018-05-29 12:39:00,977 ERROR o.j.r.PluginManager: Failed to download cmdrunner>=2.2
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.createFileExclusively(Native Method) ~[?:1.8.0_161]
at java.io.File.createTempFile(Unknown Source) ~[?:1.8.0_161]
at java.io.File.createTempFile(Unknown Source) ~[?:1.8.0_161]
at org.jmeterplugins.repository.JARSourceHTTP.getJAR(JARSourceHTTP.java:395) ~[jmeter-plugins-manager-1.0.2.jar:?]
at org.jmeterplugins.repository.PluginManager.applyChanges(PluginManager.java:167) [jmeter-plugins-manager-1.0.2.jar:?]
at org.jmeterplugins.repository.PluginManagerDialog$4.run(PluginManagerDialog.java:226) [jmeter-plugins-manager-1.0.2.jar:?]
quick fix:
download jar from https://mvnrepository.com/artifact/kg.apc/cmdrunner/2.2.1
and place it int jmeter/library folder

Sonar Findbugs not running

i have installed sonar and executing sonar-runner from my parent folder but i get the following error do any anyone have an idea what to do?
Exception in thread "main" org.sonar.runner.RunnerException: org.sonar.api.utils.SonarException: Can not execute Findbugs
at org.sonar.runner.Runner.delegateExecution(Runner.java:288)
at org.sonar.runner.Runner.execute(Runner.java:151)
at org.sonar.runner.Main.execute(Main.java:84)
at org.sonar.runner.Main.main(Main.java:56)
Caused by: org.sonar.api.utils.SonarException: Can not execute Findbugs
at org.sonar.plugins.findbugs.FindbugsExecutor.execute(FindbugsExecutor.java:126)
at org.sonar.plugins.findbugs.FindbugsSensor.analyse(FindbugsSensor.java:62)
at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
at org.sonar.batch.phases.Phases.execute(Phases.java:93)
at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:139)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:131)
at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:121)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:121)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.Batch.execute(Batch.java:104)
at org.sonar.runner.internal.batch.Launcher.executeBatch(Launcher.java:69)
at org.sonar.runner.internal.batch.Launcher.execute(Launcher.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.sonar.runner.Runner.delegateExecution(Runner.java:285)
... 3 more
Caused by: java.io.IOException: File '/home/bldarea/example/dev/archive/.sonar/findbugs-result.xml' cannot be written to
at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:228)
at org.sonar.plugins.findbugs.FindbugsExecutor.execute(FindbugsExecutor.java:95)
... 21 more
The message is clear: the 'findbugs-result.xml' temporary file can't be written on the disk, in the folder '/home/bldarea/example/dev/archive/.sonar'.
So you have to know why this file can't be written there. This may be linked to user rights or user quota on this folder...

Hudson:java.io.IOException: Cannot run program "cvs" : CreateProcess error=2, The system cannot find the file specified

I am using hudson 2.2.0 for a test application.At the basic level I want to take check out form my cvs.
For this I have created a new job and configured.But while build this job it is giving me error.
Below is the error console:
Started by user anonymous
[formcsam] $ cvs -Q -z3 -d :pserver:username:password#host:/root co -P -d workspace -D "Friday, May 18, 2012 5:51:37 AM UTC" core/myapp
java.io.IOException: Cannot run program "cvs" (in directory "C:\Documents and Settings\sanjay\.hudson\jobs\formcsam"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.<init>(Proc.java:192)
at hudson.Proc$LocalProc.<init>(Proc.java:164)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:639)
at hudson.Launcher$ProcStarter.start(Launcher.java:274)
at hudson.Launcher$ProcStarter.join(Launcher.java:281)
at hudson.scm.CVSSCM.run(CVSSCM.java:575)
at hudson.scm.CVSSCM.run(CVSSCM.java:585)
at hudson.scm.CVSSCM.checkout(CVSSCM.java:756)
at hudson.scm.CVSSCM.checkout(CVSSCM.java:319)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1479)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:507)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:424)
at hudson.model.Run.run(Run.java:1366)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 17 more
[DEBUG] Skipping watched dependency update for build: formcsam #1 due to result: FAILURE
Finished: FAILURE
Then I copied the same command to fire it from command prompt.From command prompt it is working fine.So I am not getting what is the issues in hudson while firing the same command .
Please help me out.
Thanks in advance.
Just forgot to add cvs.exe in configuration of hudson.

Resources