linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'?
@ 2024-04-16  7:42 kernel test robot
  2024-04-16 14:33 ` Ryan Roberts
  0 siblings, 1 reply; 7+ messages in thread
From: kernel test robot @ 2024-04-16  7:42 UTC (permalink / raw)
  To: Ryan Roberts
  Cc: oe-kbuild-all, linux-kernel, Andrew Morton, llvm,
	Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7efd0a74039fb6b584be2cb91c1d0ef0bd796ee1
commit: c652df8a4a9d7853fa1100b244024fd6f1a9c18a selftests: link libasan statically for tests with -fsanitize=address
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <yujie.liu@intel.com>
| Closes: https://lore.kernel.org/r/202404141807.LgsqXPY5-lkp@intel.com/

All errors (new ones prefixed by >>):

# tools/testing/selftests/fchmodat2$ make CC=clang
clang -Wall -O2 -g -fsanitize=address -fsanitize=undefined -static-libasan -isystem usr/include     fchmodat2_test.c  -o tools/testing/selftests/fchmodat2/fchmodat2_test
clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'?
make: *** [../lib.mk:181: tools/testing/selftests/fchmodat2/fchmodat2_test] Error 1

# tools/testing/selftests/openat2$ make CC=clang
clang -Wall -O2 -g -fsanitize=address -fsanitize=undefined -static-libasan     openat2_test.c helpers.c helpers.h  -o tools/testing/selftests/openat2/openat2_test
clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'?
clang: error: cannot specify -o when generating multiple output files
make: *** [../lib.mk:181: tools/testing/selftests/openat2/openat2_test] Error 1

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-04-17 15:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-16  7:42 clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'? kernel test robot
2024-04-16 14:33 ` Ryan Roberts
2024-04-16 14:42   ` Arnd Bergmann
2024-04-16 14:55     ` Ryan Roberts
2024-04-17 15:11     ` Ryan Roberts
2024-04-17 15:23       ` Arnd Bergmann
2024-04-17 15:52         ` Ryan Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox