For example, perform such an installation command:
Crossdev-s--ex-gdb--without-headers-t Mipsel-unknown-linux-gnu
First, modify the/etc/make.conf file, add portdir_overlay=/usr/portage/at the end of the file (otherwise the error is not set Portdir_overlay)
Then, refer to this link Gentoo overlays:users ' Guide, install a overlay (because we need n32 glibc, so we need this overlay). The specific commands to execute are as follows:
Emerge layman
echo "source/var/lib/layman/make.conf" >>/etc/make.conf
echo portdir_overlay=\ "\" >/var/lib/layman/make.conf
Layman-l
Layman-a X11
After installation, install Crossdev-t MIPSEL-UNKNOWN-LINUX-GNU (you must perform this step before performing the following step, otherwise the error will be as follows:
* Binutils Failed:(
* If you file a bug, please attach the following logfiles:
*/var/log/portage/cross-mips64-unknown-linux-gnu-info.log
*/var/log/portage/cross-mips64-unknown-linux-gnu-binutils.log)
Finally again crossdev-s--ex-gdb--without-headers-t mipsel-unknown-linux-gnu Command There is no problem.
Yes, you can also install Crossdev-t Mips64el-unknown-linux-gnu and so on.
Crossdev-t help this command to see which cross-compilation tools Crossdev can install.
Crossdev This command to see what each parameter of this command means.