Package Details: hare 0.24.2-1

Git Clone URL: https://aur.archlinux.org/hare.git (read-only, click to copy)
Package Base: hare
Description: The Hare programming language
Upstream URL: https://harelang.org/
Licenses: MPL-2.0 AND GPL-3.0-only
Submitter: grawlinson
Maintainer: bitfehler
Last Packager: bitfehler
Votes: 26
Popularity: 0.024962
First Submitted: 2022-04-25 02:58 (UTC)
Last Updated: 2024-07-15 09:38 (UTC)

Latest Comments

« First ‹ Previous 1 2

dwu commented on 2022-10-28 13:17 (UTC)

Building version r2694.b00d4a6f-1 via makepkg results in the following error during the check phase on my machine. Does this happen for anyone else?

Could not open module 'fmt' for reading from .cache/+test/fmt/fmt.td: No such file or directory
make: *** [stdlib.mk:4423: .cache/+test/unix/tty/unix_tty-linux.ssa] Error 1
make: *** Waiting for unfinished jobs....
rm .cache/+test/crypto/random/crypto_random-linux.s .cache/+test/unix/unix-linux.s .cache/+test/crypto/aes/crypto_aes-any.s .cache/+test/math/math-any.s .cache/+test/linux/linux-linux.s .cache/+test/crypto/math/crypto_math-any.s .cache/+test/shlex/shlex-any.s .cache/+test/io/io-linux.s .cache/+test/time/time-linux.s .cache/+test/strings/strings-any.s .cache/+test/format/tar/format_tar-any.s .cache/+test/endian/endian-any.s .cache/+test/slices/slices-any.s .cache/+test/math/random/math_random-any.s .cache/+test/linux/timerfd/linux_timerfd-linux.s .cache/+test/crypto/blowfish/crypto_blowfish-any.s .cache/+test/types/types-any.s .cache/+test/errors/errors-any.s .cache/+test/unix/signal/unix_signal-linux.s .cache/+test/encoding/utf8/encoding_utf8-any.s .cache/+test/crypto/salsa/crypto_salsa-any.s .cache/+test/rt/rt-linux.s .cache/+test/crypto/mac/crypto_mac-any.s .cache/+test/strio/strio-any.s .cache/+test/bytes/bytes-any.s .cache/+test/path/path-any.s .cache/+test/fs/fs-any.s .cache/+test/os/os-linux.s .cache/+test/crypto/aes/xts/crypto_aes_xts-any.s .cache/+test/math/complex/math_complex-any.s .cache/+test/bufio/bufio-any.s .cache/+test/linux/keyctl/linux_keyctl-linux.s .cache/+test/crypto/cipher/crypto_cipher-any.s .cache/+test/sort/sort-any.s .cache/+test/linux/vdso/linux_vdso-linux.s .cache/+test/unix/poll/unix_poll-linux.s .cache/+test/ascii/ascii-any.s .cache/+test/strconv/strconv-any.s .cache/+test/format/elf/format_elf-any.s .cache/+test/crypto/chacha/crypto_chacha-any.s

grawlinson commented on 2022-10-16 08:12 (UTC)

Sweet, thanks! I've just added these changes.

apreiml commented on 2022-10-13 07:58 (UTC)

If you want to update to a recent commit, you'll need to fix the default linker flags like this:

