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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
977件の閲覧回数
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 件の賞賛
返信
1 解決策
949件の閲覧回数
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

 

元の投稿で解決策を見る

2 返答(返信)
950件の閲覧回数
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

 

901件の閲覧回数
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 件の賞賛
返信