Problem
I tried running the Build an app example in the Buildpack docs, but hit an error while doing so. Any thoughts on how to troubleshoot would be greatly appreciated.
Steps to reproduce
- Install pack cli:
brew install buildpacks/tap/pack
- Download samples:
git clone https://github.com/buildpacks/samples
- Run build command:
pack build sample-app --path samples/apps/java-maven --builder cnbs/sample-builder:bionic
Outcome / Stack trace
$ pack build sample-app --path samples/apps/java-maven --builder cnbs/sample-builder:bionic
bionic: Pulling from cnbs/sample-builder
e4ca327ec0e7: Already exists
55fae2d3d3bc: Pull complete
6faf60e5f26d: Pull complete
3baf523e9da9: Pull complete
22012278af40: Pull complete
58b1e653474f: Pull complete
357fefdf9bc9: Pull complete
a697cc8a1d5c: Pull complete
5c2e4179bee1: Pull complete
c4e3bdcbb8c3: Pull complete
04f9e5a54d38: Pull complete
c238db6a02a5: Pull complete
53a52c7f9926: Pull complete
0cceee8a8cb0: Pull complete
a302059dbdba: Pull complete
db1bbcc47135: Pull complete
4f4fb700ef54: Pull complete
Digest: sha256:01b9067fe10704647b0992b56699a4e59431d1162e769706dcf5da5dfda928c8
Status: Downloaded newer image for cnbs/sample-builder:bionic
bionic: Pulling from cnbs/sample-stack-run
e4ca327ec0e7: Already exists
55fae2d3d3bc: Already exists
6faf60e5f26d: Already exists
Digest: sha256:38f19fee4ffd8caafb5550da2d26687feba159528d041101ad99cc7390a0f578
Status: Downloaded newer image for cnbs/sample-stack-run:bionic
0.11.3: Pulling from buildpacksio/lifecycle
5dea5ec2316d: Pull complete
6d75e71a489d: Pull complete
Digest: sha256:d6c578fbdf88f2e2594d9907307b17775e648656f62e1ae810d31c804f928cf9
Status: Downloaded newer image for buildpacksio/lifecycle:0.11.3
===> DETECTING
[detector] samples/java-maven 0.0.1
===> ANALYZING
[analyzer] Previous image with name "sample-app" not found
===> RESTORING
===> BUILDING
[builder] ---> Java buildpack
[builder] ---> Installing JDK
[builder] ---> Running Maven Wrapper
[builder] qemu: uncaught target signal 11 (Segmentation fault) - core dumped
[builder] /cnb/buildpacks/samples_java-maven/0.0.1/bin/build: line 116: 60 Segmentation fault ./mvnw clean install -B -DskipTests
[builder] ERROR: failed to build: exit status 139
ERROR: failed to build: executing lifecycle. This may be the result of using an untrusted builder: failed with status code: 51
Environment
- pack CLI:
0.21.1+git-e09e397.build-2823
- docker:
Docker version 20.10.7, build f0df350
- OS: macOS 11.6 (with an Apple M1 chip)
Problem
I tried running the Build an app example in the Buildpack docs, but hit an error while doing so. Any thoughts on how to troubleshoot would be greatly appreciated.
Steps to reproduce
brew install buildpacks/tap/packgit clone https://github.com/buildpacks/samplespack build sample-app --path samples/apps/java-maven --builder cnbs/sample-builder:bionicOutcome / Stack trace
Environment
0.21.1+git-e09e397.build-2823Docker version 20.10.7, build f0df350