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

NativeImageBuildRemoteContainerRunner: Podman on Windows statfs error for prepending e.g. //c/ for C:\ drive #25865

Closed
Karm opened this issue May 30, 2022 · 3 comments · Fixed by #25867
Assignees
Labels
area/container-image area/native-image env/windows Impacts Windows machines kind/bug Something isn't working
Milestone

Comments

@Karm
Copy link
Member

Karm commented May 30, 2022

Describe the bug

containers/podman#14414

Expected behavior

It works.

Actual behavior

Error: statfs /c/tmp/code-with-quarkus/target/code-with-quarkus-1.0.0-SNAPSHOT-native-image-source-jar: no such file or directory

How to Reproduce?

C:\tmp
λ curl -O -J  https://code.quarkus.io/d?e=io.quarkus:quarkus-resteasy-reactive
C:\tmp
λ unzip code-with-quarkus.zip
C:\tmp
λ cd code-with-quarkus\
C:\tmp\code-with-quarkus
λ mvnw clean package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.container-runtime=podman -Dquarkus.native.native-image-xmx=8g

Example

image

CollectionPolicy\$BySpaceAndTime

Having the option on -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime produces:

Error: Policy com.oracle.svm.core.genscavenge.CollectionPolicy\\$BySpaceAndTime does not exist.
com.oracle.svm.core.util.UserError$UserException: Policy com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime does not exist.
        at com.oracle.svm.core.util.UserError.abort(UserError.java:73)
        at com.oracle.svm.core.genscavenge.CollectionPolicy.getInitialPolicy(CollectionPolicy.java:77)
        at com.oracle.svm.core.genscavenge.GCImpl.<init>(GCImpl.java:120)
        at com.oracle.svm.core.genscavenge.HeapImpl.<init>(HeapImpl.java:123)
        at com.oracle.svm.core.genscavenge.graal.HeapFeature.afterRegistration(HeapFeature.java:75)
        at com.oracle.svm.hosted.NativeImageGenerator.lambda$setupNativeImage$14(NativeImageGenerator.java:802)
        at com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:74)
        at com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:802)
        at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:534)
        at com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:494)
        at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:426)
        at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:587)
        at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:126)

The reason is that the \ is superfluous on Windows. $ does not need the escape.

Output of uname -a or ver

Windows 10 Enterprise

Output of java -version

Java 11

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.8.3.Final

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@Karm Karm added the kind/bug Something isn't working label May 30, 2022
@quarkus-bot quarkus-bot bot added env/windows Impacts Windows machines triage/needs-triage labels May 30, 2022
@Karm Karm self-assigned this May 30, 2022
@n1hility
Copy link
Member

@Karm the single leading slash should also be ok as well. Were you working on a patch or do you want me to grab this one?

@Karm
Copy link
Member Author

Karm commented May 30, 2022

@n1hility I am producing the patch. it's just all very slow :)

@quarkus-bot
Copy link

quarkus-bot bot commented Jun 8, 2022

/cc @geoand

@gsmet gsmet modified the milestones: 2.10.0.CR1, 2.7.7.Final Jan 13, 2023
gsmet pushed a commit to gsmet/quarkus that referenced this issue Jan 13, 2023
gsmet pushed a commit to gsmet/quarkus that referenced this issue Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/container-image area/native-image env/windows Impacts Windows machines kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants