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

Add some additional architectures #91

Open
1 of 2 tasks
agriyakhetarpal opened this issue Apr 28, 2024 · 1 comment · May be fixed by #166
Open
1 of 2 tasks

Add some additional architectures #91

agriyakhetarpal opened this issue Apr 28, 2024 · 1 comment · May be fixed by #166
Labels
enhancement New feature or request packaging infrastructure Releases, installation, etc.

Comments

@agriyakhetarpal
Copy link
Owner

agriyakhetarpal commented Apr 28, 2024

Based on https://launchpad.net/~gohugoio/+snap/hugo-dev, two additional architectures: PowerPC (ppc64le and armhf (most likely armv7l) can be added.

@agriyakhetarpal
Copy link
Owner Author

agriyakhetarpal commented Apr 28, 2024

GOOS="linux" GOARCH="arm" CC="zig cc -target arm-linux-gnueabihf" CXX="zig c++ -target arm-linux-gnueabihf" pip install . --verbose

$ file hugo/binaries/hugo-0.125.4-linux-arm

hugo/binaries/hugo-0.125.4-linux-arm: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.0.0, Go BuildID=TX-w-GW3H2PIoecBQRJC/9HvNTwqeMg5V_2uDiH1p/_3cfgjL9X767uJIllyc0/_Xa3wcRb3oxUbe7StWYV, with debug_info, not stripped

https://go.dev/wiki/GoArm#supported-architectures says that GOARM will be picked up for native compilation if done on the piwheels index end. Otherwise, it should be wise to add GOARM="7" to the command when using Zig. Outputs were identical with the above one from file.

Cross-compilation not enabled yet (and not yet for s390x or ppc64le either) edit: enabled now

@agriyakhetarpal agriyakhetarpal added the blocked by upstream Cannot be resolved at this time because of upstream issues label May 9, 2024
@agriyakhetarpal agriyakhetarpal mentioned this issue May 31, 2024
8 tasks
@agriyakhetarpal agriyakhetarpal linked a pull request Oct 3, 2024 that will close this issue
@agriyakhetarpal agriyakhetarpal removed the blocked by upstream Cannot be resolved at this time because of upstream issues label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request packaging infrastructure Releases, installation, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant