Lucretia
Topic Author
Posts: 1
Joined: 31 Jan 2023, 13:05

-Wno-maybe-uninitialized??

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.
$ 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.
 
User avatar
jsantos
Site Admin
Posts: 4063
Joined: 20 Jan 2012, 17:18
Contact:

Re: -Wno-maybe-uninitialized??

26 Oct 2023, 11:21

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?
 
User avatar
jsantos
Site Admin
Posts: 4063
Joined: 20 Jan 2012, 17:18
Contact:

Re: -Wno-maybe-uninitialized??

12 Jan 2024, 16:09

I created a ticket for this (#3007)

Who is online

Users browsing this forum: Ahrefs [Bot], burst2flame and 2 guests