Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
krzysztofkuczek opened this issue Sep 4, 2024 · 1 comment

Comments

@krzysztofkuczek
Copy link

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
Copy link
Author

Problems solved by the reboot. Very strange...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant