Summary: | warning: unknown warning option '-Wno-format-truncation' [-Wunknown-warning-option] | ||
---|---|---|---|
Product: | Mesa | Reporter: | Vinson Lee <vlee> |
Component: | Other | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | mesa-dev |
Severity: | normal | ||
Priority: | medium | CC: | emil.l.velikov, fdo-bugs |
Version: | git | Keywords: | bisected, regression |
Hardware: | x86-64 (AMD64) | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 108530 | ||
Attachments: | workaround |
Description
Vinson Lee
2018-09-27 03:01:32 UTC
I haven't got this warning at this commit. I used these meson parameters: 1. meson -Dbuildtype=debug -Dvalgrind=false -Ddri-drivers=i965 -Dgallium-drivers= -Dvulkan-drivers= -Dgallium-omx="disabled" -Dplatforms=x11,drm,surfaceless -Dtools=intel ./mbuild64/ 2. meson -Dbuildtype=realese -Dvalgrind=false -Ddri-drivers=i965 -Dgallium-drivers= -Dvulkan-drivers= -Dgallium-omx="disabled" -Dplatforms=x11,drm,surfaceless -Dtools=intel ./mbuild64/ clang version is 6.0 Could you please provide command line by which you run meson, and your clang version. The warnings appear with autotools. ./autogen.sh --disable-egl --with-dri-drivers=swrast --with-gallium-drivers=swrast --with-platforms=x11 $ clang --version Apple LLVM version 10.0.0 (clang-1000.10.44.2) Target: x86_64-apple-darwin17.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin Created attachment 141819 [details] [review] workaround I've got this warning, and another one: warning: unknown warning option '-Wno-override-init'; did you mean '-Wno-override-module'? [-Wunknown-warning-option] It looks like the reason of problem is "AX_CHECK_COMPILE_FLAG". There is need ed to report problem to their bug tracer. I've wrote workaround for this issue which hides the problem, until this problem will be fixed in autoconf. (In reply to Illia from comment #3) > I've wrote workaround for > this issue which hides the problem, until this problem will be fixed in > autoconf. You can't have any logic based on the value of $CC (or $CXX), because `gcc` might be a symlink to `clang` (as is the case by default on MacOS for instance, but I've seen it on Linux as well), and users also use it to add compiler flags. As for the issue, do you guys see the same warning for any other -Wno-foo from our list? I'm 90% sure this is NOTOURBUG as we're already doing all the checks needed, but I want to figure out if it's clang or autotools going bad. Vinson, can you also try meson on your system? It would help narrow down the issue. (I've also checked that there's no typo in the configure.ac check, just in case, and there isn't) The warning messages do not appear with meson. These warnings also appear with Intel C Compiler. icc: command line warning #10148: option '-Wno-format-truncation' not supported We're not going to track down every ICC unsupported argument warning, ICC is very spammy about unsupported arguments, and getting compiler checks to work with ICC is a huge pain. As long as they're just warnings lets not worry about them. As an aside, I'm trying to get ICC in shape for meson, and there are lots of annoying "helpful" features in that compiler. Hopeuflly it'll be basically working by meson 0.49.0. Should be fixed with commit 29283921b72fa9386322fc9eb301d00e88b634b6 Author: Emil Velikov <emil.velikov@collabora.com> Date: Wed Oct 24 18:53:11 2018 +0100 m4: add Werror when checking for compiler flags |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.