Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crossdev and make.conf confusion?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
its_randomness
n00b
n00b


Joined: 06 Dec 2023
Posts: 12

PostPosted: Wed Oct 23, 2024 11:31 am    Post subject: crossdev and make.conf confusion? Reply with quote

Hey all,

I'm trying to cross-build an arm version of Gentoo, because I want to avoid all use of QEMU or building on native hardware, for performance reasons and to keep build configurations on a huge building host.
The host is x86_64-pc-linux-gnu and the target is armv7a-unknown-linux-gnueabihf.
I have followed the guides I could find from gentoo wiki's about crossdev and cross compiling using emerge.

Code:
ROOT=/chroot/arm
PORTAGE_CONFIGROOT=/chroot/arm


When using running
Code:
armv7a-unknown-linux-gnueabihf-emerge  --info
I can tell it picks up the settings I set in /chroot/arm/etc/portage/make.conf/local.conf
Code:
[ebuild  N     ] sys-libs/ncurses-6.4_p20240414:0/6::gentoo to /chroot/arm/ USE="cxx (tinfo) -ada -debug -doc -gpm -minimal -profile (-split-usr) (-stack-realign) -static-libs -test -trace -verify-sig" 0 KiB
[ebuild  N     ] sys-process/htop-3.3.0::gentoo to /chroot/arm/ USE="unicode -caps -debug -delayacct -hwloc -llvm-libunwind (-lm-sensors) -openvz -unwind -vserver" 0 KiB

This succeeds and I can see ncurses files and htop files are placed in the target root.

When running
Code:
armv7a-unknown-linux-gnueabihf-emerge -ep @system
I get:
Code:
!!! The ebuild selected to satisfy "sys-apps/util-linux" for /usr/armv7a-unknown-linux-gnueabihf/ has unmet requirements.
- sys-apps/util-linux-2.40.2::gentoo USE="cramfs hardlink logger readline su suid -audit -build -caps -cryptsetup -fdformat -kill -magic -ncurses -nls -pam -python -rtas (-selinux) -slang -static-libs -systemd -test -tty-helpers -udev -unicode -uuidd -verify-sig" PYTHON_TARGETS="python3_12 -python3_10 -python3_11"

  The following REQUIRED_USE flag constraints are unsatisfied:
    su? ( pam )


So I check my USE flags for target root:
Code:
armv7a-unknown-linux-gnueabihf-emerge --info | grep pam

returns:
Code:
USE="acl arm bzip2 crypt gdbm iconv ipv6 ncurses nls openmp pam pcre readline seccomp ssl test-rust unicode xattr zlib"


Do I have to manually maintain/switch portage between my target root /chroot/arm/etc/portage and /usr/armv7a-unknown-linux-gnueabihf/etc/portage , or am I missing something?
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1207
Location: Richmond Hill, Canada

PostPosted: Wed Oct 23, 2024 1:43 pm    Post subject: Reply with quote

In your configuration, there are two Portage configures. One is at your $ROOT(/chroot/arm)/etc/portage/ and the other is at /usr/armv7a-unknown-linux-gnueabihf/etc/portage/.

The message
Quote:
!!! The ebuild selected to satisfy "sys-apps/util-linux" for /usr/armv7a-unknown-linux-gnueabihf/ has unmet requirements
Is refer to "build time" dependency which look in to /usr/armv7a-unknown-linux-gnueabihf/etc/portage/*

your command "emerge -ep" make emerge assume empty target therefor everything need to be rebuild include all system software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum