quarkus: IT test fails when building native image using -Dquarkus.native.container-build=true in MacOS

Describe the bug

IT test fails with below error when building native image using “quarkus build --native -Dquarkus.native.container-build=true”. The project is a hello world project generated using quarkus-amazon-lambda-rest-archetype with no additional changes.

[ERROR] Tests run: 4, Failures: 0, Errors: 1, Skipped: 3, Time elapsed: 2.084 s <<< FAILURE! - in com.techroots.GreetingIT [ERROR] com.techroots.GreetingIT.testFunqy Time elapsed: 0.01 s <<< ERROR! java.lang.RuntimeException: Unable to successfully launch process ‘32277’. Exit code is: ‘126’.

[INFO] [INFO] Results: [INFO] [ERROR] Errors: [ERROR] GreetingIT.testFunqy » Runtime Unable to successfully launch process ‘32277’. … [INFO] [ERROR] Tests run: 4, Failures: 0, Errors: 1, Skipped: 3 [INFO] [INFO] [INFO] — maven-failsafe-plugin:3.0.0-M5:verify (default) @ pdfgenerator — [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:04 min [INFO] Finished at: 2022-04-10T23:26:23+02:00

Expected behavior

IT test should not fail

Actual behavior

GreetingIT fails

How to Reproduce?

  1. Generate a new maven project using mvn archetype:generate
    -DarchetypeGroupId=io.quarkus
    -DarchetypeArtifactId=quarkus-amazon-lambda-rest-archetype
    -DarchetypeVersion=2.7.5.Final
  2. quarkus build --native -Dquarkus.native.container-build=true

Output of uname -a or ver

Darwin Faisals-MacBook-Pro.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.7.5.Final

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

No response

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (17 by maintainers)

Most upvoted comments