https://bugs.freedesktop.org/show_bug.cgi?id=49862
Bug #: 49862 Summary: Build error due to `-Wcovered-switch-default ` in LLVM_CFLAGS unrecognized by gcc Classification: Unclassified Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Mesa core AssignedTo: mesa-dev@lists.freedesktop.org ReportedBy: o...@ojab.ru Created attachment 61546 --> https://bugs.freedesktop.org/attachment.cgi?id=61546 Filter out -Wcovered-switch-default from LLVM_CFLAGS/LLVM_CXXFLAGS llvm built by clang has -Wcovered-switch-default in cpplags/cxxflags: bash-4.2$ llvm-config --cppflags -I/usr/include -D_GNU_SOURCE -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -Wcovered-switch-default -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS bash-4.2$ llvm-config --cxxflags -I/usr/include -fPIC -fvisibility-inlines-hidden -O3 -DNDEBUG -D_GNU_SOURCE -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -Wcovered-switch-default -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS which leads to build error in case of mesa build using gcc: make[3]: Leaving directory `/sources/mesa/src/mesa/x86-64' gcc -c -o main/api_arrayelt.o main/api_arrayelt.c -DFEATURE_GL=1 -DFEATURE_ES1=1 -DFEATURE_ES2=1 -D_GNU_SOURCE -DPTHREADS -DTEXTURE_FLOAT_ENABLED -DHAVE_POSIX_MEMALIGN -DIN_DRI_DRIVER -DUSE_XCB -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_XEXTPROTO_71 -DHAVE_LLVM=0x0302 -I../../include -I../../src/glsl -I../../src/mesa -I../../src/mapi -I../../src/gallium/include -I../../src/gallium/auxiliary -I/usr/include -D_GNU_SOURCE -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wcovered-switch-default -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DUSE_EXTERNAL_DXTN_LIB -g -O2 -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -g -O2 -fPIC -DUSE_X86_64_ASM -fvisibility=hidden gcc: error: unrecognized command line option ‘-Wcovered-switch-default’ I don't really know how to deal with it, can it be just filtered out like `-pedantic` in LLVM_CFLAGS? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev