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

missing binary / wrong binary for Raspberry / Raspbian armv7l vs. armhf #9128

Closed
gj52 opened this issue Nov 4, 2021 · 10 comments
Closed

missing binary / wrong binary for Raspberry / Raspbian armv7l vs. armhf #9128

gj52 opened this issue Nov 4, 2021 · 10 comments

Comments

@gj52
Copy link

gj52 commented Nov 4, 2021

What version of Hugo are you using (hugo version)?

0.89

Does this issue reproduce with the latest release?

download hugo_0.89.0_Linux-ARM.deb and install on Raspbian

root@pi4:/home/hugo/hugo/_raspbian# dpkg -i hugo_0.89.0_Linux-ARM.deb
dpkg: Fehler beim Bearbeiten des Archivs hugo_0.89.0_Linux-ARM.deb (--install): ## ERROR installing
Paket-Architektur (armv7l) passt nicht zum System (armhf) ## does not match architecure armhf

@bep bep added this to the v0.89.1 milestone Nov 5, 2021
@bep
Copy link
Member

bep commented Nov 5, 2021

Probably this commit: goreleaser/goreleaser@d7e1bcc

@caarlos0 sorry for "mentioning you" like this, but when you say "armv7 on linux is usually armv7l", what do you base that on? (in GoReleaser it has been armhf as long as I remember).

To fix the above particular issue, I assume I can I just do:

    goarch:
      - amd64
      - 386
      - arm
      - arm6
      - arm64

@gj52
Copy link
Author

gj52 commented Nov 5, 2021

I'm using an Raspberry 4 for education ...

The German error text says:

The image is for armv7l architecture, but the HW/OS is armv7l 32bit!

OS says:

upi@pi4:~ $ uname -a
Linux pi4 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux

pi@pi4:~ $ lscpu
Architecture:        armv7l
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
Vendor ID:           ARM
Model:               3
Model name:          Cortex-A72
Stepping:            r0p3
CPU max MHz:         1500,0000
CPU min MHz:         600,0000
BogoMIPS:            108.00
Flags:               half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32

HTH

@caarlos0
Copy link
Contributor

caarlos0 commented Nov 5, 2021

@bep no problem

I mean that as far as I've seen, when GOARCH=arm and GOARM=7 it is a arm7l instead of armhf, that's why that change was made

@gj52 you'll likely need the arm6 package (which should be armhf)

EDIT: forgot to add the config to fix:

    goos:
      - darwin
      - linux
      - windows
    goarch:
      - amd64
      - 386
      - arm
      - arm64
    goarm:
      - 7
      - 6 # add this line :)

@caarlos0
Copy link
Contributor

caarlos0 commented Nov 5, 2021

will likely need to change some name templates as well, e.g. https://github.com/gohugoio/hugo/blob/master/goreleaser.yml#L170

probably something like:

file_name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}{{ with .Arm }}{{ . }}{{ end }}"

bep added a commit that referenced this issue Nov 5, 2021
This had some side effect that I'm not prepared to fix today ...

This reverts commit 3a97748.

Updates #9131
Updates #9128
@bep
Copy link
Member

bep commented Nov 5, 2021

I have released 0.89.1 where I have reverted the "Goreleaser MacOS fat binary" update, which I assumes also fixes this issue, but I'll keep this issue open to track the comeback of that feature.

@bep bep modified the milestones: v0.89.1, v0.90 Nov 5, 2021
@gj52
Copy link
Author

gj52 commented Nov 5, 2021

Thanks,

now working, perfect!

@caarlos0
Copy link
Contributor

caarlos0 commented Nov 5, 2021

hmm, so maybe my accessment of that was wrong 🤔

will revert the commit for now...

thanks @bep

@caarlos0
Copy link
Contributor

caarlos0 commented Nov 5, 2021

@bep bep modified the milestones: v0.90, v0.91.0 Dec 8, 2021
@bep bep modified the milestones: v0.91.0, v0.92.0 Dec 20, 2021
@bep bep modified the milestones: v0.92.0, v0.93.0 Jan 12, 2022
@bep bep modified the milestones: v0.93.0, v0.94.0 Mar 1, 2022
@bep bep modified the milestones: v0.94.0, v0.95.0, v0.96.0 Mar 9, 2022
@bep bep modified the milestones: v0.96.0, v0.97.0 Mar 24, 2022
@bep bep modified the milestones: v0.97.0, v0.98.0 Apr 13, 2022
@bep bep added this to the v0.102.0 milestone Jun 16, 2022
@bep bep modified the milestones: v0.102.0, v0.103.0 Aug 28, 2022
@bep bep modified the milestones: v0.103.0, v0.104.0 Sep 15, 2022
@bep bep modified the milestones: v0.104.0, v0.105.0 Sep 23, 2022
@bep bep modified the milestones: v0.105.0, v0.106.0 Oct 26, 2022
@bep bep modified the milestones: v0.106.0, v0.107.0 Nov 18, 2022
@bep bep modified the milestones: v0.107.0, v0.108.0 Dec 3, 2022
@bep bep modified the milestones: v0.108.0, v0.109.0 Dec 14, 2022
@bep bep modified the milestones: v0.109.0, v0.111.0, v0.110.0 Jan 26, 2023
@bep bep modified the milestones: v0.111.0, v0.112.0 Feb 15, 2023
@bep bep modified the milestones: v0.112.0, v0.113.0 Apr 15, 2023
@jmooring
Copy link
Member

@gj52 Have you tested the v0.111.3 binary?

I'm pretty sure we can close this issue. Hugo has been using gohugoio/hugoreleaser instead of goreleaser/goreleaser since v0.102.0.

@bep bep closed this as completed May 21, 2023
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants