Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failure using sbt cli/nativeImage #38

Open
dacr opened this issue Oct 23, 2022 · 2 comments
Open

build failure using sbt cli/nativeImage #38

dacr opened this issue Oct 23, 2022 · 2 comments

Comments

@dacr
Copy link

dacr commented Oct 23, 2022

While trying to build sbt-app v0.4.6 using linux host (linux mint 21)

$ sbt cli/nativeImage
...
[/home/dcr/dev-third-parties/zio-app/cli/target/native-image/zio-app-cli:8472]    classlist:  10,336.73 ms,  1.09 GB
Error: Main entry point class 'zio.app.Main' not found.
com.oracle.svm.core.util.UserError$UserException: Main entry point class 'zio.app.Main' not found.
        at com.oracle.svm.core.util.UserError.abort(UserError.java:68)
	at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:292)
	at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:508)
	at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:114)
	at com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus.main(NativeImageGeneratorRunner.java:537)
Error: Image build request failed with exit status 1
com.oracle.svm.driver.NativeImage$NativeImageError: Image build request failed with exit status 1
	at com.oracle.svm.driver.NativeImage.showError(NativeImage.java:1558)
	at com.oracle.svm.driver.NativeImage.build(NativeImage.java:1308)
	at com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1269)
	at com.oracle.svm.driver.NativeImage.main(NativeImage.java:1228)
	at com.oracle.svm.driver.NativeImage$JDK9Plus.main(NativeImage.java:1740)
[error] native-image command failed with exit code '1'
[error] (cli / nativeImage) native-image command failed with exit code '1'
[error] Total time: 34 s, completed 23 oct. 2022, 11:38:44
@dacr
Copy link
Author

dacr commented Oct 23, 2022

Full log : failure.log

@dacr dacr changed the title build failure using cli/nativeImage build failure using sbt cli/nativeImage Oct 23, 2022
@Reeebuuk
Copy link

Having the same issue. Brew version is quite old and using ZIO1 so a no go.
Can we get this resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants