Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939190 - dev-go/go-md2man-2.0.3 "-buildmode=pie requires external (cgo) linking, but cgo is not enabled" on ARM
Summary: dev-go/go-md2man-2.0.3 "-buildmode=pie requires external (cgo) linking, but c...
Status: RESOLVED DUPLICATE of bug 924632
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-06 16:05 UTC by Marius Dinu
Modified: 2025-01-20 23:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Dinu 2024-09-06 16:05:14 UTC
Gentoo ARM (32bit) glibc
I get this error:

 * Package:    dev-go/go-md2man-2.0.3:0
 * Repository: gentoo
 * Maintainer: williamh@gentoo.org
 * USE:        arm elibc_glibc kernel_linux
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking go-md2man-2.0.3.tar.gz to /var/tmp/portage/dev-go/go-md2man-2.0.3/work
>>> Source unpacked in /var/tmp/portage/dev-go/go-md2man-2.0.3/work
>>> Preparing source in /var/tmp/portage/dev-go/go-md2man-2.0.3/work/go-md2man-2.0.3 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-go/go-md2man-2.0.3/work/go-md2man-2.0.3 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-go/go-md2man-2.0.3/work/go-md2man-2.0.3 ...
make -j4 BUILD_FLAGS=-mod=vendor build
WORK=/var/tmp/portage/dev-go/go-md2man-2.0.3/temp/go-build1856557011
-buildmode=pie requires external (cgo) linking, but cgo is not enabled
make: *** [Makefile:19: bin/go-md2man] Error 1

There is a related forum topic here:
https://forums.gentoo.org/viewtopic-p-8824188.html
It is marked as [solved], but I couldn't find the solution in that topic. The patch doesn't solve the problem.

Thanks.

Reproducible: Always
Comment 1 Balint Dobai-Pataky 2024-09-25 09:42:41 UTC
I have the same issue on X86 (32 bit) gcc-13, glibc-2.39-r9, 6.6.47-gentoo i686
Comment 2 misterxx 2024-10-01 10:02:53 UTC
The problem seems to be dev-lang/go. The last version with which go-md2man could be compiled was dev-lang/go-1.21.11.

Even with the latest version dev-lang/go-1.23.1 I get exactly the same error message when I compile dev-go/md2man-2.0.3. Already waiting April 2024 for the solution ;-(
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-20 23:51:03 UTC

*** This bug has been marked as a duplicate of bug 924632 ***