tinygo-site icon indicating copy to clipboard operation
tinygo-site copied to clipboard

The instructions as relates to installing clang-9 on Debian/Ubuntu Variants will dead lock for Linux Mint users.

Open Ankhwatcher opened this issue 5 years ago • 4 comments

The instructions here will concatenate the repository as:

deb http://apt.llvm.org/tara/ llvm-toolchain-tara-9 main

on Linux Mint Tara http repos are disabled and error messages will show up on apt update.

E: The repository 'http://apt.llvm.org/tara llvm-toolchain-tara-9 Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default.

I'd suggest either updating the server to redirect tara to bionic or at least make it clear that this will happen in the instructions and warn LinuxMint users to fix it.

Ankhwatcher avatar Dec 01 '19 11:12 Ankhwatcher

I see, lsb_release -s -c returns tara instead of (what I would expect) bionic - because that's what this Linux Mint release seems to be based on. Most likely you could replace tara with bionic and it'll just work.

We don't control apt.llvm.org, that is part of the LLVM organization, not TinyGo. They have no special builds for Linux Mint, only for Ubuntu and Debian (as you can see on that website). However, the installation instructions in TinyGo do clearly lead to this error:

wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -s -c)/ llvm-toolchain-$(lsb_release -s -c)-9 main"
sudo apt-get update

We could add a warning, but that would also further clutter the installation instructions. Maybe a troubleshooting section would help? @deadprogram what do you think?

aykevl avatar Dec 01 '19 11:12 aykevl

Linux Mint is a Debian, but due to the reasons in this thread, seems like we're a bit stuck with it since we do not control any of the repos there.

If you determine how to install LLVM on mint, you could submit a PR to add to a Linux Mint section.

deadprogram avatar Dec 03 '19 15:12 deadprogram

The new version of TinyGo no longer requires the LLVM installation for normal use. As such this issue will be mostly eliminated, unless someone on Linux Mint wants to do a source install of TinyGo, which will still require LLVM.

deadprogram avatar Dec 23 '19 08:12 deadprogram

This issue looks very out of date :)

kenbell avatar Mar 16 '21 06:03 kenbell