https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91908
Bug ID: 91908 Summary: New libbacktrace fail to build Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libbacktrace Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org CC: ian at gcc dot gnu.org Target Milestone: --- Host: hppa*-*-hpux* Target: hppa*-*-hpux* Build: hppa*-*-hpux* /opt/gnu/bin/bash ./libtool --tag=CC --mode=compile /test/gnu/gcc/objdir/./gc c/xgcc -B/test/gnu/gcc/objdir/./gcc/ -B/opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11 /bin/ -B/opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/lib/ -isystem /opt/gnu/gcc/gcc -10/hppa2.0w-hp-hpux11.11/include -isystem /opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux1 1.11/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc/libbacktrace -I ../../.. /gcc/libbacktrace/../include -I ../../../gcc/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=xcoff_32.lo -W -Wall -Wwrite-strings -Wstrict-p rototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -Werror -g -O2 -c -o xcoff_32.lo xcoff_32.c libtool: compile: /test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/ -B/opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-10/hppa2.0w -hp-hpux11.11/lib/ -isystem /opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/include -i system /opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc/libbacktrace -I ../../../gcc/libbacktrace/../include -I ../../.. /gcc/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=xcoff_32. lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style -definition -Wmissing-format-attribute -Wcast-qual -Werror -g -O2 -c xcoff_32.c -fPIC -DPIC -o .libs/xcoff_32.o In file included from xcoff_32.c:45: xcoff_32.c: In function 'backtrace_initialize': ../../../gcc/libbacktrace/internal.h:64:55: error: right-hand operand of comma e xpression has no effect [-Werror=unused-value] 64 | #define __sync_bool_compare_and_swap(A, B, C) (abort(), 1) | ~~~~~~~~^~~~ xcoff_32.c:1596:2: note: in expansion of macro '__sync_bool_compare_and_swap' 1596 | __sync_bool_compare_and_swap (&state->syminfo_fn, NULL, xcoff_nosyms); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Makefile:1204: recipe for target 'xcoff_32.lo' failed make[3]: *** [xcoff_32.lo] Error 1 make[3]: Target 'test_xcoff_32' not remade because of errors. /opt/gnu/bin/bash ./libtool --tag=CC --mode=compile /test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/ -B/opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/lib/ -isystem /opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/include -isystem /opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc/libbacktrace -I ../../../gcc/libbacktrace/../include -I ../../../gcc/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=xcoff_64.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -Werror -g -O2 -c -o xcoff_64.lo xcoff_64.c libtool: compile: /test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/ -B/opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/lib/ -isystem /opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/include -isystem /opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc/libbacktrace -I ../../../gcc/libbacktrace/../include -I ../../../gcc/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=xcoff_64.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -Werror -g -O2 -c xcoff_64.c -fPIC -DPIC -o .libs/xcoff_64.o In file included from xcoff_64.c:45: xcoff_64.c: In function 'backtrace_initialize': ../../../gcc/libbacktrace/internal.h:64:55: error: right-hand operand of comma expression has no effect [-Werror=unused-value] 64 | #define __sync_bool_compare_and_swap(A, B, C) (abort(), 1) | ~~~~~~~~^~~~ xcoff_64.c:1596:2: note: in expansion of macro '__sync_bool_compare_and_swap' 1596 | __sync_bool_compare_and_swap (&state->syminfo_fn, NULL, xcoff_nosyms); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Makefile:1204: recipe for target 'xcoff_64.lo' failed make[3]: *** [xcoff_64.lo] Error 1 make[3]: Target 'test_xcoff_64' not remade because of errors. /opt/gnu/bin/bash ./libtool --tag=CC --mode=compile /test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/ -B/opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/lib/ -isystem /opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/include -isystem /opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc/libbacktrace -I ../../../gcc/libbacktrace/../include -I ../../../gcc/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=pecoff.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -Werror -g -O2 -c -o pecoff.lo ../../../gcc/libbacktrace/pecoff.c libtool: compile: /test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/ -B/opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/lib/ -isystem /opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/include -isystem /opt/gnu/gcc/gcc-10/hppa2.0w-hp-hpux11.11/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc/libbacktrace -I ../../../gcc/libbacktrace/../include -I ../../../gcc/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=pecoff.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -Werror -g -O2 -c ../../../gcc/libbacktrace/pecoff.c -fPIC -DPIC -o .libs/pecoff.o In file included from ../../../gcc/libbacktrace/pecoff.c:40: ../../../gcc/libbacktrace/pecoff.c: In function 'backtrace_initialize': ../../../gcc/libbacktrace/internal.h:64:55: error: right-hand operand of comma expression has no effect [-Werror=unused-value] 64 | #define __sync_bool_compare_and_swap(A, B, C) (abort(), 1) | ~~~~~~~~^~~~ ../../../gcc/libbacktrace/pecoff.c:925:2: note: in expansion of macro '__sync_bool_compare_and_swap' 925 | __sync_bool_compare_and_swap (&state->syminfo_fn, NULL, coff_nosyms); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Makefile:1204: recipe for target 'pecoff.lo' failed make[3]: *** [pecoff.lo] Error 1 make[3]: Target 'test_pecoff' not remade because of errors.