milkv-duo / duo-buildroot-sdk

Milk-V Duo Official buildroot SDK
403 stars 173 forks source link

riscv64-unknown-linux-gnu-ld: unrecognized option '-D_LARGEFILE_SOURCE' - cant build any more #134

Open krzysztofkuczek opened 1 month ago

krzysztofkuczek commented 1 month ago

Hi, Suddenly the sdk stooped building. I was trying to remove and clone from git from scratch, the same problem:

LD /home/qczek/my-projects/milkv/duo-buildroot-sdk/fsbl/build/cv1812cp_milkv_duo256m_sd/blmacros/blmacros.elf riscv64-unknown-linux-gnu-ld -o /home/qczek/my-projects/milkv/duo-buildroot-sdk/fsbl/build/cv1812cp_milkv_duo256m_sd/blmacros/blmacros.elf --fatal-warnings -Os --gc-sections -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Map=/home/qczek/my-projects/milkv/duo-buildroot-sdk/fsbl/build/cv1812cp_milkv_duo256m_sd/blmacros/blmacros.map --script /home/qczek/my-projects/milkv/duo-buildroot-sdk/fsbl/build/cv1812cp_milkv_duo256m_sd/blmacros/blmacros.ld /home/qczek/my-projects/milkv/duo-buildroot-sdk/fsbl/build/cv1812cp_milkv_duo256m_sd/blmacros/build_message.o riscv64-unknown-linux-gnu-ld: unrecognized option '-D_LARGEFILE_SOURCE' riscv64-unknown-linux-gnu-ld: use the --help option for usage information make[1]: *** [Makefile:201: /home/qczek/my-projects/milkv/duo-buildroot-sdk/fsbl/build/cv1812cp_milkv_duo256m_sd/blmacros/blmacros.elf] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/home/qczek/my-projects/milkv/duo-buildroot-sdk/fsbl' make: *** [scripts/fip_v2.mk:32: fsbl-build] Error 2

I was building it even today morning, but it stooped to succeed :( I use ubuntu 22.04, no updates applied which may caused the problem. Any idea what do i wrong Thank you in advance. Kris

krzysztofkuczek commented 1 month ago

Problems solved by the reboot. Very strange...