王二aaa 发表于 2023-6-15 10:09:25

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

问题:
在服务器上编译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: *** [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: *** Waiting for unfinished jobs....
2023-06-14T13:27:33 make: 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: *** 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/output/firefly_rk3588/build/-2.2.3'
2023-06-14T13:27:33 make: *** 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/output/firefly_rk3588/build/-2.2.3'
2023-06-14T13:27:33 make: *** 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: *** [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: *** Waiting for unfinished jobs....
2023-06-14T13:27:33 make: 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: *** 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/output/firefly_rk3588/build/-2.2.3'
2023-06-14T13:27:33 make: *** 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/output/firefly_rk3588/build/-2.2.3'
2023-06-14T13:27:33 make: *** 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


页: [1]
查看完整版本: 编译过程中出现缺失#include_next <stdlib.h>报错