Bug 1082717 - Checking influence of “llvm-config” on building software with GCC
Checking influence of “llvm-config” on building software with GCC
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development
x86-64 SUSE Other
: P5 - None : Normal (vote)
: ---
Assigned To: Michal Srb
E-mail List
Depends on:
  Show dependency treegraph
Reported: 2018-02-25 17:48 UTC by Markus Elfring
Modified: 2018-03-20 13:40 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Markus Elfring 2018-02-25 17:48:34 UTC
The following software packages are installed also on my system.
* GCC 7-2.9
* llvm5-devel 5.0.1-4.3

I have noticed the software situation that the command “llvm-config --cflags” can provide a compilation parameter which will trigger the message “cc: error: unrecognized command line option ‘-Wstring-conversion’; did you mean ‘-Wint-conversion’?”.


If I try another software build try out by a command like “make CC=clang …”, it can succeed.

How should this configuration tool be improved?
Comment 1 Michal Srb 2018-03-20 09:36:58 UTC
It is true that the llvm-config --help shows:

  --cflags          C compiler flags for files that include LLVM headers.

I would interpret it as the minimum amount of flags needed to use the headers. I would not expect it to include clang specific warnings like the ‘-Wstring-conversion’. However I am afraid there is not much we can do about it on distribution level. Please report it to LLVM upstream.

As a workaround you can use clang, or filter llvm-config's output, or not use it at all. For example Mesa, one of the biggest users of LLVM in openSUSE, strips away many unwanted flags:
Comment 2 Markus Elfring 2018-03-20 13:40:13 UTC
(In reply to Michal Srb from comment #1)

I am curious if the clarification will be continued for this software situation:
Checking provided compilation parameters