[libc-commits] [PATCH] D128994: [libc] Add a separate algorithm_test.

Guillaume Chatelet via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Jul 4 01:27:45 PDT 2022


gchatelet added a comment.

Thx @lntue.
I've been able to reproduce the error with `cmake fullbuild` -> `ninja llvmlibc` -> `ninja check-libc`
And indeed, from a clean CMake folder `cmake fullbuild` -> `ninja check-libc` passes.

I've extracted both compilation command lines and they are identical. This is puzzling.

  /redacted_home/build-llvm/download/clang/bin/clang++
  --sysroot=/redacted_home/build-llvm/download/sysroot
  -D_DEBUG
  -D_GNU_SOURCE
  -D__STDC_CONSTANT_MACROS
  -D__STDC_FORMAT_MACROS
  -D__STDC_LIMIT_MACROS
  -I/redacted_home/llvm-project_rel_compiled-with-clang/projects/libc/test/src/string/memory_utils
  -I/redacted_home/git/llvm-project/libc/test/src/string/memory_utils
  -I/redacted_home/llvm-project_rel_compiled-with-clang/include
  -I/redacted_home/git/llvm-project/llvm/include
  -I/redacted_home/git/llvm-project/libc
  -I/redacted_home/llvm-project_rel_compiled-with-clang/projects/libc
  -I/redacted_home/llvm-project_rel_compiled-with-clang/projects/libc/include
  -fPIC
  -fno-semantic-interposition
  -fvisibility-inlines-hidden
  -Werror=date-time
  -Werror=unguarded-availability-new
  -Wall
  -Wextra
  -Wno-unused-parameter
  -Wwrite-strings
  -Wcast-qual
  -Wmissing-field-initializers
  -pedantic
  -Wno-long-long
  -Wc++98-compat-extra-semi
  -Wimplicit-fallthrough
  -Wcovered-switch-default
  -Wno-noexcept-type
  -Wnon-virtual-dtor
  -Wdelete-non-virtual-dtor
  -Wsuggest-override
  -Wstring-conversion
  -Wmisleading-indentation
  -fdiagnostics-color
  -ffunction-sections
  -fdata-sections
  -O3
  -DNDEBUG
  -UNDEBUG
  -march=znver3
  -std=c++17
  -MD
  -MT
  projects/libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.algorithm_test.dir/algorithm_test.cpp.o
  -MF
  projects/libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.algorithm_test.dir/algorithm_test.cpp.o.d
  -o
  projects/libc/test/src/string/memory_utils/CMakeFiles/libc.test.src.string.memory_utils.algorithm_test.dir/algorithm_test.cpp.o
  -c
  /redacted_home/git/llvm-project/libc/test/src/string/memory_utils/algorithm_test.cpp


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128994/new/

https://reviews.llvm.org/D128994



More information about the libc-commits mailing list