Firefly开源社区

打印 上一主题 下一主题

[Linux] 编译过程中出现缺失#include_next <stdlib.h>报错

23

积分

0

威望

0

贡献

技术小白

积分
23

编译过程中出现缺失#include_next <stdlib.h>报错

发表于 2023-6-15 10:09:25      浏览:3824 | 回复:0        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: rk3588_linux_release_20230114_v1.0.6c
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: 未修改
  • Log日志: include_next-error.txt
问题描述及复现步骤:
问题:
在服务器上编译ITX-3588J的代码时。先运行如下命令解压
  1. cat path/to/rk3588_linux_release_20230114_v1.0.6c_0* | tar -xv
复制代码


代码解压后,
运行如下命令进行编译

  1. ci@Common_192-168-61-88_12026_docker:~/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28$ ./build.sh device/rockchip/rk3588/itx-3588j-buildroot.m
  2. processing option: device/rockchip/rk3588/itx-3588j-buildroot.mk
  3. ci@Common_192-168-61-88_12026_docker:~/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28$ ./build.sh
复制代码
编译脚本运行到编译fluidsynth时,
出现报错

  1. 2023-06-14T13:27:32 [ 93%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/bindings/fluid_ladspa.c.o
  2. 2023-06-14T13:27:32 In file included from /home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/host/aarch64-linux-gnu/include/c++/11.3.0/bits/stl_algo.h:59,
  3. 2023-06-14T13:27:32 from /home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/host/aarch64-buildroot-linux-e/c++/11.3.0/algorithm:62,
  4. 2023-06-14T13:27:32 from /home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/build/fluidsynth-2.2.3/src/mieq_queue.cpp:24:
  5. 2023-06-14T13:27:32 /home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/host/aarch64-buildroot-linux-gnu/i/11.3.0/cstdlib:75:15:<span style="background-color: yellow;"> fatal error: stdlib.h: No such file or directory</span>
  6. 2023-06-14T13:27:32 7<span style="background-color: yellow;">5 |<font color="#ff0000"> </font><font color="#000000">#include_next <stdlib.h></font></span>
  7. 2023-06-14T13:27:32 |               ^~~~~~~~~~
  8. 2023-06-14T13:27:32 compilation terminated.
  9. 2023-06-14T13:27:32 make[3]: *** [src/CMakeFiles/libfluidsynth-OBJ.dir/build.make:566: src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_seq_queue.cr 1
  10. 2023-06-14T13:27:32 make[3]: *** Waiting for unfinished jobs....
  11. 2023-06-14T13:27:33 make[3]: Leaving directory '/home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/build/-2.2.3'
  12. 2023-06-14T13:27:33 make[2]: *** [CMakeFiles/Makefile2:237: src/CMakeFiles/libfluidsynth-OBJ.dir/all] Error 2
  13. 2023-06-14T13:27:33 make[2]: Leaving directory '/home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/build/-2.2.3'
  14. 2023-06-14T13:27:33 make[1]: *** [Makefile:166: all] Error 2
  15. 2023-06-14T13:27:33 make[1]: Leaving directory '/home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/build/-2.2.3'
  16. 2023-06-14T13:27:33 make: *** [package/pkg-generic.mk:297: /home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk/fluidsynth-2.2.3/.stamp_built] Error 2
  17. 2023-06-14T13:27:33 make: Leaving directory '/home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot'
  18. Please check details in /home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/.buildroot/br.log
复制代码

2023-06-14T13:27:32 [ 93%] Building C object src/CMakeFiles/libfluidsynth-OBJ.dir/bindings/fluid_ladspa.c.o
2023-06-14T13:27:32 In file included from /home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/host/aarch64-linux-gnu/include/c++/11.3.0/bits/stl_algo.h:59,
2023-06-14T13:27:32 from /home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/host/aarch64-buildroot-linux-e/c++/11.3.0/algorithm:62,
2023-06-14T13:27:32 from /home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/build/fluidsynth-2.2.3/src/mieq_queue.cpp:24:
2023-06-14T13:27:32 /home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/host/aarch64-buildroot-linux-gnu/i/11.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
2023-06-14T13:27:32 75 | #include_next <stdlib.h>
2023-06-14T13:27:32 |               ^~~~~~~~~~
2023-06-14T13:27:32 compilation terminated.
2023-06-14T13:27:32 make[3]: *** [src/CMakeFiles/libfluidsynth-OBJ.dir/build.make:566: src/CMakeFiles/libfluidsynth-OBJ.dir/midi/fluid_seq_queue.cr 1
2023-06-14T13:27:32 make[3]: *** Waiting for unfinished jobs....
2023-06-14T13:27:33 make[3]: Leaving directory '/home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/build/-2.2.3'
2023-06-14T13:27:33 make[2]: *** [CMakeFiles/Makefile2:237: src/CMakeFiles/libfluidsynth-OBJ.dir/all] Error 2
2023-06-14T13:27:33 make[2]: Leaving directory '/home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/build/-2.2.3'
2023-06-14T13:27:33 make[1]: *** [Makefile:166: all] Error 2
2023-06-14T13:27:33 make[1]: Leaving directory '/home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk3588/build/-2.2.3'
2023-06-14T13:27:33 make: *** [package/pkg-generic.mk:297: /home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot/output/firefly_rk/fluidsynth-2.2.3/.stamp_built] Error 2
2023-06-14T13:27:33 make: Leaving directory '/home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/buildroot'
Please check details in /home/ci/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28/.buildroot/br.log


include_next-error.txt

86.82 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表