Coder Social home page Coder Social logo

Comments (3)

jokeyrhyme avatar jokeyrhyme commented on August 17, 2024 1

Ah, thanks for that, @frezbo

I didn't have QEMU installed, so I installed it (from the Archlinux AUR) with: paru -S binfmt-qemu-static qemu-user-static

I should have read the docker buildx documentation more closely: https://docs.docker.com/build/buildx/#build-multi-platform-images

Cheers! <3

from pkgs.

jokeyrhyme avatar jokeyrhyme commented on August 17, 2024

In case it matters, my environment variables (on the host outside of the build containers) include:

╭────┬──────────────┬──────────────────────────────────────────────────────────────╮
│ #  │     name     │                            value                             │
├────┼──────────────┼──────────────────────────────────────────────────────────────┤
│  0 │ CFLAGS       │ -Os -march=native -mtune=native -fno-plt                     │
│  1 │ CGO_CFLAGS   │ -Os -march=native -mtune=native -fno-plt                     │
│  2 │ CGO_CPPFLAGS │ -Os -march=native -mtune=native -fno-plt -D_FORTIFY_SOURCE=2 │
│  3 │ CGO_CXXFLAGS │ -Os -march=native -mtune=native -fno-plt                     │
│  4 │ CGO_LDFLAGS  │ -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now            │
│  5 │ CPPFLAGS     │ -Os -march=native -mtune=native -fno-plt -D_FORTIFY_SOURCE=2 │
│  6 │ CXXFLAGS     │ -Os -march=native -mtune=native -fno-plt                     │
│  7 │ GOFLAGS      │ -trimpath -mod=readonly -modcacherw                          │
│  8 │ LDFLAGS      │ -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now            │
│  9 │ MAKEFLAGS    │ -j11                                                         │
│ 10 │ RUSTFLAGS    │ -C target-cpu=native -D warnings                             │
╰────┴──────────────┴──────────────────────────────────────────────────────────────╯

It doesn't look like I have -Wall there, but I do have some warning-related linker flags there

from pkgs.

frezbo avatar frezbo commented on August 17, 2024

it seems an issue with cross-compilation on your environment. I just verified I can build and the CI also works fine. Do you have the qemu-static binaries installed on your host?

from pkgs.

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.