Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916894 - app-containers/runc-1.1.9: emake failed (armv7l)
Summary: app-containers/runc-1.1.9: emake failed (armv7l)
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-05 14:16 UTC by APN-Pucky
Modified: 2023-11-08 16:40 UTC (History)
1 user (show)

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


Attachments
emerge.log (emerge.log,280 bytes, text/x-log)
2023-11-05 14:17 UTC, APN-Pucky
Details
build.log (build.log,320.02 KB, text/x-log)
2023-11-05 14:18 UTC, APN-Pucky
Details
info (info.log,7.39 KB, text/x-log)
2023-11-05 14:18 UTC, APN-Pucky
Details
env (env.log,81.71 KB, text/x-log)
2023-11-05 14:18 UTC, APN-Pucky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description APN-Pucky 2023-11-05 14:16:10 UTC
Installing docker on a Raspberry Pi 2B V1.1 fails as a consequence.
Comment 1 APN-Pucky 2023-11-05 14:17:42 UTC
Created attachment 874123 [details]
emerge.log
Comment 2 APN-Pucky 2023-11-05 14:18:00 UTC
Created attachment 874124 [details]
build.log
Comment 3 APN-Pucky 2023-11-05 14:18:17 UTC
Created attachment 874125 [details]
info
Comment 4 APN-Pucky 2023-11-05 14:18:30 UTC
Created attachment 874126 [details]
env
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-05 14:18:41 UTC
WORK=/var/tmp/portage/app-containers/runc-1.1.9/temp/go-build1532601617
+ go-md2man -in runc-checkpoint.8.md -out ./man8/runc-checkpoint.8
man/md2man-all.sh: line 26: /usr/bin/go-md2man: cannot execute binary file: Exec format error
make: *** [Makefile:94: man] Error 126
make: *** Waiting for unfinished jobs....
container/list
mkdir -p $WORK/b091/
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-05 14:19:06 UTC
Appears that /usr/bin/go-md2man is broken. What does file /usr/bin/go-md2man say?
Comment 7 APN-Pucky 2023-11-05 14:56:51 UTC
$ file /usr/bin/go-md2man
/usr/bin/go-md2man: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, Go BuildID=ZiKZ6U7LOxMmKArFXJnj/5JgUJyonWQh5t2rLpIVp/FVPw1xW6UPzcuJWYQeTB/778iIWMhxptaICBPk2t-, with debug_info, not stripped

Though I am on 32-bit.
(Unsurprisingly, disabling distcc also gives same result)
Comment 8 APN-Pucky 2023-11-05 15:05:19 UTC
Isn't the file format (after dobin) QA checked for the architecture, like the ldflags for libs? Would seem like a reasonable thing to do to me.
Recompiling dev-go/go-md2man... gives:

/usr/lib/go/pkg/tool/linux_arm/link: running x86_64-pc-linux-gnu-gcc failed: exec: "x86_64-pc-linux-gnu-gcc": executable file not found in $PATH

Recompiling dev-lang/go now w/o distcc just to be sure.
Comment 9 APN-Pucky 2023-11-05 19:19:20 UTC
Fixing go-md2man did not solve the issue.

The actual issue is:

cgo: C compiler "x86_64-pc-linux-gnu-gcc" not found: exec: "x86_64-pc-linux-gnu-gcc": executable file not found in $PATH

(cf. go-md2man issue)
Comment 10 APN-Pucky 2023-11-05 21:24:09 UTC
I used this workaround for now, ugly, but at least seems to get it compiled:

/usr/bin/ $ ln -s armv7a-unknown-linux-gnueabihf-gcc x86_64-pc-linux-gnu-gcc