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

Cannot build docker image in the latest main commit #314

Closed
4 tasks
170210 opened this issue Jan 17, 2024 · 0 comments · Fixed by #316
Closed
4 tasks

Cannot build docker image in the latest main commit #314

170210 opened this issue Jan 17, 2024 · 0 comments · Fixed by #316
Assignees
Labels
bug Something isn't working

Comments

@170210
Copy link
Contributor

170210 commented Jan 17, 2024

Summary of Bug

When I try to build a Docker image following the README, using make docker-build or make docker-build ARCH=arm64, an error occurs.
The error info is as follows:

Dockerfile:41
--------------------
  40 |     # Build fnsad binary
  41 | >>> RUN --mount=type=cache,target=/root/.cache/go-build \
  42 | >>>     --mount=type=cache,target=/root/go/pkg/mod \
  43 | >>>     GOWORK=off go build \
  44 | >>>         -mod=readonly \
  45 | >>>         -tags "netgo,ledger,muslc,goleveldb" \
  46 | >>>         -ldflags \
  47 | >>>             "-X github.com/Finschia/finschia-sdk/version.Name=finschia \
  48 | >>>             -X github.com/Finschia/finschia-sdk/version.AppName=fnsad \
  49 | >>>              -X github.com/Finschia/finschia-sdk/version.Version=${GIT_VERSION} \
  50 | >>>              -X github.com/Finschia/finschia-sdk/version.Commit=${GIT_COMMIT} \
  51 | >>>              -X github.com/Finschia/ostracon/version.TMCoreSemVer=${OST_VERSION} \
  52 | >>>              -X github.com/Finschia/finschia-sdk/types.DBBackend=goleveldb \
  53 | >>>              -X github.com/Finschia/finschia-sdk/version.BuildTags=netgo,ledger,muslc,goleveldb \
  54 | >>>             -w -s -linkmode=external -extldflags '-Wl,-z,muldefs -static'" \
  55 | >>>         -trimpath \
  56 | >>>         -o /finschia-build/finschia/build/fnsad \
  57 | >>>         /finschia-build/finschia/cmd/fnsad
  58 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c GOWORK=off go build         -mod=readonly         -tags \"netgo,ledger,muslc,goleveldb\"         -ldflags             \"-X github.com/Finschia/finschia-sdk/version.Name=finschia             -X github.com/Finschia/finschia-sdk/version.AppName=fnsad     \t\t-X github.com/Finschia/finschia-sdk/version.Version=${GIT_VERSION}     \t\t-X github.com/Finschia/finschia-sdk/version.Commit=${GIT_COMMIT}     \t\t-X github.com/Finschia/ostracon/version.TMCoreSemVer=${OST_VERSION}     \t\t-X github.com/Finschia/finschia-sdk/types.DBBackend=goleveldb     \t\t-X github.com/Finschia/finschia-sdk/version.BuildTags=netgo,ledger,muslc,goleveldb             -w -s -linkmode=external -extldflags '-Wl,-z,muldefs -static'\"         -trimpath         -o /finschia-build/finschia/build/fnsad         /finschia-build/finschia/cmd/fnsad" did not complete successfully: exit code: 1
make: *** [docker-build] Error 1

Version

The commit is: df5fc00

Steps to Reproduce

make docker-build or make docker-build ARCH=arm64


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@170210 170210 added the bug Something isn't working label Jan 19, 2024
@170210 170210 self-assigned this Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant