【Linux】
编译过程中出现缺失#include_next <stdlib.h>报错
发表于 2023-6-15 10:09:25
浏览:3823
|
回复: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的代码时。先运行如下命令解压
cat path/to/rk3588_linux_release_20230114_v1.0.6c_0* | tar -xv
复制代码
代码解压后,
运行如下命令进行编译
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
processing option: device/rockchip/rk3588/itx-3588j-buildroot.mk
ci@Common_192-168-61-88_12026_docker:~/workspace/gc_gen_OS/wxf/rk3588-2023_06_12_15_49_28$ ./build.sh 复制代码 编译脚本运行到编译fluidsynth时,
出现报错
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:<span style="background-color: yellow;"> fatal error: stdlib.h: No such file or directory</span>
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>
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
复制代码
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