Open joaociocca opened 2 months ago
You need to make sure all build dependencies are up to date as well (either for go or others). This differs per machine, but the brew docs have a good page on which to add here.
Seeing the same behavior (with up-to-date brew build deps) when on the Ubuntu 24.04 pre-release branch.
Seeing the same behavior (with up-to-date brew build deps) when on the Ubuntu 24.04 pre-release branch.
I'm running on 23.10
You need to make sure all build dependencies are up to date as well (either for go or others). This differs per machine, but the brew docs have a good page on which to add here.
╰─❯ sudo apt-get install build-essential procps curl file git
2024-04-15 13:54:23 sudo apt-get install build-essential procps curl file git
[sudo] password for jciocca:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.10ubuntu1).
procps is already the newest version (2:4.0.3-1ubuntu1.23.10.1).
procps set to manually installed.
curl is already the newest version (8.2.1-1ubuntu3.3).
file is already the newest version (1:5.44-3).
file set to manually installed.
git is already the newest version (1:2.40.1-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
all up to date... then trying brew update & upgrade, I fail =(
2024-04-15 13:55:10 brew update
==> Updating Homebrew...
Updated 1 tap (homebrew/core).
==> New Formulae
kubecolor lexido mdformat morpheus
==> Outdated Formulae
linux-headers@5.15 oh-my-posh
You have 2 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
2024-04-15 13:55:33 brew upgrade
==> Auto-updating Homebrew...
==> Upgrading 2 outdated packages:
linux-headers@5.15 5.15.154 -> 5.15.155
jandedobbeleer/oh-my-posh/oh-my-posh 19.11.4 -> 19.20.0
==> Downloading https://ghcr.io/v2/homebrew/core/linux-headers/5.15/manifests/5.15.155
############################################################################################################################################################################################################## 100.0%
==> Fetching linux-headers@5.15
==> Downloading https://ghcr.io/v2/homebrew/core/linux-headers/5.15/blobs/sha256:10754280c98b7954afa0a6f4d5962829605e958dab0cac173b2943e143b9e03c
############################################################################################################################################################################################################## 100.0%
==> Fetching jandedobbeleer/oh-my-posh/oh-my-posh
==> Downloading https://github.com/JanDeDobbeleer/oh-my-posh/archive/v19.20.0.tar.gz
Already downloaded: /home/jciocca/.cache/Homebrew/downloads/c6a4121a395675b73396754f4b5d2b9ab108b084be4eadfc535570828111526e--oh-my-posh-19.20.0.tar.gz
==> Upgrading linux-headers@5.15
5.15.154 -> 5.15.155
==> Pouring linux-headers@5.15--5.15.155.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/linux-headers@5.15/5.15.155: 960 files, 5.7MB
==> Running `brew cleanup linux-headers@5.15`...
Removing: /home/linuxbrew/.linuxbrew/Cellar/linux-headers@5.15/5.15.154... (960 files, 5.7MB)
Removing: /home/jciocca/.cache/Homebrew/linux-headers@5.15_bottle_manifest--5.15.154... (1.9KB)
Removing: /home/jciocca/.cache/Homebrew/linux-headers@5.15--5.15.154... (1.5MB)
==> Upgrading jandedobbeleer/oh-my-posh/oh-my-posh
19.11.4 -> 19.20.0
==> go build -o=oh-my-posh -ldflags="-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=19.20.0' -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Date=2024-04-03T14:29:04Z'"
Last 15 lines from /home/jciocca/.cache/Homebrew/Logs/oh-my-posh/01.build.Date=2024-04-03T14:29:04Z'":
2024-04-15 16:55:42 +0000
go build -o=oh-my-posh -ldflags="-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=19.20.0' -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Date=2024-04-03T14:29:04Z'"
# github.com/jandedobbeleer/oh-my-posh/src
/home/linuxbrew/.linuxbrew/Cellar/go/1.22.2/libexec/pkg/tool/linux_amd64/link: running gcc-11 failed: exit status 1
/home/linuxbrew/.linuxbrew/opt/binutils/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so: error loading plugin: /home/linuxbrew/.linuxbrew/opt/glibc/lib/libc.so.6: version `GLIBC_2.38' not found (required by /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so)
collect2: error: ld returned 1 exit status
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/jandedobbeleer/homebrew-oh-my-posh/issues
it's not so bad that the current version is working without problems... I just can't update.
Can you try to install golang separately? This isn't an issue with the oh-my-posh formula, but a non-installed build dependency on your machine (which is related to the sometimes crappyness of brew).
installing go outside brew sudo apt install -y golang-go
worked and then the brew upgrade
finished upgrading OMP!
OPS. Nope, my bad, I din't pay enough attention to it :facepalm:
==> Updating Homebrew...
Updated 1 tap (jandedobbeleer/oh-my-posh).
==> Outdated Formulae
oh-my-posh
You have 1 outdated formula installed.
You can upgrade it with brew upgrade
or list it with brew outdated.
==> Auto-updating Homebrew...
==> Upgrading 1 outdated package:
jandedobbeleer/oh-my-posh/oh-my-posh 19.11.4 -> 19.23.0
==> Fetching jandedobbeleer/oh-my-posh/oh-my-posh
==> Downloading https://github.com/JanDeDobbeleer/oh-my-posh/archive/v19.23.0.tar.gz
==> Downloading from https://codeload.github.com/JanDeDobbeleer/oh-my-posh/tar.gz/refs/tags/v19.23.0
########################################################################################################################################################## 100.0%
==> Upgrading jandedobbeleer/oh-my-posh/oh-my-posh
19.11.4 -> 19.23.0
==> go build -o=oh-my-posh -ldflags="-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=19.23.0' -X 'github.com/jandedobbeleer/oh-my-posh/src/build
Last 15 lines from /home/jciocca/.cache/Homebrew/Logs/oh-my-posh/01.build.Date=2024-04-19T21:14:52Z'":
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/fatih/color v1.16.0
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go: downloading github.com/zclconf/go-cty v1.14.3
go: downloading github.com/agext/levenshtein v1.2.3
go: downloading github.com/apparentlymart/go-textseg/v15 v15.0.0
go: downloading github.com/mitchellh/go-wordwrap v1.0.1
go: downloading github.com/google/go-cmp v0.6.0
go: downloading github.com/mattn/go-colorable v0.1.13
# github.com/jandedobbeleer/oh-my-posh/src
/home/linuxbrew/.linuxbrew/Cellar/go/1.22.2/libexec/pkg/tool/linux_amd64/link: running gcc-11 failed: exit status 1
/home/linuxbrew/.linuxbrew/opt/binutils/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so: error loading plugin: /home/linuxbrew/.linuxbrew/opt/glibc/lib/libc.so.6: version `GLIBC_2.38' not found (required by /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so)
collect2: error: ld returned 1 exit status
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/jandedobbeleer/homebrew-oh-my-posh/issues
@joaociocca I propose to use the manual update rather than Homebrew. Some dependency is missing, but I have no idea which one and this, contrary to what the message says, is a homebrew configuration issue.
@joaociocca Even if you install go outside brew, brew will build against "its" version. Upgrading/installing via homebrew but using system dependencies isn't really supported (anymore) https://docs.brew.sh/Building-Against-Non-Homebrew-Dependencies#today
ok, removed from brew, manually installed. I'm on 19.24.2 now with no errors.
Hey @JanDeDobbeleer I just ran
brew upgrade
and ended up with this error:I don't think I have anything else except OMP using brew, but I could be wrong =p
Any idea how to fix this and upgrade OMP?