Code Monkey home page Code Monkey logo

Comments (3)

agouin avatar agouin commented on June 12, 2024 1

setting BUILDKIT_PROGRESS=plain helps to see where exactly the build is failing. It is failing only for arm64, here are the logs:

#43 109.5 + COMMIT=f760927771c926464a98b0a902087fdc1bddabd5
#43 109.5 + COMMON_LDFLAGS=-X github.com/cosmos/cosmos-sdk/version.Name=agoric   -X github.com/cosmos/cosmos-sdk/version.AppName=agd   -X github.com/cosmos/cosmos-sdk/version.Version=pismoD   -X github.com/cosmos/cosmos-sdk/version.BuildTags=BUILD_TAGS=muslc   -X github.com/cosmos/cosmos-sdk/version.Commit=f760927771c926464a98b0a902087fdc1bddabd5
#43 109.5 + go build -v -mod=readonly -tags BUILD_TAGS=muslc -ldflags -X github.com/cosmos/cosmos-sdk/version.Name=agoric   -X github.com/cosmos/cosmos-sdk/version.AppName=agd   -X github.com/cosmos/cosmos-sdk/version.Version=pismoD   -X github.com/cosmos/cosmos-sdk/version.BuildTags=BUILD_TAGS=muslc   -X github.com/cosmos/cosmos-sdk/version.Commit=f760927771c926464a98b0a902087fdc1bddabd5 -buildmode=c-shared -o build/libagcosmosdaemon.so ./cmd/libdaemon/main.go
#43 109.6 go: no Go source files
#43 ERROR: process "/bin/sh -c set -eux;    if [ ! -z \"$GO_VERSION\" ]; then export PATH=$PATH:/usr/local/go/bin; fi;    if [ \"$TARGETARCH\" = \"arm64\" ]; then export ARCH=aarch64 CAPS=AARCH64;    elif [ \"$TARGETARCH\" = \"amd64\" ]; then export ARCH=x86_64 CAPS=x86_64; fi;    export CARGO_BUILD_TARGET=${ARCH}-unknown-linux-gnu;    if [ \"$TARGETARCH\" != \"$BUILDARCH\" ]; then      export CARGO_TARGET_${CAPS}_UNKNOWN_LINUX_GNU_LINKER=${ARCH}-linux-gnu-gcc        CC_${ARCH}_unknown_linux_gnu=${ARCH}-linux-gnu-gcc        CXX_${ARCH}_unknown_linux_gnu=${ARCH}-linux-gnu-g++        PKG_CONFIG_SYSROOT_DIR=/usr/${ARCH}-linux-gnu;    fi;    [ ! -z \"$PRE_BUILD\" ] && sh -c \"${PRE_BUILD}\";    if [ ! -z \"$BUILD_TARGET\" ]; then      if [ ! -z \"$BUILD_ENV\" ]; then export ${BUILD_ENV}; fi;      if [ ! -z \"$BUILD_TAGS\" ]; then export \"${BUILD_TAGS}\"; fi;      if [ ! -z \"$BUILD_DIR\" ]; then cd \"${BUILD_DIR}\"; fi;      sh -c \"${BUILD_TARGET}\";    fi" did not complete successfully: exit code: 1

from heighliner.

DavidNix avatar DavidNix commented on June 12, 2024
# Move to final location
mkdir /agoric-sdk
mv packages node_modules bin golang /agoric-sdk
";    if [ ! -z "" ]; then      if [ ! -z "LEDGER_ENABLED=false " ]; then export LEDGER_ENABLED=false ; fi;      if [ ! -z "BUILD_TAGS=muslc" ]; then export "BUILD_TAGS=muslc"; fi;      if [ ! -z "" ]; then cd ""; fi;      sh -c "";    fi
error building docker image for agoric from ref: mainnet1B-rc3 - failed to solve: process "/bin/sh -c set -eux;    if [ ! -z \"$GO_VERSION\" ]; then export PATH=$PATH:/usr/local/go/bin; fi;    if [ \"$TARGETARCH\" = \"arm64\" ]; then export ARCH=aarch64 CAPS=AARCH64;    elif [ \"$TARGETARCH\" = \"amd64\" ]; then export ARCH=x86_64 CAPS=x86_64; fi;    export CARGO_BUILD_TARGET=${ARCH}-unknown-linux-gnu;    if [ \"$TARGETARCH\" != \"$BUILDARCH\" ]; then      export CARGO_TARGET_${CAPS}_UNKNOWN_LINUX_GNU_LINKER=${ARCH}-linux-gnu-gcc        CC_${ARCH}_unknown_linux_gnu=${ARCH}-linux-gnu-gcc        CXX_${ARCH}_unknown_linux_gnu=${ARCH}-linux-gnu-g++        PKG_CONFIG_SYSROOT_DIR=/usr/${ARCH}-linux-gnu;    fi;    [ ! -z \"$PRE_BUILD\" ] && sh -c \"${PRE_BUILD}\";    if [ ! -z \"$BUILD_TARGET\" ]; then      if [ ! -z \"$BUILD_ENV\" ]; then export ${BUILD_ENV}; fi;      if [ ! -z \"$BUILD_TAGS\" ]; then export \"${BUILD_TAGS}\"; fi;      if [ ! -z \"$BUILD_DIR\" ]; then cd \"${BUILD_DIR}\"; fi;      sh -c \"${BUILD_TARGET}\";    fi" did not complete successfully: exit code: 1

panic: Some images failed to build

goroutine 1 [running]:
github.com/strangelove-ventures/heighliner/builder.(*HeighlinerBuilder).BuildImages(0xc000567b80)
        /home/strangelove/heighliner/builder/builder.go:494 +0x118
github.com/strangelove-ventures/heighliner/cmd.queueAndBuild({{0x7ffc2b024659, 0x27}, 0x0, 0x1, {0x7ffc2b024641, 0x14}, {0xf4165e, 0x17}, 0x0, 0x0}, ...)
        /home/strangelove/heighliner/cmd/queue.go:119 +0xd8a
github.com/strangelove-ventures/heighliner/cmd.BuildCmd.func1(0xc000527b80?, {0xf2dd0c?, 0x9?, 0x9?})
        /home/strangelove/heighliner/cmd/build.go:130 +0x298
github.com/spf13/cobra.(*Command).execute(0xc000527b80, {0xc0000ca1b0, 0x9, 0x9})
        /home/strangelove/go/pkg/mod/github.com/spf13/[email protected]/command.go:860 +0x663
github.com/spf13/cobra.(*Command).ExecuteC(0xc000527900)
        /home/strangelove/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
        /home/strangelove/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/strangelove-ventures/heighliner/cmd.Execute({0x1700d80?, 0xda4200?, 0xc0000021a0?})
        /home/strangelove/heighliner/cmd/root.go:32 +0xe5
main.main()
        /home/strangelove/heighliner/main.go:13 +0x2e

from heighliner.

agouin avatar agouin commented on June 12, 2024

adding the flag --platform linux/amd64 should work as a temporary workaround. We could add this to the chains.yaml to disable arm64 builds:

  platforms:
    - linux/amd64

Although figuring out the source of go: no Go source files would be nice to keep the arm64 images.

from heighliner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.