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

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

Open
aitesam961 opened this issue Jun 29, 2024 · 1 comment

Comments

@aitesam961
Copy link

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
Copy link
Member

micprog commented Jul 1, 2024

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:

bender/init

Line 329 in e6af4f7

if [[ $_platform =~ ^$_fallback.*$ ]]; then

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants