Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to set up cross compiling
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
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1584

PostPosted: Tue Dec 31, 2024 11:33 am    Post subject: Unable to set up cross compiling Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54666
Location: 56N 3W

PostPosted: Tue Dec 31, 2024 12:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1584

PostPosted: Tue Dec 31, 2024 1:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3819
Location: Rasi, Finland

PostPosted: Tue Dec 31, 2024 1:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2066

PostPosted: Tue Dec 31, 2024 3:37 pm    Post subject: Reply with quote

I think I see the problem at a glance. I'll fix it now.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3819
Location: Rasi, Finland

PostPosted: Tue Dec 31, 2024 4:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1584

PostPosted: Tue Dec 31, 2024 5:09 pm    Post subject: Reply with quote

thank you very much :)
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