starfive-tech / VisionFive2

438 stars 78 forks source link

make buildroot_rootfs -j$(nproc) error #91

Closed jackrambor closed 4 months ago

jackrambor commented 4 months ago

hi,I recive some error when build rootfs,as follow, checking whether sigaltstack is declared... yes checking for struct tms... yes checking for clock_t... yes checking for F_SETLKW... yes checking for O_CLOEXEC... yes checking for AF_UNIX... yes checking for AF_INET6... yes checking for _LK_LOCK... no checking if mkdir takes one argument... no /data/risc-v/StarFive/VisionFive2/work/buildroot_initramfs/host/bin/python: error while loading shared libraries: libpython3.9.so.1.0: cannot open shared object file: No such file or directory --with-abi=lp64d is not supported for ISA Makefile:4538: recipe for target 'configure-gcc' failed make[2]: [configure-gcc] Error 1 make[2]: Leaving directory '/data/risc-v/StarFive/VisionFive2/work/buildroot_rootfs/build/host-gcc-initial-12.2.0/build' package/pkg-generic.mk:292: recipe for target '/data/risc-v/StarFive/VisionFive2/work/buildroot_rootfs/build/host-gcc-initial-12.2.0/.stamp_built' failed make[1]: [/data/risc-v/StarFive/VisionFive2/work/buildroot_rootfs/build/host-gcc-initial-12.2.0/.stamp_built] Error 2 make[1]: Leaving directory '/data/risc-v/StarFive/VisionFive2/buildroot' Makefile:181: recipe for target '/data/risc-v/StarFive/VisionFive2/work/buildroot_rootfs/images/rootfs.ext4' failed make: *** [/data/risc-v/StarFive/VisionFive2/work/buildroot_rootfs/images/rootfs.ext4] Error 2

jackrambor commented 4 months ago

The problem has been solved. It needs to be recompiled separately. The method is as follows: make -C ./work/buildroot_rootfs/ O=./work/buildroot_rootfs host-gcc-initial-dirclean make -C ./work/buildroot_rootfs/ O=./work/buildroot_rootfs host-gcc-initial-rebuild