Public bug reported:

Reproduce:

- Install Ubuntu 25.04 on an arm64 device.
- Install `hare` and `libcurl4-openssl-dev` from apt.
- Run `hare build -l curl`:

Observe it fails with:

```
0/1 tasks completed (0%)
/usr/bin/ld: 
/home/user/.cache/hare/usr/share/hare/stdlib/rt/9d9e142321634931323af0cd435c826591f8525bef449be3d15b7adb4675886c.o:
 relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `environ@@GLIBC_2.17' 
which may bind externally can not be used when making a shared object; 
recompile with -fPIC
/usr/bin/ld: 
/home/user/.cache/hare/usr/share/hare/stdlib/rt/9d9e142321634931323af0cd435c826591f8525bef449be3d15b7adb4675886c.o(.text.main+0x24):
 unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol 
`environ@@GLIBC_2.17'
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

aarch64-linux-gnu-gcc for /home/user/Desktop/hcurl exited with status 1
```

ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: hare 0.24.2-3
ProcVersionSignature: Ubuntu 6.14.0-22.22-generic 6.14.5
Uname: Linux 6.14.0-22-generic aarch64
ApportVersion: 2.32.0-0ubuntu5.2
Architecture: arm64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun Jun 29 23:15:15 2025
InstallationDate: Installed on 2025-06-29 (0 days ago)
InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release arm64 (20250415.3)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: hare
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: hare (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug arm64 plucky wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2115610

Title:
  Hare cannot link with libcurl4 on arm64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hare/+bug/2115610/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to