[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <684ec15f-6407-430d-af8f-8751e9aa4c43@kernel.org>
Date: Thu, 8 Feb 2024 11:30:31 +0100
From: Daniel Bristot de Oliveira <bristot@...nel.org>
To: Nathan Chancellor <nathan@...nel.org>
Cc: Steven Rostedt <rostedt@...dmis.org>,
Masami Hiramatsu <mhiramat@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>, Bill Wendling
<morbo@...gle.com>, Justin Stitt <justinstitt@...gle.com>,
Donald Zickus <dzickus@...hat.com>, stable@...r.kernel.org,
linux-trace-kernel@...r.kernel.org, linux-kernel@...r.kernel.org,
llvm@...ts.linux.dev
Subject: Re: [PATCH 1/6] tools/rtla: Fix Makefile compiler options for clang
On 2/6/24 16:48, Nathan Chancellor wrote:
> On Tue, Feb 06, 2024 at 12:05:29PM +0100, Daniel Bristot de Oliveira wrote:
>> The following errors are showing up when compiling rtla with clang:
>>
>> $ make HOSTCC=clang CC=clang LLVM_IAS=1
>> [...]
>>
>> clang -O -g -DVERSION=\"6.8.0-rc1\" -flto=auto -ffat-lto-objects
>> -fexceptions -fstack-protector-strong
>> -fasynchronous-unwind-tables -fstack-clash-protection -Wall
>> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
>> -Wp,-D_GLIBCXX_ASSERTIONS -Wno-maybe-uninitialized
>> $(pkg-config --cflags libtracefs) -c -o src/utils.o src/utils.c
>>
>> clang: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
>
> For what it's worth, this flag is supported in clang 17.0.0 and newer:
>
> https://github.com/llvm/llvm-project/commit/610fc5cbcc8b68879c562f6458608afe2473ab7f
Good! still, I am getting this error on fedora, with this clang version:
bristot@x1:~/src/git/linux/tools/tracing/rtla$ clang --version
clang version 17.0.6 (Fedora 17.0.6-1.fc39)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
:-(
> But if it is not critical, just dropping the flag like you have done
> here rather than conditionally supporting it is probably easier.
Yeah, I will drop it for now, and keep monitoring.
Thanks Natan!
-- Daniel
Powered by blists - more mailing lists