Build failure during test run with latest GCC

Steve Ellcey sellcey@cavium.com
Wed Jul 19 15:59:00 GMT 2017


I just built the latest glibc with the latest GCC and then tried to 
run the glibc testsuite.  The build of some of the tests died with following
error, has anyone else seen this?  I am guessing that this may be due to a
new GCC error/warning but I didn't see any obvious change in the GCC log
that would have caused it.

Steve Ellcey
sellcey@cavium.com



In file included from tests-mbwc/tst_types.h:16:0,
                 from tests-mbwc/tsp_common.c:17,
                 from tests-mbwc/tst_iswalnum.c:7:
tests-mbwc/tst_iswalnum.c: In function ‘tst_iswalnum’:
tests-mbwc/tst_funcs.h:210:6: error: macro expands to multiple statements [-Werror=multistatement-macros]
      {              \
      ^
tests-mbwc/tst_iswalnum.c:10:1: note: in expansion of macro ‘TST_FUNC_ISW’
 TST_FUNC_ISW (ALNUM, alnum);
 ^~~~~~~~~~~~
tests-mbwc/tst_funcs.h:162:3: note: some parts of macro expansion are not guarded by this ‘else’ clause
   else
   ^~~~
tests-mbwc/tst_funcs.h:209:4: note: in expansion of macro ‘TST_IF_RETURN’
    TST_IF_RETURN (S_ISW##_FUNC_)           \
    ^~~~~~~~~~~~~
tests-mbwc/tst_iswalnum.c:10:1: note: in expansion of macro ‘TST_FUNC_ISW’
 TST_FUNC_ISW (ALNUM, alnum);
 ^~~~~~~~~~~~
tests-mbwc/tst_funcs.h:199:2: error: macro expands to multiple statements [-Werror=multistatement-macros]

(more deleted)



More information about the Libc-alpha mailing list