You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用x86_64-poky-linux构建glibfortran时遇Yocto GNU Fortran报错求助

在Yocto中构建libgfortran时遇到GNU Fortran检测失败错误

我尝试使用x86_64-poky-linux构建libgfortran,但过程中出现如下错误:

| checking whether the x86_64-poky-linux-gcc  -m64 -march=nehalem -mtune=generic -mfpmath=sse -msse4.2  -Wdate-time --sysroot=/home/build/tmp/work/corei7-64-poky-linux/gcc-runtime/10.2.0-r0/recipe-sysroot linker (x86_64-poky-linux-ld --sysroot=/home/build/tmp/work/corei7-64-poky-linux/gcc-runtime/10.2.0-r0/recipe-sysroot   -m elf_x86_64) supports shared libraries... yes
| checking whether -lc should be explicitly linked in... (cached) no
| checking dynamic linker characteristics... (cached) GNU/Linux ld.so
| checking how to hardcode library paths into programs... immediate
| checking for shl_load... (cached) no
| checking for shl_load in -ldld... (cached) no
| checking for dlopen... (cached) yes
| checking whether a program can dlopen itself... (cached) cross
| checking whether stripping libraries is possible... yes
| checking if libtool supports shared libraries... yes
| checking whether to build shared libraries... yes
| checking whether to build static libraries... yes
| checking for x86_64-poky-linux-gfortran... (cached) no
| checking whether we are using the GNU Fortran compiler... (cached) no
| checking whether no accepts -g... (cached) no
| checking whether the GNU Fortran compiler is working... no
| configure: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /home/build/tmp/work/corei7-64-poky-linux/gcc-runtime/10.2.0-r0/gcc-10.2.0/build.x86_64-poky-linux.x86_64-poky-linux/x86_64-poky-linux/libgfortran/config.log
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/build/../meta-x/recipes-devtools/gcc/gcc-runtime_10.2.bb:do_configure) failed with exit code '1'

我已按添加Fortran支持的Yocto配置说明完成设置,请问有没有人遇到过这个错误?求帮助!

GNU Fortran无法正常工作;请访问http://gcc.gnu.org/bugzilla提交bug报告

内容的提问来源于stack exchange,提问作者Thảo M. Hoàng

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.25 00:18:22