1 //==--- DiagnosticDriverKinds.td - libdriver diagnostics ------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 let Component = "Driver" in {
12 def err_drv_no_such_file : Error<"no such file or directory: '%0'">;
13 def err_drv_unsupported_opt : Error<"unsupported option '%0'">;
14 def err_drv_unsupported_opt_for_target : Error<
15 "unsupported option '%0' for target '%1'">;
16 def err_drv_unsupported_option_argument : Error<
17 "unsupported argument '%1' to option '%0'">;
18 def err_drv_unknown_stdin_type : Error<
19 "-E or -x required when input is from standard input">;
20 def err_drv_unknown_stdin_type_clang_cl : Error<
21 "use /Tc or /Tp to set input type for standard input">;
22 def err_drv_unknown_language : Error<"language not recognized: '%0'">;
23 def err_drv_invalid_arch_name : Error<
24 "invalid arch name '%0'">;
25 def err_drv_cuda_bad_gpu_arch : Error<"Unsupported CUDA gpu architecture: %0">;
26 def err_drv_no_cuda_installation : Error<
27 "cannot find CUDA installation. Provide its path via --cuda-path, or pass "
28 "-nocudainc to build without CUDA includes.">;
29 def err_drv_cuda_version_too_low : Error<
30 "GPU arch %1 requires CUDA version at least %3, but installation at %0 is %2. "
31 "Use --cuda-path to specify a different CUDA install, or pass "
32 "--no-cuda-version-check.">;
33 def err_drv_invalid_thread_model_for_target : Error<
34 "invalid thread model '%0' in '%1' for this target">;
35 def err_drv_invalid_linker_name : Error<
36 "invalid linker name in argument '%0'">;
37 def err_drv_invalid_pgo_instrumentor : Error<
38 "invalid PGO instrumentor in argument '%0'">;
39 def err_drv_invalid_rtlib_name : Error<
40 "invalid runtime library name in argument '%0'">;
41 def err_drv_unsupported_rtlib_for_platform : Error<
42 "unsupported runtime library '%0' for platform '%1'">;
43 def err_drv_invalid_stdlib_name : Error<
44 "invalid library name in argument '%0'">;
45 def err_drv_invalid_output_with_multiple_archs : Error<
46 "cannot use '%0' output with multiple -arch options">;
47 def err_drv_no_input_files : Error<"no input files">;
48 def err_drv_use_of_Z_option : Error<
49 "unsupported use of internal gcc -Z option '%0'">;
50 def err_drv_output_argument_with_multiple_files : Error<
51 "cannot specify -o when generating multiple output files">;
52 def err_drv_out_file_argument_with_multiple_sources : Error<
53 "cannot specify '%0%1' when compiling multiple source files">;
54 def err_no_external_assembler : Error<
55 "there is no external assembler that can be used on this platform">;
56 def err_drv_unable_to_remove_file : Error<
57 "unable to remove file: %0">;
58 def err_drv_command_failure : Error<
59 "unable to execute command: %0">;
60 def err_drv_invalid_darwin_version : Error<
61 "invalid Darwin version number: %0">;
62 def err_drv_missing_argument : Error<
63 "argument to '%0' is missing (expected %1 value%s1)">;
64 def err_drv_invalid_Xarch_argument_with_args : Error<
65 "invalid Xarch argument: '%0', options requiring arguments are unsupported">;
66 def err_drv_invalid_Xarch_argument_isdriver : Error<
67 "invalid Xarch argument: '%0', cannot change driver behavior inside Xarch argument">;
68 def err_drv_argument_only_allowed_with : Error<
69 "invalid argument '%0' only allowed with '%1'">;
70 def err_drv_argument_not_allowed_with : Error<
71 "invalid argument '%0' not allowed with '%1'">;
72 def err_drv_invalid_version_number : Error<
73 "invalid version number in '%0'">;
74 def err_drv_no_linker_llvm_support : Error<
75 "'%0': unable to pass LLVM bit-code files to linker">;
76 def err_drv_no_ast_support : Error<
77 "'%0': unable to use AST files with this tool">;
78 def err_drv_no_module_support : Error<
79 "'%0': unable to use module files with this tool">;
80 def err_drv_clang_unsupported : Error<
81 "the clang compiler does not support '%0'">;
82 def err_drv_clang_unsupported_opt_cxx_darwin_i386 : Error<
83 "the clang compiler does not support '%0' for C++ on Darwin/i386">;
84 def err_drv_command_failed : Error<
85 "%0 command failed with exit code %1 (use -v to see invocation)">;
86 def err_drv_command_signalled : Error<
87 "%0 command failed due to signal (use -v to see invocation)">;
88 def err_drv_force_crash : Error<
89 "failing because environment variable '%0' is set">;
90 def err_drv_invalid_mfloat_abi : Error<
91 "invalid float ABI '%0'">;
92 def err_drv_invalid_libcxx_deployment : Error<
93 "invalid deployment target for -stdlib=libc++ (requires %0 or later)">;
94 def err_drv_invalid_argument_to_fdebug_prefix_map : Error<
95 "invalid argument '%0' to -fdebug-prefix-map">;
96 def err_drv_malformed_sanitizer_blacklist : Error<
97 "malformed sanitizer blacklist: '%0'">;
99 def err_target_unsupported_arch
100 : Error<"the target architecture '%0' is not supported by the target '%1'">;
102 def err_drv_I_dash_not_supported : Error<
103 "'%0' not supported, please use -iquote instead">;
104 def err_drv_unknown_argument : Error<"unknown argument: '%0'">;
105 def warn_drv_unknown_argument_clang_cl : Warning<
106 "unknown argument ignored in clang-cl: '%0'">,
107 InGroup<UnknownArgument>;
109 def warn_drv_ycyu_no_arg_clang_cl : Warning<
110 "support for '%0' without a filename not implemented yet; flag ignored">,
112 def warn_drv_ycyu_different_arg_clang_cl : Warning<
113 "support for '/Yc' and '/Yu' with different filenames not implemented yet; flags ignored">,
115 def warn_drv_ycyu_no_fi_arg_clang_cl : Warning<
116 "support for '%0' without a corresponding /FI flag not implemented yet; flag ignored">,
118 def warn_drv_yc_multiple_inputs_clang_cl : Warning<
119 "support for '/Yc' with more than one source file not implemented yet; flag ignored">,
122 def err_drv_invalid_value : Error<"invalid value '%1' in '%0'">;
123 def err_drv_invalid_int_value : Error<"invalid integral value '%1' in '%0'">;
124 def err_drv_invalid_remap_file : Error<
125 "invalid option '%0' not of the form <from-file>;<to-file>">;
126 def err_drv_invalid_gcc_output_type : Error<
127 "invalid output type '%0' for use with gcc tool">;
128 def err_drv_cc_print_options_failure : Error<
129 "unable to open CC_PRINT_OPTIONS file: %0">;
130 def err_drv_preamble_format : Error<
131 "incorrect format for -preamble-bytes=N,END">;
132 def err_drv_conflicting_deployment_targets : Error<
133 "conflicting deployment targets, both '%0' and '%1' are present in environment">;
134 def err_drv_objc_gc_arr : Error<
135 "cannot specify both '-fobjc-arc' and '%0'">;
136 def err_arc_unsupported_on_runtime : Error<
137 "-fobjc-arc is not supported on platforms using the legacy runtime">;
138 def err_arc_unsupported_on_toolchain : Error< // feel free to generalize this
139 "-fobjc-arc is not supported on versions of OS X prior to 10.6">;
140 def err_objc_weak_with_gc : Error<
141 "-fobjc-weak is not supported in Objective-C garbage collection">;
142 def err_objc_weak_unsupported : Error<
143 "-fobjc-weak is not supported on the current deployment target">;
144 def err_drv_mg_requires_m_or_mm : Error<
145 "option '-MG' requires '-M' or '-MM'">;
146 def err_drv_unknown_objc_runtime : Error<
147 "unknown or ill-formed Objective-C runtime '%0'">;
148 def err_drv_emit_llvm_link : Error<
149 "-emit-llvm cannot be used when linking">;
150 def err_drv_optimization_remark_pattern : Error<
152 def err_drv_no_neon_modifier : Error<"[no]neon is not accepted as modifier, please use [no]simd instead">;
153 def err_drv_invalid_omp_target : Error<"OpenMP target is invalid: '%0'">;
154 def err_drv_omp_host_ir_file_not_found : Error<
155 "The provided host compiler IR file '%0' is required to generate code for OpenMP target regions but cannot be found.">;
156 def err_drv_omp_host_target_not_supported : Error<
157 "The target '%0' is not a supported OpenMP host target.">;
158 def err_drv_bitcode_unsupported_on_toolchain : Error<
159 "-fembed-bitcode is not supported on versions of iOS prior to 6.0">;
161 def warn_O4_is_O3 : Warning<"-O4 is equivalent to -O3">, InGroup<Deprecated>;
162 def warn_drv_optimization_value : Warning<"optimization level '%0' is not supported; using '%1%2' instead">,
163 InGroup<InvalidCommandLineArgument>;
164 def warn_ignored_gcc_optimization : Warning<"optimization flag '%0' is not supported">,
165 InGroup<IgnoredOptimizationArgument>;
166 def warn_c_kext : Warning<
167 "ignoring -fapple-kext which is valid for C++ and Objective-C++ only">;
168 def warn_drv_input_file_unused : Warning<
169 "%0: '%1' input unused%select{ when '%3' is present|}2">,
170 InGroup<UnusedCommandLineArgument>;
171 def warn_drv_input_file_unused_by_cpp : Warning<
172 "%0: '%1' input unused in cpp mode">,
173 InGroup<UnusedCommandLineArgument>;
174 def warn_drv_preprocessed_input_file_unused : Warning<
175 "%0: previously preprocessed input%select{ unused when '%2' is present|}1">,
176 InGroup<UnusedCommandLineArgument>;
177 def warn_drv_unused_argument : Warning<
178 "argument unused during compilation: '%0'">,
179 InGroup<UnusedCommandLineArgument>;
180 def warn_drv_empty_joined_argument : Warning<
181 "joined argument expects additional value: '%0'">,
182 InGroup<UnusedCommandLineArgument>;
183 def warn_drv_clang_unsupported : Warning<
184 "the clang compiler does not support '%0'">;
185 def warn_drv_deprecated_arg : Warning<
186 "argument '%0' is deprecated, use '%1' instead">, InGroup<Deprecated>;
187 def warn_drv_assuming_mfloat_abi_is : Warning<
188 "unknown platform, assuming -mfloat-abi=%0">;
189 def warn_ignoring_ftabstop_value : Warning<
190 "ignoring invalid -ftabstop value '%0', using default value %1">;
191 def warn_drv_overriding_flag_option : Warning<
192 "overriding '%0' option with '%1'">,
193 InGroup<DiagGroup<"overriding-t-option">>;
194 def warn_drv_treating_input_as_cxx : Warning<
195 "treating '%0' input as '%1' when in C++ mode, this behavior is deprecated">,
197 def warn_drv_objc_gc_unsupported : Warning<
198 "Objective-C garbage collection is not supported on this platform, ignoring '%0'">;
199 def warn_drv_pch_not_first_include : Warning<
200 "precompiled header '%0' was ignored because '%1' is not first '-include'">;
201 def warn_missing_sysroot : Warning<"no such sysroot directory: '%0'">,
202 InGroup<DiagGroup<"missing-sysroot">>;
203 def warn_incompatible_sysroot : Warning<"using sysroot for '%0' but targeting '%1'">,
204 InGroup<DiagGroup<"incompatible-sysroot">>;
205 def warn_debug_compression_unavailable : Warning<"cannot compress debug sections (zlib not installed)">,
206 InGroup<DiagGroup<"debug-compression-unavailable">>;
207 def warn_drv_enabling_rtti_with_exceptions : Warning<
208 "implicitly enabling rtti for exception handling">,
209 InGroup<DiagGroup<"rtti-for-exceptions">>;
210 def warn_drv_disabling_vptr_no_rtti_default : Warning<
211 "implicitly disabling vptr sanitizer because rtti wasn't enabled">,
212 InGroup<DiagGroup<"auto-disable-vptr-sanitizer">>;
214 def note_drv_command_failed_diag_msg : Note<
215 "diagnostic msg: %0">;
216 def note_drv_t_option_is_global : Note<
217 "The last /TC or /TP option takes precedence over earlier instances">;
218 def note_drv_address_sanitizer_debug_runtime : Note<
219 "AddressSanitizer doesn't support linking with debug runtime libraries yet">;
221 def err_analyzer_config_no_value : Error<
222 "analyzer-config option '%0' has a key but no value">;
223 def err_analyzer_config_multiple_values : Error<
224 "analyzer-config option '%0' should contain only one '='">;
226 def err_drv_modules_validate_once_requires_timestamp : Error<
227 "option '-fmodules-validate-once-per-build-session' requires "
228 "'-fbuild-session-timestamp=<seconds since Epoch>' or '-fbuild-session-file=<file>'">;
230 def err_test_module_file_extension_format : Error<
231 "-ftest-module-file-extension argument '%0' is not of the required form "
232 "'blockname:major:minor:hashed:user info'">;
234 def warn_drv_invoking_fallback : Warning<"falling back to %0">,
237 def warn_target_unsupported_nan2008 : Warning<
238 "ignoring '-mnan=2008' option because the '%0' architecture does not support it">,
239 InGroup<UnsupportedNan>;
240 def warn_target_unsupported_nanlegacy : Warning<
241 "ignoring '-mnan=legacy' option because the '%0' architecture does not support it">,
242 InGroup<UnsupportedNan>;
243 def warn_target_unsupported_compact_branches : Warning<
244 "ignoring '-mcompact-branches=' option because the '%0' architecture does not"
245 " support it">, InGroup<UnsupportedCB>;
247 def warn_drv_unable_to_find_directory_expected : Warning<
248 "unable to find %0 directory, expected to be in '%1'">,
249 InGroup<InvalidOrNonExistentDirectory>, DefaultIgnore;
251 def warn_drv_ps4_force_pic : Warning<
252 "option '%0' was ignored by the PS4 toolchain, using '-fPIC'">,
253 InGroup<OptionIgnored>;
255 def warn_drv_ps4_sdk_dir : Warning<
256 "environment variable SCE_ORBIS_SDK_DIR is set, but points to invalid or nonexistent directory '%0'">,
257 InGroup<InvalidOrNonExistentDirectory>;
259 def err_drv_unsupported_linker : Error<"unsupported value '%0' for -linker option">;