Firefly开源社区

标题: 编译过程中出现缺失#include_next <stdlib.h>报错 [打印本页]

作者: 王二aaa    时间: 2023-6-15 10:09
标题: 编译过程中出现缺失#include_next <stdlib.h>报错
问题:
在服务器上编译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


tchip_askquestions

include_next-error.txt

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






欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1