From 8046e94c8c2e9c14026f77ce76c96039e0a9226b Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 5 Jun 2020 19:37:56 -0700 Subject: apt: Disable c++11-narrowing and fortify apt 1.8.2+ does not compile with clang, clang is finding narrowing warnings and printf function is redefined in tests which confuses the function signatures from libc when fortify is enabled, its therefore disabled for now Signed-off-by: Khem Raj --- conf/nonclangable.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 8a1c7f5..3702e5f 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -276,3 +276,13 @@ RUNTIME_pn-gerbera_toolchain-clang = "llvm" # let same compiler ( gcc or clang) be native/cross compiler # | gcc: error: unrecognized command line option ‘-Qunused-arguments’ BUILD_CC_pn-nss_toolchain-clang = "clang" + +# libnoprofile.c:19:5: error: expected parameter declarator +# int printf(const char *format, ...) { +# ^ +# error: non-constant-expression cannot be narrowed from type 'std::chrono::duration< +#long long, std::ratio<1, 1> >::rep' (aka 'long long') to '__time_t' (aka 'long') in initializer list +# [-Wc++11-narrowing] +CXXFLAGS_append_pn-apt_toolchain-clang = " -Wno-c++11-narrowing" +lcl_maybe_fortify_pn-apt_toolchain-clang = "" + -- cgit v1.2.3-54-g00ecf