[Bug 1881417] Re: -buildmode=pie not supported on riscv64
Joel Sing
1881417 at bugs.launchpad.net
Tue Jun 2 06:45:52 UTC 2020
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
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=-buildmode=pie
$ file cgo
cgo: ELF 64-bit LSB shared object, UCB RISC-V, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-riscv64-lp64d.so.1, BuildID[sha1]=d8469e80723306c9291b7b117c91b5f7297b49de, for GNU/Linux 4.15.0, not stripped
$ ./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.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to golang-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1881417
Title:
-buildmode=pie not supported on riscv64
Status in golang-defaults package in Ubuntu:
New
Bug description:
-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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-defaults/+bug/1881417/+subscriptions
More information about the foundations-bugs
mailing list