clang 11rc1 - target aarch64 -mharden-sls warning

Good day.
I am testing a compilation of clang ver. 11rc1 using the
clang-11.0.0rc1 compiler.

CFLAGS and CXXFLAGS I have set "-march=armv8-a -mharden-sls=all -pipe"

When compiling, I get a message:
clang-11: warning: argument unused during compilation: -mharden-sls=all

Is this warning caused by my incorrect settings or there is an error in the code

Best regards


Hi Milan,

just to be sure:

Are you doing a multi-stage build? On which stage is the warning emitted?
The architecture you are building on itself is ARM or are you doing
cross compilation?

The argument itself is a compatibility-option for GCC, which might be
added after clang-11 was branched?
seems to have it included though!)

The generic warning message is emitted when that specified option is not
utilized because it does not apply in this instance.
For example, I have seen this when compiling C code with C++-specific

So your specific setup would be relevant to know.

Best Regards

Hi Jonas

I built Clang in the native aarch64 environment on a Jetson TX2 device.
I didn't use bootstrap.

My procedure:
- compile clang using gcc compiler using
   CFLAGS and CXXFLAGS = "-march = armv8-a -mharden-sls = all -pipe"
   CC=gcc CXX=g ++

- installation of clang into the system

- recompiling clang using the clang compiler using
   CFLAGS and CXXFLAGS = "-march = armv8-a -mharden-sls = all -pipe"
   CC=clang CXX=clang ++

I'm getting an error message during this step.

Build configuration used:

cmake .. -G Ninja \
               -DCMAKE_BUILD_TYPE = Release \
               -DCMAKE_INSTALL_PREFIX = / usr \
               -DCLANG_INCLUDE_TEST = OFF \
               -DCLANG_PLUGIN_SUPPORT = ON \
               -DCLANG_VENDOR = "SAUX Aarch64" \

I'll wait until clang v. 11.0.0 is released.
Then I'll try again.

Best regards

po 3. 8. 2020 v 12:05 odesílatel Jonas Toth <> napsal: