-Wno-maybe-uninitialized??
Posted: 26 Oct 2023, 00:45
Trying to build the linux amd64 samples and failing on this option, gcc back to 9.5.0 doesn't have this option and searching the clang options, I've also tried clang 15-17, comes up blank.
My default clang is 17. Default gcc is 12.3.1. SDK is 3.2.2.
Edit:
Found it, the docs could be better.
CC=gcc CXX=g++ make -f NoesisGUI-linux-x86_64.mk CONFIG=Release
Also, can you archive linux sources with tar so it preserves all the file/directory permissions properly, zip messes them up. Ta.
Code: Select all
$ make -f NoesisGUI-linux-x86_64.mk CONFIG=Release
==== [NoesisApp] Building Release configuration ====
[PCH] [NoesisApp] pch.h
fatal error: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
make[1]: *** [Makefile:131: build/Release/pch.h.gch] Error 1
make: *** [NoesisGUI-linux-x86_64.mk:71: NoesisApp] Error 2
$ CC=clang CXX=clang++ make -f NoesisGUI-linux-x86_64.mk CONFIG=Release
==== [NoesisApp] Building Release configuration ====
[PCH] [NoesisApp] pch.h
fatal error: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
make[1]: *** [Makefile:131: build/Release/pch.h.gch] Error 1
make: *** [NoesisGUI-linux-x86_64.mk:71: NoesisApp] Error 2
$ CC=/usr/lib/llvm/16/bin/clang CXX=/usr/lib/llvm/16/bin/clang++ make -f NoesisGUI-linux-x86_64.mk CONFIG=Release
==== [NoesisApp] Building Release configuration ====
[PCH] [NoesisApp] pch.h
fatal error: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
make[1]: *** [Makefile:131: build/Release/pch.h.gch] Error 1
make: *** [NoesisGUI-linux-x86_64.mk:71: NoesisApp] Error 2
$ CC=/usr/lib/llvm/15/bin/clang CXX=/usr/lib/llvm/15/bin/clang++ make -f NoesisGUI-linux-x86_64.mk CONFIG=Release
==== [NoesisApp] Building Release configuration ====
[PCH] [NoesisApp] pch.h
fatal error: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
make[1]: *** [Makefile:131: build/Release/pch.h.gch] Error 1
make: *** [NoesisGUI-linux-x86_64.mk:71: NoesisApp] Error 2
Edit:
Found it, the docs could be better.
CC=gcc CXX=g++ make -f NoesisGUI-linux-x86_64.mk CONFIG=Release
Also, can you archive linux sources with tar so it preserves all the file/directory permissions properly, zip messes them up. Ta.