View previous topic :: View next topic |
Author |
Message |
GregWills n00b
Joined: 27 Sep 2021 Posts: 8
|
Posted: Thu Nov 18, 2021 6:34 pm Post subject: Troubles setting cross compile profile |
|
|
Hello,
I am trying to create a cross compiling tool chain for the raspberry pi 4 following this guide on the wiki. The cross tool chain compiles just fine, the problem comes when trying to link make.profile to the correct profile. No matter what profile I link with in /var/db/repos/gentoo/profiles the link always points to the embedded profile. Even removing make.profile doesn't work, the link will remain and it will be pointing to the embedded profile. Has anyone ran into something like this? Thanks! |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1248 Location: Richmond Hill, Canada
|
Posted: Thu Nov 18, 2021 7:10 pm Post subject: Re: Troubles setting cross compile profile |
|
|
GregWills wrote: | No matter what profile I link with in /var/db/repos/gentoo/profiles the link always points to the embedded profile. |
where is this link you created? In /usr/$TARGET-CHOST/etc/portage/make.profile? Can you share the command you use to create the link? I am not sure I understand profile I link with in /var/db/repos/gentoo/profiles the link always points to the embedded profile.
GregWills wrote: | Even removing make.profile doesn't work, the link will remain and it will be pointing to the embedded profile |
I am confused, Once your remove make.profile, how is the link will remain Did the remove command failed? |
|
Back to top |
|
|
GregWills n00b
Joined: 27 Sep 2021 Posts: 8
|
Posted: Thu Nov 18, 2021 7:20 pm Post subject: |
|
|
Yes, the link is in /usr/$TARGET-CHOST/etc/portage/make.profile. It was automatically created with crossdev. Sorry for the confusion, what I mean is when I run Code: | rm -rf make.profile | it does not delete the link. I get no error indicating that the remove failed. Also trying to update the link with Code: | ln -s /var/db/repos/gentoo/profiles/default/linux/arm64/17.0/ make.profile/ | does not change the link either. |
|
Back to top |
|
|
GregWills n00b
Joined: 27 Sep 2021 Posts: 8
|
Posted: Thu Nov 18, 2021 7:28 pm Post subject: |
|
|
I fixed it by deleting the entire directory and remaking it. Can anyone think of a reason for the link being bugged out like that? |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1248 Location: Richmond Hill, Canada
|
Posted: Thu Nov 18, 2021 7:56 pm Post subject: |
|
|
GregWills wrote: | Yes, the link is in /usr/$TARGET-CHOST/etc/portage/make.profile. It was automatically created with crossdev. Sorry for the confusion, what I mean is when I run Code: | rm -rf make.profile | it does not delete the link. I get no error indicating that the remove failed. Also trying to update the link with Code: | ln -s /var/db/repos/gentoo/profiles/default/linux/arm64/17.0/ make.profile/ | does not change the link either. |
I cannot tell why rm -rf make.profile because it depend on then how the environment setup. But if you use rm -r make.profile You most likely get the error message tell you why. Using the -f option tell rm not report any error condition.
The ln -s /var/db/repos/gentoo/profiles/default/linux/arm64/17.0/ make.profile/ does not change the link is most likely a consequence of previous rm -rf make.profile not actually delete the make.profile symbolic link. Because you add / in the end of make.profile, you ask ln -s ... create a symbolic link inside make.profile directory. So you will have /usr/$TARGET-CHOST/etc/profile/make.profile/17.0 but the make.profile remain point to embedded profile. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Thu Nov 18, 2021 8:07 pm Post subject: |
|
|
GregWills,
Quote: | the link is in /usr/$TARGET-CHOST/etc/portage/make.profile |
That should be the link. The link should not be in that directory. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|