Package Details: hare-git r2629.f7584535-2

Git Clone URL: https://aur.archlinux.org/hare-git.git (read-only, click to copy)
Package Base: hare-git
Description: The Hare systems programming language
Upstream URL: https://harelang.org
Licenses: MPL2
Conflicts: hare
Provides: hare
Submitter: apreiml
Maintainer: apreiml
Last Packager: apreiml
Votes: 2
Popularity: 0.74
First Submitted: 2022-04-24 17:34 (UTC)
Last Updated: 2022-07-19 08:19 (UTC)

Dependencies (8)

Required by (19)

Sources (3)

Latest Comments

whynothugo commented on 2022-07-25 08:02 (UTC)

Latest builds perfectly on aarch64, thanks!

apreiml commented on 2022-07-19 08:20 (UTC)

ok. pushed.

whynothugo commented on 2022-07-19 08:16 (UTC)

Need to use $CARCH, not $arch. For some reason the latter is also x86_64, even on ARM.

apreiml commented on 2022-07-19 08:10 (UTC)

Ah yes of course. Now it's in.

whynothugo commented on 2022-07-19 08:08 (UTC) (edited on 2022-07-19 08:08 (UTC) by whynothugo)

Also missing arch=("x86_64" "aarch64"), forgot to mention that one.

apreiml commented on 2022-07-18 17:38 (UTC)

whynothugo: I just added an aarch64 config file. The correct one should be copied during the build step. Can you try if this works?

whynothugo commented on 2022-07-18 15:14 (UTC) (edited on 2022-07-18 15:19 (UTC) by whynothugo)

Oh, disregard that last message, I figured it out.

For building on aarch64 need to just replace the arch in the config (put this in prepare()):

if [[ "$CARCH" == "aarch64" ]]; then
  sed -i 's/ARCH = x86_64/ARCH = aarch64/' config.x86_64.mk
done

And apply the following to the config (note: this can be applied to the file directly, it won't mess up building the package on amd64.

diff --git a/config.x86_64.mk b/config.x86_64.mk
index 008f0a4..179053a 100644
--- a/config.x86_64.mk
+++ b/config.x86_64.mk
@@ -32,10 +32,10 @@ HARECACHE = .cache
 BINOUT = .bin

 # Cross-compiler toolchains
-AARCH64_AS=aarch64-linux-gnu-as
-AARCH64_AR=aarch64-linux-gnu-ar
-AARCH64_CC=aarch64-linux-gnu-gcc
-AARCH64_LD=aarch64-linux-gnu-ld
+AARCH64_AS=as
+AARCH64_AR=ar
+AARCH64_CC=gcc
+AARCH64_LD=ld

I don't think makepkg and friends support cross-compilation, should that last change should not break anything.

whynothugo commented on 2022-07-18 15:05 (UTC)

I'm trying to build this on aarch64, but the supplied config.x86_64.mk is (obviously) architecture-specific.

Any idea on where to get a config.aarch64.mk?