Giter Site home page Giter Site logo

Comments (4)

mmlb avatar mmlb commented on August 24, 2024

Hey @Smithx10 can you try with make, that should work. I've been noodling a way to still be go buildable with just degraded functionality.

from boots.

Smithx10 avatar Smithx10 commented on August 24, 2024

@mmlb Thanks for the quick response,

I'm attempting to compile for amd64. Looks like like ipxe build.sh is setting /bin/sh: CROSS_COMPILE to aarch64-unknown-linux-gnu-gcc: and then I geta bunch of command not founds

arch@9d46dd2d-1178-ce83-cbc4-d396e4a24060 ~/g/boots ❯❯❯ make boots-linux-amd64                                                                                                                 ✘ 130 master
t=bin-arm64-efi/snp.efi
rm -rf ipxe/ipxe/build/bin-arm64-efi
mkdir -p ipxe/ipxe/build/bin-arm64-efi
tar -xzf ipxe/ipxe/build/a5fb41873dc1dcce5dcc817bf53a0649c01f8cac.tar.gz -C ipxe/ipxe/build/bin-arm64-efi
cp ipxe/ipxe/colour.h ipxe/ipxe/common.h ipxe/ipxe/console.h ipxe/ipxe/general.efi.h ipxe/ipxe/general.undionly.h ipxe/ipxe/isa.h ipxe/ipxe/build/bin-arm64-efi
cd ipxe/ipxe/build/bin-arm64-efi && ../../build.sh $t a5fb41873dc1dcce5dcc817bf53a0649c01f8cac
+ case $build in
+ rm ipxe-a5fb41873dc1dcce5dcc817bf53a0649c01f8cac/src/config/local/isa.h
+ cp ipxe-a5fb41873dc1dcce5dcc817bf53a0649c01f8cac/src/config/local/general.efi.h ipxe-a5fb41873dc1dcce5dcc817bf53a0649c01f8cac/src/config/local/general.h
+ sed -i '/^WORKAROUND_CFLAGS/ s|^|#|' ipxe-a5fb41873dc1dcce5dcc817bf53a0649c01f8cac/src/arch/arm64/Makefile
+ [[ -z '' ]]
+ export CROSS_COMPILE=aarch64-unknown-linux-gnu-
+ CROSS_COMPILE=aarch64-unknown-linux-gnu-
+ rm ipxe-a5fb41873dc1dcce5dcc817bf53a0649c01f8cac/src/config/local/general.efi.h ipxe-a5fb41873dc1dcce5dcc817bf53a0649c01f8cac/src/config/local/general.undionly.h
+ make -C ipxe-a5fb41873dc1dcce5dcc817bf53a0649c01f8cac/src VERSION_PATCH=255 'EXTRAVERSION=+ (a5fb4)' bin-arm64-efi/snp.efi
make[1]: Entering directory '/mnt/git/boots/ipxe/ipxe/build/bin-arm64-efi/ipxe-a5fb41873dc1dcce5dcc817bf53a0649c01f8cac/src'
/bin/sh: aarch64-unknown-linux-gnu-gcc: command not found
rm -f bin-arm64-efi/*.*  bin-arm64-efi/.certificate.* bin-arm64-efi/.certificates.* bin-arm64-efi/.private_key.* bin-arm64-efi/errors    bin-arm64-efi/NIC       ./util/zbin ./util/elf2efi32 ./util/elf2efi64 ./util/efirom ./util/efifatbin ./util/iccfix ./util/einfo TAGS bin-arm64-efi/symtab
  [PARSEROM]
  [DEPS] arch/arm64/core/setjmp.S
/bin/sh: aarch64-unknown-linux-gnu-gcc: command not found
  [DEPS] drivers/net/ath/ath9k/ath9k_xmit.c
/bin/sh: aarch64-unknown-linux-gnu-gcc: command not found
  [DEPS] drivers/net/ath/ath9k/ath9k_recv.c
/bin/sh: aarch64-unknown-linux-gnu-gcc: command not found
  [DEPS] drivers/net/ath/ath9k/ath9k_main.c
/bin/sh: aarch64-unknown-linux-gnu-gcc: command not found

from boots.

mmlb avatar mmlb commented on August 24, 2024

Hey @Smithx10 the makefile and build setup is tailored for building under nixos/nix-shell but can be tailored to your system. It all depends on what the arm64 cross compiler for your system is named, for example under ubuntu it would be CROSS_COMPILE=aarch64-linux-gnu- (installed via https://github.com/tinkerbell/boots/blob/master/ipxe/ipxe/build.sh#L5-L6).

We can probably do a better job of checking ${CROSS_COMPILE}gcc exists in build.sh though.

from boots.

tstromberg avatar tstromberg commented on August 24, 2024

Would the original issue go away if we adopt Go's newer embed feature? https://pkg.go.dev/embed

from boots.

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.