View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1580
|
Posted: Tue Dec 31, 2024 11:33 am Post subject: Unable to set up cross compiling |
|
|
I'm tryuing to set up a cross build environment on my x86_64 gentoo laptop for my i686 gentoo laptop following this guide:
https://wiki.gentoo.org/wiki/Cross_build_environment
I've done nothng so far except run this command:
Code: | crossdev --stable -t x86-unknown-linux-musl |
but it fails with this error:
Code: | error: binutils failed :( |
log:
https://bpa.st/3JGQ
I have no idea how to troubleshoot this so any help is welcomed, it's worth noting the x86_64 laptop uses glibc which the i686 uses musl |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54663 Location: 56N 3W
|
Posted: Tue Dec 31, 2024 12:06 pm Post subject: |
|
|
Adel Ahmed,
Code: | *** ld does not support target x86-unknown-linux-musl
*** see ld/configure.tgt for supported targets
make[1]: *** [Makefile:7643: configure-ld] Error 1 |
Also ..
Code: | * IMPORTANT: 43 config files in '/etc/portage' need updating.
Calculating dependencies
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items. |
That really is important. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1580
|
Posted: Tue Dec 31, 2024 1:13 pm Post subject: |
|
|
oops, i meant to run:
Code: | crossdev --stable -t i686-unknown-linux-musl |
I have updated the config files and read the news. the error I'm encoutnering is :
Code: | /var/tmp/portage/cross-i686-unknown-linux-musl/musl-1.2.5-r1/image/usr/include/crypt.h |
I'm not sure why this error comes up, but here's my full build log(i removed the first 2250 lines to be able to upload it):
https://paste.centos.org/view/789f60fe |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3819 Location: Rasi, Finland
|
Posted: Tue Dec 31, 2024 1:56 pm Post subject: |
|
|
Code: | rm: cannot remove '/var/tmp/portage/cross-i686-unknown-linux-musl/musl-1.2.5-r1/image/usr/include/crypt.h': No such file or directory | ... some irony right there.
Anyways, this looks a lot like a bug in the ebuild.
It tried to remove a file which should have been created earlier during src_install().
As a "fingers crossed" tryout I'd try to compile previous version 1.2.4-r2. Hopefully the bug does not appear in that version. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 2060
|
Posted: Tue Dec 31, 2024 3:37 pm Post subject: |
|
|
I think I see the problem at a glance. I'll fix it now. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3819 Location: Rasi, Finland
|
Posted: Tue Dec 31, 2024 4:31 pm Post subject: |
|
|
Thanks sam_ for once again acting quickly. :) _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1580
|
Posted: Tue Dec 31, 2024 5:09 pm Post subject: |
|
|
thank you very much |
|
Back to top |
|
|
|