Fatal error: gnu/stubs-soft.h: No such file or directory

Hey Toradex Team!

I am trying to cross-compile my Qt 5 Project and run it into Aplis-imx6 with Apalis eval board v1.1A.

By following the above link, I have built qt SDK to cross-compile.

I have used BSP 6 and kirkstone-6.x.y branch to build SDK.

PARALLEL_MAKE="-j 4" BB_NUMBER_THREADS="6" bitbake meta-toolchain-qt5

Using the above command, I have successfully built the SDK.

After setting up Kit in Qtcreator using the above toolchain, when i create a using qmake, it works perfectly, but it gives me a fatal error with cmake.

fatal error: gnu/stubs-soft.h: No such file or directory

“I’m not sure what is going wrong here. Can you please offer any assistance?”
Let me know if there is any additional information that I can provide to help solve the issue.


Hi @vishvas,

Thanks for asking your question on Toradex community!

Regarding your question, the information shared do not give much to suggest cause of error or what happened wrong. Unfortunately we do not direct article available at the moment for using cmake to cross compile to help you with steps. If you can share steps what you followed and at what steps you get this error, we can try to test same at our end.
That said please re-check if you have configure your terminal for cross compiling.

I am sharing an external link which provide detail on cross compiling using cmake
“How to Set Up QtCreator for Cross-Compilation with CMake in 5 Minutes” - Qt Embedded Days.

Best Regards
Ritesh Kumar

Here are detailed steps that I have performed.

  1. To compile my project, I first had to build the SDK from scratch.
repo init -u git://git.toradex.com/toradex-manifest.git -b kirkstone-6.x.y -m tdxref/default.xml
repo sync

The link mentioned above was used for cloning the Yocto repository.

  1. After settling the configuration file, I added the machine as “Aplis imx6” in conf/local.conf. and build SDK using the below command.
PARALLEL_MAKE="-j 4" BB_NUMBER_THREADS="6" bitbake meta-toolchain-qt5

Once the SDK is built, it creates a script file in the deploy/sdk/tdx-xwayland-upstream-glibc-x86_64-meta-toolchain-qt5-upstream-armv7at2hf-neon-apalis-imx6-toolchain-6.5.0.sh.

  1. I executed the script to acquire the SDK, which will installed the SDK in opt/tdx-xwayland-upstream/6.5.0.

  2. Source the environment file and open Qt Creator IDE from the shell. The IDE automatically detects the arm-tdx-linux-gnueabi-g++ compiler.

reference used :

After completing the necessary tasks to create Kit, I created a Qt project and attempted to build it using CMake, but encountered an error. Attached is my error log.

CMakeError.log (20.9 KB)
CMakeOutput.log (703 Bytes)


Hi @vishvas,
Can you try adding the below to CmakeList.txt file

Hi, @sahil.tx

I have tried to modify the CMakeLists.txt file, but unfortunately, the changes did not have any effect.

After testing the BSP V2.8 SDK, I was able to cross-compile my Qt(Cmake) project without any ABI errors. I don’t know why it’s not working with BSP V6.


Hi @vishvas ,
The error that you got were not seen anymore at my end.
Please check qt documentations.
Let us know if you need our further help