-buildmode=pie not supported on riscv64
Bug #1881417 reported by
Dimitri John Ledkov
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
golang-1.14 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[impact]
-buildmode=pie not supported on riscv64
it should be, tried forcing to enable it on top of our patches, but golang toolchain failed to build (testsuire errors)
[test case]
The tests run during build should be sufficient
[regression potential]
There should be no impact away from riscv at all.
There is no standard way to probe for buildmode=pie being enabled but it's possible that a package might test for it and use it now that it's present and then encounter new bugs. But it seems very unlikely.
tags: | added: patch |
affects: | golang-defaults (Ubuntu) → golang-1.14 (Ubuntu) |
description: | updated |
To post a comment you must log in.
It is not clear what series this is on or what packages you're using. That said, the 1.14.3-2ubuntu1 packages available for groovy include external linking support and support -buildmode=pie:
$ dpkg -l | grep golang -buildmode= pie linux-riscv64- lp64d.so. 1, BuildID[ sha1]=d8469e807 23306c9291b7b11 7c91b5f7297b49d e, for GNU/Linux 4.15.0, not stripped
ii golang-1.14 1.14.3-2ubuntu1 all Go programming language compiler - metapackage
ii golang-1.14-doc 1.14.3-2ubuntu1 all Go programming language - documentation
ii golang-1.14-go 1.14.3-2ubuntu1 riscv64 Go programming language compiler, linker, compiled stdlib
ii golang-1.14-src 1.14.3-2ubuntu1 riscv64 Go programming language - source files
$ go version
go version go1.14.3 linux/riscv64
$ go build -ldflags=
$ file cgo
cgo: ELF 64-bit LSB shared object, UCB RISC-V, version 1 (SYSV), dynamically linked, interpreter /lib/ld-
$ ./cgo
Hi from cgo on linux/riscv64!
If you're still running into issues, please provide full details of the problem and how it can be reproduced.