You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Yocto SDK that I use to build aws-lc-rs, dependencies are installed in the SDK (rust, cargo, bindgen). Build for aws-lc-rs fails because it has a custom build step that starts a new cmake process, without inheriting the current environment vars.
Relevant details
In order to build this crate I first source the Yocto SDK source /opt/weos/1.0.0/environment-setup-x86-64-v3-linux.
Than run cargo build (cargo is correctly detected from the SDK).
Trying to build aws-lc-sys/v0.25.0.
System information: for linux, below info can be collected by running uname -srvmp
CPU architecture: (x86-64 cross compiling for x86_64 yocto built OS)
OS: (Ubuntu 20.04,)
Build log:
The issue is that it incorrectly links against host libs.
Run Build Command(s):/opt/weos/1.0.0/sysroots/x86_64-weos-linux/usr/bin/make -f Makefile cmTC_2a142/fast && /opt/weos/1.0.0/sysroots/x86_64-weos-linux/usr/bin/make -f CMakeFiles/cmTC_2a142.dir/build.make CMakeFiles/cmTC_2a142.dir/build
make[1]: Entering directory '/home/user/workspace/aws-lc-rs/aws-lc-sys/aws-lc/CMakeFiles/CMakeTmp'
/bin/sh: symbol lookup error: /opt/weos/1.0.0/sysroots/x86_64-weos-linux/usr/bin/../../lib/libc.so.6: undefined symbol: _dl_audit_symbind_alt, version GLIBC_PRIVATE
If I try to run the cmake command manually in the current shell, it works (because in the current shell I have sourced the yocto SDK):
Problem:
I have a Yocto SDK that I use to build aws-lc-rs, dependencies are installed in the SDK (rust, cargo, bindgen). Build for aws-lc-rs fails because it has a custom build step that starts a new cmake process, without inheriting the current environment vars.
Relevant details
In order to build this crate I first source the Yocto SDK
source /opt/weos/1.0.0/environment-setup-x86-64-v3-linux
.Than run
cargo build
(cargo is correctly detected from the SDK).Trying to build
aws-lc-sys/v0.25.0
.System information: for linux, below info can be collected by running
uname -srvmp
Build log:
If I try to run the cmake command manually in the current shell, it works (because in the current shell I have sourced the yocto SDK):
The text was updated successfully, but these errors were encountered: