Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 889434 - app-admin/sudo: cross-compilation to armv7a-unknown-linux-gnueabihf fails (Usage: install-sh [flags] source destination)
Summary: app-admin/sudo: cross-compilation to armv7a-unknown-linux-gnueabihf fails (Us...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Cross compilation support
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-03 00:31 UTC by tgyt
Modified: 2023-02-09 01:15 UTC (History)
1 user (show)

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


Attachments
build.log for armv7a-unknown-linux-gnueabihf (sudo-armv7a-build.log,270.42 KB, text/plain)
2023-01-03 00:31 UTC, tgyt
Details
armv7a-unknown-linux-gnueabihf --info (armv7a.txt,6.20 KB, text/plain)
2023-01-03 00:32 UTC, tgyt
Details
Successful build.log (build.log,204.54 KB, text/plain)
2023-01-05 22:04 UTC, James Le Cuirot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tgyt 2023-01-03 00:31:47 UTC
Created attachment 846794 [details]
build.log for armv7a-unknown-linux-gnueabihf

Host: x86_64
Target: armv7a

For some reason it compiles to aarch64 just fine.
Comment 1 tgyt 2023-01-03 00:32:14 UTC
Created attachment 846796 [details]
armv7a-unknown-linux-gnueabihf --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-03 00:42:26 UTC
Are you using busybox[install-symlinks]?
Comment 3 tgyt 2023-01-03 01:26:45 UTC
(In reply to Sam James from comment #2)
> Are you using busybox[install-symlinks]?

armv7a-unknown-linux-gnueabihf --info busybox
emerge --info busybox

Both say no
Comment 4 tgyt 2023-01-03 01:29:38 UTC
(In reply to tgyt from comment #3)
> (In reply to Sam James from comment #2)
> > Are you using busybox[install-symlinks]?
> 
> armv7a-unknown-linux-gnueabihf --info busybox
> emerge --info busybox
> 
> Both say no

But for aarch64:

sys-apps/busybox-1.34.1::gentoo was built with the following:
USE="ipv6 pam -debug -livecd -make-symlinks -math -mdev -savedconfig (-selinux)"
CFLAGS="-O3 -pipe -mcpu=cortex-a53+crypto+crc --param l1-cache-size=32 --param "
CXXFLAGS="-O3 -pipe -mcpu=cortex-a53+crypto+crc --param l1-cache-size=32 --para"
Comment 5 James Le Cuirot gentoo-dev 2023-01-04 08:48:44 UTC
It works fine here with the same tuple and profile. 🤷‍♂️
Comment 6 tgyt 2023-01-05 21:49:40 UTC
Tried with 1.9.12_p1, same result
Comment 7 tgyt 2023-01-05 21:51:55 UTC
(In reply to James Le Cuirot from comment #5)
> It works fine here with the same tuple and profile. 🤷‍♂️

Providing log of successful build can be helpful.
Comment 8 James Le Cuirot gentoo-dev 2023-01-05 22:04:22 UTC
Created attachment 847588 [details]
Successful build.log

I ran this:

sudo env CROSS_CMD="ebuild" USE="-sendmail -nls -ssl" armv7a-unknown-linux-gnueabihf-emerge /usr/portage/app-admin/sudo/sudo-1.9.12_p1.ebuild clean install
Comment 9 tgyt 2023-01-06 13:26:46 UTC
(In reply to James Le Cuirot from comment #8)
> Created attachment 847588 [details]
> Successful build.log
> 
> I ran this:
> 
> sudo env CROSS_CMD="ebuild" USE="-sendmail -nls -ssl"
> armv7a-unknown-linux-gnueabihf-emerge
> /usr/portage/app-admin/sudo/sudo-1.9.12_p1.ebuild clean install

Same failure. I see difference: in my log /bin/bash is called, but in yours /bin/sh, but I don't thinks this is why it fails.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-09 01:15:36 UTC
Key error, as I forgot to paste it in earlier:
```
Usage:  install-sh [flags] source destination
make[1]: *** [Makefile:359: install] Error 1
make[1]: Leaving directory '/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/app-admin/sudo-1.9.11_p3-r1/work/sudo-1.9.11p3/lib/util'
make: *** [Makefile:190: install] Error 2
```