Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-825

System objcopy is used when building native image in container, e.g Docker

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 1.11.2.ER1
    • mandrel
    • None
    • Undefined
    • ---

    Description

      System objcopy is used when building native image in container, e.g Docker

      mvn io.quarkus:quarkus-maven-plugin:1.11.2.Final-redhat-00003:create \
       -DprojectGroupId=org.acme \
       -DprojectArtifactId=getting-started \
       -DplatformGroupId=com.redhat.quarkus \
       -DplatformVersion=1.11.2.Final-redhat-00003 \
       -DclassName="org.acme.quickstart.GreetingResource" \
       -Dpath="/hello" \
       -Dmaven.repo.local=/Users/rsvoboda/Downloads/maven-repository/
      cd getting-started
      
      mvn clean package -Dnative -Dmaven.repo.local=/Users/rsvoboda/Downloads/maven-repository/ -Dquarkus.native.container-build=true
      
      [WARNING] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] objcopy executable not found in PATH. Debug symbols will not be separated from executable.
      [WARNING] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] That will result in a larger native image with debug symbols embedded in it.
      

      objcopy should be used from the builder image and not from the host system.

      (I'm on macOS BigSur and I had issues with objcopy)

      I know there were some plans to implement running of objcopy inside the docker run.
      It would be good to back-port that in RHBQ (if available) or push towards implementing it.

      Attachments

        Activity

          People

            rh-ee-galder Galder ZamarreƱo
            rsvoboda@redhat.com Rostislav Svoboda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: