Skip to contentSkip to conversation

Forcing uninative?

DISCUSSION Rudolf J Streif 4 participants 6 messages Sep 20, 2023 – Sep 21, 2023

lore
Share & tools
lore
#0 lore raw

I need to resurrect a Yocto Project build environment based on honister. My dev system has since moved on to a newer glibc etc. As expected, I am getting this warning

WARNING: Your host glibc version (2.37) is newer than that in uninative (2.34). Disabling uninative so that sstate is not corrupted.

The distro's gcc now is 13.2.1.

Now the following packages do not compile anymore:

* rust-llvm-native : which there is a patch (applied to kirkstone):
https://lore.kernel.org/openembedded-core/CANPvuR=G1NxfJb67xD19FoNh4eTDsTM4TDyF+vDbh6crNH=dgw@mail.gmail.com/T/
* libdnf-native : because std::uint32_t does not exist anymore

I don't care about the sstate as I am creating a new one. However, how can I force uninative to be used and would it even solve the problem (I would think so as the idea of uninative is to isolate the build from the host libraries)?

Thanks,
Rudi

#1 lore raw

Hello,

Quoted 11 lines · Rudolf J Streif

I need to resurrect a Yocto Project build environment based on honister. My dev system has since moved on to a newer glibc etc. As expected, I am getting this warning

WARNING: Your host glibc version (2.37) is newer than that in uninative (2.34). Disabling uninative so that sstate is not corrupted.

The distro's gcc now is 13.2.1.

Now the following packages do not compile anymore:

Quoted 9 lines

* rust-llvm-native : which there is a patch (applied to kirkstone):
https://lore.kernel.org/openembedded-core/CANPvuR=G1NxfJb67xD19FoNh4eTDsTM4TDyF+vDbh6crNH=dgw@mail.gmail.com/T/
* libdnf-native : because std::uint32_t does not exist anymore

I don't care about the sstate as I am creating a new one. However, how can I force uninative to be used and would it even solve the problem (I would think so as the idea of uninative is to isolate the build from the host libraries)?

You should rather use buildtools. You can install those with scripts/install-buildtools. The -r option is there to allow you to select a target release. You can try something like:

poky/scripts/install-buildtools -d ~/YP/buildtools -r yocto-3.4.4 --installer-version 3.4.4

This will then tell you to source buildtools/environment-setup-x86_64-pokysdk-linux

This should be enough to be able to build old releases.

Regards,

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

Thank you, Alexandre.

Quoted 23 lines · Alexandre Belloni

Hello,

Quoted 11 lines · Rudolf J Streif

I need to resurrect a Yocto Project build environment based on honister. My dev system has since moved on to a newer glibc etc. As expected, I am getting this warning

WARNING: Your host glibc version (2.37) is newer than that in uninative (2.34). Disabling uninative so that sstate is not corrupted.

The distro's gcc now is 13.2.1.

Now the following packages do not compile anymore:

Quoted 9 lines

* rust-llvm-native : which there is a patch (applied to kirkstone):
https://lore.kernel.org/openembedded-core/CANPvuR=G1NxfJb67xD19FoNh4eTDsTM4TDyF+vDbh6crNH=dgw@mail.gmail.com/T/
* libdnf-native : because std::uint32_t does not exist anymore

I don't care about the sstate as I am creating a new one. However, how can I force uninative to be used and would it even solve the problem (I would think so as the idea of uninative is to isolate the build from the host libraries)?

Quoted 7 lines

You should rather use buildtools. You can install those with scripts/install-buildtools. The -r option is there to allow you to select a target release. You can try something like:

poky/scripts/install-buildtools -d ~/YP/buildtools -r yocto-3.4.4 --installer-version 3.4.4

This will then tell you to source buildtools/environment-setup-x86_64-pokysdk-linux

OK, I did that. The environment only adds the paths. Then I sourced the build environment as usual. Unfortunately, it still fails with the same error messages.

Quoted 5 lines

This should be enough to be able to build old releases.

Regards,

Signature · 3 lines
Rudolf J Streif
CEO/CTO
1.855.442.3386
#3 lore raw
Quoted 30 lines · Rudolf J Streif

Thank you, Alexandre.

Quoted 27 lines · Alexandre Belloni

Hello,

Quoted 11 lines · Rudolf J Streif

I need to resurrect a Yocto Project build environment based on honister. My dev system has since moved on to a newer glibc etc. As expected, I am getting this warning

WARNING: Your host glibc version (2.37) is newer than that in uninative (2.34). Disabling uninative so that sstate is not corrupted.

The distro's gcc now is 13.2.1.

Now the following packages do not compile anymore:

Quoted 9 lines

* rust-llvm-native : which there is a patch (applied to kirkstone):
https://lore.kernel.org/openembedded-core/CANPvuR=G1NxfJb67xD19FoNh4eTDsTM4TDyF+vDbh6crNH=dgw@mail.gmail.com/T/
* libdnf-native : because std::uint32_t does not exist anymore

