pulp-platform / bender

A dependency management tool for hardware projects.
Apache License 2.0
232 stars 36 forks source link

Error: Latest release not available for platform 'x86_64-linux-gnu-ubuntu24.04'! #175

Open aitesam961 opened 3 months ago

aitesam961 commented 3 months ago

This issue originates from pulp-ara. I can confirm that it works perfectly on Ubuntu 22.04 LTS but seems not to work with 24.04.

Log

ind: ‘deps’: No such file or directory
find: ‘deps’: No such file or directory
bender-init: Warning: No release for platform 'x86_64-linux-gnu-ubuntu24.04' version '0.27.3' found, using latest.
sh: 329: [[: not found
bender-init: Error: Latest release not available for platform 'x86_64-linux-gnu-ubuntu24.04'!

**QS: Is there a way to make it usable on 24.04LTS or would the bender be limited to 22 LTS?**

Steps to Reproduce:

# requires a 24.04LTS machine
git clone <pulp-ara
git submodule update --init --recursive
git submodule sync --recursive
cd hardware
make checkout

To Quickly try out this issue: Spin up a public github repo and use the attached actions.yaml file content

name: Build ara on Ubuntu

on:
  push:

jobs:
  build:
    runs-on: ubuntu-24.04
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Install dependencies
        run: |
          sudo apt-get update
          sudo apt-get install autoconf automake autotools-dev curl python3 python3-pip libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build git cmake libglib2.0-dev libslirp-dev device-tree-compiler libboost-regex-dev libboost-system-dev

      - name: Clone ara repository
        run: git clone https://github.com/pulp-platform/ara.git

      - name: Navigate to ara directory
        run: |
          cd ara
          ls -l

      - name: Update and sync submodules
        run: |
          git submodule update --init --recursive
          git submodule sync --recursive

      - name: Install HW deps
        run: |
          cd ara/hardware
          ls -la
          make checkout
micprog commented 3 months ago

The script here, linked in the ara hardware makefile downloads the referenced bender version from the github releases. If there is a prebuilt version available for your OS, it will download this, otherwise mention that it is unavailable, check the most recent bender version for a compatible binary, and then download the default linux-gnu version. This default version should also work, as far as I know, however there seems to be an issue in the script that causes the download to fail for you: https://github.com/pulp-platform/bender/blob/e6af4f7406d31a0555fe5a6d85948017fce02b1a/init#L329

Let's make sure the download script works correctly when the specified version & OS is not available, I will open a PR with an initial fix. Adding the new OS version as you did in #176 of course also makes sense.