Page 1 of 1

-Wno-maybe-uninitialized??

Posted: 26 Oct 2023, 00:45
by Lucretia
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.
$ 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
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.

Re: -Wno-maybe-uninitialized??

Posted: 26 Oct 2023, 11:21
by jsantos
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.
Checking with godbolt, it seems that Wno-maybe-uninitialized is supported by GCC 6.3.0+ but not supported by clang. Could you please report a ticket about this?
Found it, the docs could be better.
Sorry, not following you here. What did you find?
Also, can you archive linux sources with tar so it preserves all the file/directory permissions properly, zip messes them up. Ta.
Yes, could you please report a ticket for this too?

Re: -Wno-maybe-uninitialized??

Posted: 12 Jan 2024, 16:09
by jsantos
I created a ticket for this (#3007)