diff --git a/PKGBUILD b/PKGBUILD
index ef5c8a2..c0d13f0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -29,6 +29,11 @@ prepare() {
 build() {
   cd hare

+  # remove '-Wl,' prefix if present, since it is only required when
+  # the linker is invoked indirectly. Keeping it will cause the linker to
+  # fail.
+  export LDFLAGS=${LDFLAGS#"-Wl,"}
+
   # XXX: parallel build driver builds are broken
   LOCALVER=arch make -j1
 }

grawlinson commented on 2022-07-21 08:24 (UTC)

Seems like a patch that should be submitted upstream, if it isn't already.

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

This patch allows hare to build on aarch64:

diff --git a/PKGBUILD b/PKGBUILD
index 9a74b47..1a8caa0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,14 +5,16 @@ pkgname=hare
 pkgver=r2599.2f8887f6
 pkgrel=1
 pkgdesc='The Hare programming language'
-arch=('x86_64')
+arch=('x86_64' 'aarch64')
 url='https://harelang.org/'
 license=('GPL3' 'MPL2')
 depends=('qbe' 'harec')
 makedepends=('git' 'scdoc')
 _commit='2f8887f661ba204928a530cf8653aff0a4dcc2e1'
 source=("hare::git+https://git.sr.ht/~sircmpwn/hare#commit=$_commit")
+source_aarch64=("aarch64.patch")
 b2sums=('SKIP')
+b2sums_aarch64=('e57d685813dbd40bce20ab71d52805ac88ab3e0139a0203e9ef9754c617ed0f56588bc65c2218bf394592b90fd712edf031850f8520bb511973ae689d577f559')

 pkgver() {
   cd hare
@@ -24,6 +26,10 @@ prepare() {
   cd hare

   sed "s:/usr/local:/usr:" config.example.mk > config.mk
+
+  if [[ "$CARCH" == "aarch64" ]]; then
+    patch -p0 config.mk < "$srcdir/aarch64.patch"
+  fi
 }

 build() {
diff --git a/aarch64.patch b/aarch64.patch
new file mode 100644
index 0000000..e9bd55a
--- /dev/null
+++ b/aarch64.patch
@@ -0,0 +1,29 @@
+diff --git a/config.x86_64.mk b/config.x86_64.mk
+index 008f0a4..a390c07 100644
+--- a/config.x86_64.mk
++++ b/config.x86_64.mk
+@@ -16,7 +16,7 @@ HAREPATH = $(LOCALSRCDIR)/stdlib:$(LOCALSRCDIR)/third-party:$(SRCDIR)/hare/stdli
+ 
+ # Platform to build for
+ PLATFORM = linux
+-ARCH = x86_64
++ARCH = aarch64
+ 
+ # External tools and flags
+ HAREC = harec
+@@ -32,10 +32,10 @@ HARECACHE = .cache
+ BINOUT = .bin
+ 
+ # Cross-compiler toolchains
+-AARCH64_AS=aarch64-as
+-AARCH64_AR=aarch64-ar
+-AARCH64_CC=aarch64-cc
+-AARCH64_LD=aarch64-ld
++AARCH64_AS=as
++AARCH64_AR=ar
++AARCH64_CC=cc
++AARCH64_LD=ld
+ 
+ RISCV64_AS=riscv64-as
+ RISCV64_AR=riscv64-ar
+

grawlinson commented on 2022-05-12 05:18 (UTC)

I’m compiling it in a clean chroot, and have done so for a while now. It compiles outside of a clean chroot well, so not sure what the issue is. I generally have test failures every now and then, but upstream are quick about fixing these.

Are you using an AUR helper?

midv commented on 2022-05-11 10:54 (UTC)

When trying to compile hare I'm getting:

[...]
LD      .bin/hare
HARE    .bin/harec2
Error scanning input module: Module not found
make: *** [Makefile:77: .bin/harec2] Error 1

Line 77 in Makefile currently looks like this:

@env HAREPATH=. HAREC=$(HAREC) QBE=$(QBE) ./.bin/hare build -o .bin/harec2 ./cmd/harec

I've tried that line in terminal, with variables replaced and there was no difference.

The same error appears when trying to compile hare outside of AUR cloned from upstream repo - before I try to report upstream, I'd like to know if the package compiles successfully for the rest of you. I don't have any changes in /etc/makepkg.conf.

vgivanovic commented on 2022-05-04 16:39 (UTC) (edited on 2022-05-04 16:42 (UTC) by vgivanovic)

==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: hare
yay -S hare  39.80s user 5.11s system 39% cpu 1:52.36 total

1 test failed:
glob::glob: Assertion failed: ./strings/cstrings.ha:33:1


:: Querying AUR...
Repository      : aur
Name            : hare
Keywords        : None
Version         : r2312.11ee81c1-1
Description     : The Hare programming language
URL             : https://harelang.org/
AUR URL         : https://aur.archlinux.org/packages/hare
Groups          : None
Licenses        : GPL3  MPL2
Provides        : None
Depends On      : qbe  harec
Make Deps       : git  scdoc
Check Deps      : None
Optional Deps   : None
Conflicts With  : None
Maintainer      : grawlinson
Votes           : 10
Popularity      : 8.729274
First Submitted : Sun 24 Apr 2022 07:58:53 PM PDT
Last Modified   : Mon 02 May 2022 12:39:39 AM PDT
Out-of-date     : No