I don't care about the sstate as I am creating a new one. However, how can I force uninative to be used and would it even solve the problem (I would think so as the idea of uninative is to isolate the build from the host libraries)?

You should rather use buildtools. You can install those with scripts/install-buildtools. The -r option is there to allow you to select a target release. You can try something like:

Quoted 7 lines
Quoted 3 lines

poky/scripts/install-buildtools -d ~/YP/buildtools -r yocto-3.4.4 --installer-version 3.4.4

This will then tell you to source buildtools/environment-setup-x86_64-pokysdk-linux

OK, I did that. The environment only adds the paths. Then I sourced the build environment as usual. Unfortunately, it still fails with the same error messages.

By using an older buildtools-extended tarball you should be able to gain an older host compiler version which will avoid the compile failures you mention. I suspect uninative will need to be disabled but that shouldn't matter for your use case as you're not sharing the sstate.

Cheers,

Richard

#4 lore raw
In reply to Alexandre Belloni
Quoted 29 lines · Alexandre Belloni via lists.yoctoproject.org

Hello,

Quoted 11 lines · Rudolf J Streif

I need to resurrect a Yocto Project build environment based on honister. My dev system has since moved on to a newer glibc etc. As expected, I am getting this warning

WARNING: Your host glibc version (2.37) is newer than that in uninative (2.34). Disabling uninative so that sstate is not corrupted.

The distro's gcc now is 13.2.1.

Now the following packages do not compile anymore:

Quoted 9 lines

* rust-llvm-native : which there is a patch (applied to kirkstone):
https://lore.kernel.org/openembedded-core/CANPvuR=G1NxfJb67xD19FoNh4eTDsTM4TDyF+vDbh6crNH=dgw@mail.gmail.com/T/
* libdnf-native : because std::uint32_t does not exist anymore

I don't care about the sstate as I am creating a new one. However, how can I force uninative to be used and would it even solve the problem (I would think so as the idea of uninative is to isolate the build from the host libraries)?

You should rather use buildtools. You can install those with scripts/install-buildtools. The -r option is there to allow you to select a target release. You can try something like:

Quoted 5 lines

poky/scripts/install-buildtools -d ~/YP/buildtools -r yocto-3.4.4 --installer-version 3.4.4

This will then tell you to source buildtools/environment-setup-x86_64-pokysdk-linux

This should be enough to be able to build old releases.

real issue would be getting native packages compiling with newer compilers, unless you are ready to do such backports this is going to be a problem. I would suggest using a supported/tested distro for honister release inside a VM or container to build it.

Quoted 17 lines

Regards,

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#61058): https://lists.yoctoproject.org/g/yocto/message/61058
Mute This Topic: https://lists.yoctoproject.org/mt/101487564/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw
Quoted 32 lines · Khem Raj
Quoted 29 lines · Alexandre Belloni via lists.yoctoproject.org

Hello,

Quoted 11 lines · Rudolf J Streif

I need to resurrect a Yocto Project build environment based on honister. My dev system has since moved on to a newer glibc etc. As expected, I am getting this warning

WARNING: Your host glibc version (2.37) is newer than that in uninative (2.34). Disabling uninative so that sstate is not corrupted.

The distro's gcc now is 13.2.1.

Now the following packages do not compile anymore:

Quoted 9 lines

* rust-llvm-native : which there is a patch (applied to kirkstone):
https://lore.kernel.org/openembedded-core/CANPvuR=G1NxfJb67xD19FoNh4eTDsTM4TDyF+vDbh6crNH=dgw@mail.gmail.com/T/
* libdnf-native : because std::uint32_t does not exist anymore

I don't care about the sstate as I am creating a new one. However, how can I force uninative to be used and would it even solve the problem (I would think so as the idea of uninative is to isolate the build from the host libraries)?

You should rather use buildtools. You can install those with scripts/install-buildtools. The -r option is there to allow you to select a target release. You can try something like:

poky/scripts/install-buildtools -d ~/YP/buildtools -r yocto-3.4.4 --installer-version 3.4.4

Quoted 7 lines
Quoted 3 lines

This will then tell you to source buildtools/environment-setup-x86_64-pokysdk-linux

This should be enough to be able to build old releases.

real issue would be getting native packages compiling with newer compilers, unless you are ready to do such backports this is going to be a problem. I would suggest using a supported/tested distro for honister release inside a VM or container to build it.

Thanks, Khem. Yes, that is what I eventually resorted doing. It's much quicker to fire up a VM than trying to do the backports. :)

Quoted 16 lines
Quoted 16 lines

Regards,

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#61058): https://lists.yoctoproject.org/g/yocto/message/61058
Mute This Topic: https://lists.yoctoproject.org/mt/101487564/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Rudolf J Streif
CEO/CTO
1.855.442.3386