openEuler Embedded如何构建本地编译环境?如基本的GCC

我发现oee使用的是yocto方式进行的系统构建,但是裁剪了GCC等编译环境,导致即使local.conf里append也无济于事。
我发现是某个bb强制跳过了本地cc的编译,于是我取消了注释
但是我发现,即使编译生成了gcc后,本地仍然无法编译,我认为这可能和使用external的编译环境有关

本地编译后我gcc -v,发现gcc版本为12.3.0,显然和external的gcc不是一个版本,本地的是12.3.1版本,我的报错如下:

phytium ~ # gcc -o hello hello.c
/usr/lib64/gcc/aarch64-openeuler-linux/12.3.0/../../../../aarch64-openeuler-linux/bin/ld: cannot find crtbeginS.o: No such file or directory
/usr/lib64/gcc/aarch64-openeuler-linux/12.3.0/../../../../aarch64-openeuler-linux/bin/ld: cannot find -lgcc: No such file or directory
/usr/lib64/gcc/aarch64-openeuler-linux/12.3.0/../../../../aarch64-openeuler-linux/bin/ld: cannot find -lgcc: No such file or directory
collect2: error: ld returned 1 exit status