From 3e94b4f6803159c241b8429315311f7c003f2b74 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Mon, 6 Mar 2017 23:12:16 -0800 Subject: Skip building locales on macos, too --enable-hacker-mode is not sufficient, in 2.25 configure then fails while checking for sysdeps fragments that apply to a given configuration, and with that worked around, fails on binutils & compiler version check. In brief: if someone wants locales on cygwin/macos, you'd have to implement cross-localedef (similar to cross-rpcgen) in glibc and submit it upstream. Signed-off-by: Alexey Neyman diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index c12a553..5a6a8fc 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -529,7 +529,7 @@ do_libc_locales() { # To build locales, we'd need to build glibc for the build machine. # Bail out if the host is not supported. case "${CT_BUILD}" in - *-cygwin) + *-cygwin|*-darwin*) CT_DoLog EXTRA "Skipping GNU libc locales: incompatible build machine" return ;; -- cgit v0.10.2-6-g49f6 From 2ef7d36efbfd7754a862d3840f0ea47ccec2f7df Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Tue, 7 Mar 2017 00:15:29 -0800 Subject: Disable format warnings for clang It picks up gettext string and results in [ERROR] messages from ct-ng when gettext strings happen inside an error() call. Signed-off-by: Alexey Neyman diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index a5ac7f9..b2cb08f 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -102,6 +102,11 @@ do_debug_gdb_build() { # FIXME: Really, we should be testing for host compiler being clang. CC_for_gdb+=" -Qunused-arguments" CXX_for_gdb+=" -Qunused-arguments" + # clang detects the line from gettext's _ macro as format string + # not being a string literal and produces a lot of warnings - which + # ct-ng's logger faithfully relays to user if this happens in the + # error() function. Suppress them. + cross_extra_config+=( "--enable-build-warnings=,-Wno-format-nonliteral,-Wno-format-security" ) ;; esac -- cgit v0.10.2-6-g49f6