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 on an aarch64 host #11313

Open
billatarm opened this issue Dec 4, 2024 · 3 comments
Open

Cannot build on an aarch64 host #11313

billatarm opened this issue Dec 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@billatarm
Copy link

Describe the bug
I have tried following the documentation to build VHD, VHDX and ISO images, and have yet to get anything to work.
I am using this as the documentation source: https://github.com/microsoft/azurelinux/blob/3.0/toolkit/docs/quick_start/quickstart.md

It appears that something with the RPM fetch is failing, AFAICT:

WARN[0022][imagepkgfetcher] Failed to clone packages in a single transaction, will retry with individual transactions... (retry cancelled, last error:
exit status 243) 
WARN[0022][imagepkgfetcher]     Check log file '/home/wilrob02/workspace/azurelinux/build/logs/imggen/imagepkgfetcher.log' for more details from package manager. 
ERRO[0046][imagepkgfetcher] Also failed to clone packages with individual transactions. Error: retry cancelled, last error:
exit status 243 
ERRO[0046][imagepkgfetcher]     Check log file '/home/wilrob02/workspace/azurelinux/build/logs/imggen/imagepkgfetcher.log' for more details from package manager. 
PANI[0046][imagepkgfetcher] Failed to clone RPM repo. Error: retry cancelled, last error:

The log file has this:

time="2024-12-04T13:37:05-06:00" level=debug msg="shim package not found or not installed"
time="2024-12-04T13:37:05-06:00" level=debug msg="Error(1011) : No matching packages"

Am I missing some build dependency here? Do I have to build on Ubuntu?

To Reproduce

  • Fedora 42 (I have also tried f40 and f41)
  • AArch64 Host
  • run command from toolkit directory:
    • sudo make image -j8 REBUILD_TOOLS=y REBUILD_PACKAGES=n CONFIG_FILE=./imageconfigs/core-efi.json 2>&1 | tee logz
    • sudo make image -j8 REBUILD_TOOLS=y REBUILD_PACKAGES=n CONFIG_FILE=./imageconfigs/core-legacy.json
    • sudo make iso -j8 REBUILD_TOOLS=y REBUILD_PACKAGES=n CONFIG_FILE=./imageconfigs/full.json

Expected behavior
A successful build

@billatarm billatarm added the bug Something isn't working label Dec 4, 2024
@zcobol
Copy link

zcobol commented Dec 6, 2024

@billatarm you are building a x86_64 image on an aarch64 host. I did a build of imageconfigs/core-efi-aarch64.json on a rpi4 running f41 using 3.0-stable branch and it worked w/out errors.

End of build console output:

---cut---
INFO[0000][roast] Converting (1) artifacts
WARN[0208][roast] Skipping move. Source and destination are the same file (/home/zcobol/azurelinux/out/images/core-efi-aarch64/core-3.0.20241205.2353.vhdx).
INFO[0208][roast] [1/1] Converted (/home/zcobol/azurelinux/build/imagegen/core-efi-aarch64/imager_output/disk0.raw) -> (/home/zcobol/azurelinux/out/images/core-efi-aarch64/core-3.0.20241205.2353.vhdx)

Command used for testing:

sudo make image -j2 REBUILD_TOOLS=y REBUILD_PACKAGES=n CONFIG_FILE=./imageconfigs/core-efi-aarch64.json

Host info:

     Static hostname: raspi
           Icon name: computer-desktop
             Chassis: desktop 🖥️
          Machine ID: bce81e82720c42719356e4d033c0b970
             Boot ID: 460f23db95e74ddb814827bb4150ad07
    Operating System: Fedora Linux 41 (Server Edition)
         CPE OS Name: cpe:/o:fedoraproject:fedora:41
      OS Support End: Tue 2025-05-13
OS Support Remaining: 5month 5d
              Kernel: Linux 6.11.4-301.fc41.aarch64
        Architecture: arm64
     Hardware Vendor: raspberrypi
      Hardware Model: Raspberry Pi 4 Model B Rev 1.2
    Firmware Version: 2024.10
       Firmware Date: Tue 2024-10-01
        Firmware Age: 2month 5d

@billatarm
Copy link
Author

billatarm commented Dec 6, 2024

Ok, so this is a documentation issue, we need to update the documentation to cover both x86-64 and AArch64. I like that x86-64 arch specific config files don't have an arch suffix. Is there a hosted bootable ISO image for aarch64 like their is mentioned for x86-64?

@reubeno
Copy link
Member

reubeno commented Dec 7, 2024

@billatarm Good timing for that question! The main README's ISO section was just updated today with a link to a bootable 3.0 aarch64 ISO.

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

No branches or pull requests

3 participants