GNOME Bugzilla – Bug 749138
Compilation with clang fails
Last modified: 2015-05-12 02:12:46 UTC
Compilation with clang (3.6.0) fails with the following message: analysis-frequency.c:155:38: error: format string is not a string literal [-Werror,-Wformat-nonliteral] dao_set_cell_printf (dao, col, 1, format, col); ^~~~~~ Identical compilation settings with gcc without "export CC=/usr/bin/clang" works. (11:09:10 PM) jean: Jutaky, that's because we use a glib macro which apprently does not supports clang, bt only gcc (11:10:22 PM) jean: please file a bug report
This happens because the G_GNUC_PRINTF macro does not support clang. The solution insid this macro is supposed to work as well with clang.
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution. If there are more, we will need a more general approach.
Next one would be: analysis-histogram.c:329:38: error: format string is not a string literal [-Werror,-Wformat-nonliteral] dao_set_cell_printf (dao, col, 1, format, col - to_col); ^~~~~~
can you try a "make -k" to see how many we're talking about?
Created attachment 303154 [details] make -k's stderr
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.