Crossdev

is Article description::a set of wrapper scripts that provides cross-compilation capability to [[Portage.]] It is written in and is dependent on a basic Gentoo subsystem.

crossdev is primary developed by Gentoo developer.

Crossdev Overlay
You may want to consider creating a local repository overlay for crossdev.

Usage
Please note that the -S option (for stable) should not be used on arches with no stable keywords or a mixed (unstable, inconsistent) profile, e.g. mips or riscv.

Invocation
To see the supported architectures, C libraries, and special targets:

Trouble Shooting
ie example gentoo 9999 highest priority 1 least ....

(You may want to consider creating a local repository overlay for crossdev. )

this is reasonably important on a multi-overlay system.

priority = 10 while this should work most/95% of the time  ....
you may need to lower "priority N" +/-  ie 0 or 1-10 works or

I.E . priority = 9, priority = 1

find and raise repo priority for any addons..., ie eselect repository / layman. some repos have priority set inside ie /var/db/repos/somerepo/ repo-config-files"

/etc/portage/repos.conf/layman.conf or eselect-repo.conf if ["some-repo"] has a priority less than 10 you will likely run into issues

Getting into a feature request shooting match with dev's over bugs will do you no favors...  a lesson I would advise not to repeat  ,

however lack of sleep ( Weeks of 16 hour days  rush project to local B-SIDES )/ flu/fever/military temper got the better of me.. and belligerence with lack of sleep will not put yo on their fav's list. , they wont see a need for an /etc/crossdev/crossdev.conf...

However since this is a fix for the lack of aforementioned crossdev and fixing it when it misbehaves  ..

add not originally WELL DOCUMENTED ... id make mention of it here. as an act of contrition.

and saving others especially enthusiast users from blowing their flipping stacks... when seeing up crossover/Distcc for RPI4 etc.

Priority, This keeps crossdev from RANDOMLY  vomiting packages  into your other  repos  add a new repo and it could randomly start adding crossdev files their too

, wich resets on emerge -sync and will ruin your patience

the priority on crossdev as a troubleshooting step long as it is the absolute lowest on system the aberrant behavior will stop ,

forget to add priority to /etc/portage/repos.conf/portage-crossdev.conf and the frustration will begin...

forget "priority = 10 +/-" at your own PERIL...

This will save you HOURS of Vexating Frustration Reference: https://github.com/sakaki-/gentoo-on-rpi-64bit/wiki/Set-Up-Your-Gentoo-PC-for-Cross-Compilation-with-crossdev