Cannot find -lstdc++ when compiling real-time-edge-3.1.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot find -lstdc++ when compiling real-time-edge-3.1.0

Jump to solution
981 Views
dewey
Contributor I

Refer to The Real-time Edge Software User Guide, I used yocoto to compile avb demo, but

I encountered this compilation error,

....

b2280dccb.so" "-shared" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "-Wl,-z,origin" "-Wl,-rpath,$ORIGIN/../lib"
| = note: yocto-real-time-edge/build/tmp/hosttools/ld: cannot find -lstdc++: No such file or directory
| collect2: error: ld returned 1 exit status
|
|
| error: could not compile `rustc_driver` (lib) due to previous error
|

...

ERROR: Task (virtual:native:yocto-real-time-edge/sources/poky/meta/recipes-devtools/rust/rust_1.75.0.bb:do_install

 

After downloading the code repository I compiled the image using the following command

 

DISTRO=nxp-real-time-edge \

MACHINE=imx93-14x14-lpddr4x-evk  \

source real-time-edge-setup-env.sh -b build

 

bitbake nxp-image-real-time-edge

and The machine where I currently compile the code

LSB Version: core-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy

 

 

 

0 Kudos
Reply
1 Solution
953 Views
danielchen
NXP TechSupport
NXP TechSupport

HI @dewey :

 

cannot find -lstdc++—during the Yocto build for the Real-time Edge Software on Ubuntu 22.04 LTS is typically due to missing development libraries for C++ on the host system.

I would suggest you update the gcc version in your host system.

Please install all the required host packages according to UG10164: I.MX Yocto Project User's Guide

danielchen_0-1748415883368.png

 

 

Regards

Daniel

 

View solution in original post

2 Replies
954 Views
danielchen
NXP TechSupport
NXP TechSupport

HI @dewey :

 

cannot find -lstdc++—during the Yocto build for the Real-time Edge Software on Ubuntu 22.04 LTS is typically due to missing development libraries for C++ on the host system.

I would suggest you update the gcc version in your host system.

Please install all the required host packages according to UG10164: I.MX Yocto Project User's Guide

danielchen_0-1748415883368.png

 

 

Regards

Daniel

 

905 Views
dewey
Contributor I

Hi, Daniel

     Thanks for your reply, The machine's local gcc was incorrectly set to gcc9 by update-alternatives, and it was modified to gcc11 to compile successfully.

0 Kudos
Reply