# Cargo build error with v1.78 in sdk for poky build

**URL:** <https://internals.rust-lang.org/t/cargo-build-error-with-v1-78-in-sdk-for-poky-build/21155>\
**Category:** libs\
**Created:** [July 11, 2024, 11:01am UTC](https://internals.rust-lang.org/t/cargo-build-error-with-v1-78-in-sdk-for-poky-build/21155 "2024-07-11T11:01:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_leran](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@r\_leran](https://internals.rust-lang.org/u/r_leran)\
**Post date:** [July 11, 2024, 11:01am UTC](https://internals.rust-lang.org/t/cargo-build-error-with-v1-78-in-sdk-for-poky-build/21155/1 "2024-07-11T11:01:37Z")

</div>

Hi, I am a beginner to rust and came across following error:

Compiling a simple hello world rust program in sdk build in poky gives following error in rust v1.78.

> Command: . /home/poky/build/tmp/work/qemux86\_64-poky-linux/core-image-sato/1.0/testimage-sdk/environment-setup-core2-64-poky-linux \> /dev/null;
> 
> cd /home/poky/build/tmp/work/qemux86\_64-poky-linux/core-image-sato/1.0/testimage-sdk//hello; cargo build --target x86\_64-pokysdk-linux-gnu;' returned non-zero exit status 101
> 
> Standard Output: warning: /home/poky/build/tmp/work/qemux86\_64-poky-linux/core-image-sato/1.0/testimage-sdk/sysroots/core2-64-poky-linux/home/cargo/config is deprecated in favor of config.toml
> 
> note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`

> Compiling hello v0.1.0 (/home/poky/build/tmp/work/qemux86\_64-poky-linux/core-image-sato/1.0/testimage-sdk/hello)
> 
> **rustc: symbol lookup error: /home/poky/build/tmp/work/qemux86\_64-poky-linux/core-image-sato/1.0/testimage-sdk/sysroots/x86\_64-pokysdk-linux/usr/bin/../../lib/libc.so.6: undefined symbol: \_\_tunable\_is\_initialized, version GLIBC\_PRIVATE**
> 
> ```
> process didn't exit successfully: `CARGO=/home/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0/testimage-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/cargo.real CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/home/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0/testimage-sdk/hello CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=hello CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/home/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0/testimage-sdk/hello LD_LIBRARY_PATH='/home/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0/testimage-sdk/hello/target/debug/deps:/home/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0/testimage-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/../../usr/lib:/home/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0/testimage-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/../../lib' rustc --crate-name build_script_build --edition=2021 build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=208 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C metadata=fdb3223b17fc3d7f -C extra-filename=-fdb3223b17fc3d7f --out-dir /home/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0/testimage-sdk/hello/target/debug/build/hello-fdb3223b17fc3d7f -C incremental=/home/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0/testimage-sdk/hello/target/debug/incremental -L dependency=/home/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0/testimage-sdk/hello/target/debug/deps` (exit status: 127)
> 
> ```
> 
> **error: could not compile `hello` (build script)**
> 
> **error: rustc interrupted by SIGSEGV, printing backtrace** /home/poky/build/tmp/work/qemux86\_64-poky-linux/core-image-sato/1.0/testimage-sdk/sysroots/x86\_64-pokysdk-linux/usr/bin/../../usr/lib/librustc\_driver-144f492bbe889313.so(+0xa51505)[0x7fe0d2a13505]
> 
> similar stack frames....
> 
> /home/poky/build/tmp/work/qemux86\_64-poky-linux/core-image-sato/1.0/testimage-sdk/sysroots/x86\_64-pokysdk-linux/usr/bin/../../lib/libc.so.6(+0xec26c)[0x7fe0d1d9326c]
> 
> note: we would appreciate a report at [GitHub - rust-lang/rust: Empowering everyone to build reliable and efficient software.](https://github.com/rust-lang/rust)
> 
> **note: backtrace dumped due to SIGSEGV! resuming signal**
> 
> **error: could not compile `hello` (build script)**

I tested the same case with 1..77.2 and 1..77.2 rustc/cargo versions and the cargo build successfully. But, above errror is seen in 1.78.

Why the glibc symbol `__tunable_is_initialized` is not defined in 1.78? How to fix this error? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![demurgos](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/demurgos/32/12056_2.png) [@demurgos](https://internals.rust-lang.org/u/demurgos)\
**Post date:** [July 11, 2024, 12:26pm UTC](https://internals.rust-lang.org/t/cargo-build-error-with-v1-78-in-sdk-for-poky-build/21155/2 "2024-07-11T12:26:14Z")

</div>

This forum is for compiler, language and tooling discussions. Your issue comes from your system configuration, please use [the users forum](https://users.rust-lang.org/) for such questions.

---

<div class="post-metadata">

**Author:** ![r\_leran](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@r\_leran](https://internals.rust-lang.org/u/r_leran)\
**Post date:** [July 11, 2024, 12:50pm UTC](https://internals.rust-lang.org/t/cargo-build-error-with-v1-78-in-sdk-for-poky-build/21155/3 "2024-07-11T12:50:55Z")

</div>

Thanks for the info. I created a [topic](https://users.rust-lang.org/t/cargo-build-error-with-v1-78-in-sdk-for-poky-build/114249) in users forum.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/system/32/14092_2.png) [@system](https://internals.rust-lang.org/u/system)\
**Post date:** [October 9, 2024, 12:51pm UTC](https://internals.rust-lang.org/t/cargo-build-error-with-v1-78-in-sdk-for-poky-build/21155/4 "2024-10-09T12:51:22Z")

</div>

Closed on October 9, 2024, 12:51pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
