https://sourceware.org/bugzilla/show_bug.cgi?id=32018
Bug ID: 32018 Summary: Compilation of binutils 2.43 for riscv64-unknown-linux-gnu failed on CentOS 6 Product: binutils Version: 2.43 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: bigmagicreadsun at gmail dot com Target Milestone: --- Fetch the source code from the latest branch of binutils and configure it with the following options: ../configure --prefix=/home/tools --target=riscv64-unknown-linux-gnu --disable-nls --disable-werror --enable-new-dtags --disable-gdb --disable-sim --disable-libdecnumber --disable-readline When running make to compile, the following error occurs: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../gprofng/libcollector -U_ASM -I.. -I../../../gprofng/libcollector -I../../../gprofng/libcollector/../common -I../../../gprofng/libcollector/../src -I../../../gprofng/libcollector/../../include -I../../bfd -I../../../gprofng/libcollector/../.. -Wall -Wno-nonnull-compare -g -O2 -MT libgp_collector_la-hwprofile.lo -MD -MP -MF .deps/libgp_collector_la-hwprofile.Tpo -c ../../../gprofng/libcollector/hwprofile.c -fPIC -DPIC -o .libs/libgp_collector_la-hwprofile.o In file included from /usr/include/string.h:637, from ../../../gprofng/libcollector/../common/hwcdrv.h:37, from ../../../gprofng/libcollector/hwprofile.c:35: ../../../gprofng/libcollector/hwprofile.c: In function ‘open_experiment’: ../../../gprofng/libcollector/hwprofile.c:219:27: error: expected identifier before ‘(’ token params = CALL_UTIL (strchr)(params, ';'); ^~~~~~ ../../../gprofng/libcollector/hwprofile.c:219:16: note: in expansion of macro ‘CALL_UTIL’ params = CALL_UTIL (strchr)(params, ';'); ^~~~~~~~~ ../../../gprofng/libcollector/hwprofile.c:225:24: error: expected identifier before ‘(’ token char *s = CALL_UTIL (strchr)(params, (int) ';'); ^~~~~~ ../../../gprofng/libcollector/hwprofile.c:225:13: note: in expansion of macro ‘CALL_UTIL’ char *s = CALL_UTIL (strchr)(params, (int) ';'); ^~~~~~~~~ make[5]: *** [Makefile:715: libgp_collector_la-hwprofile.lo] Error 1 make[5]: Leaving directory '/home/riscv-gnu-toolchain-upstream/binutils/build/gprofng/libcollector' make[4]: *** [Makefile:478: all] Error 2 make[4]: Leaving directory '/home/riscv-gnu-toolchain-upstream/binutils/build/gprofng/libcollector' make[3]: *** [Makefile:472: all-recursive] Error 1 make[3]: Leaving directory '/home/riscv-gnu-toolchain-upstream/binutils/build/gprofng' make[2]: *** [Makefile:404: all] Error 2 make[2]: Leaving directory '/home/riscv-gnu-toolchain-upstream/binutils/build/gprofng' make[1]: *** [Makefile:7319: all-gprofng] Error 2 make[1]: Leaving directory '/home/riscv-gnu-toolchain-upstream/binutils/build' make: *** [Makefile:1028: all] Error 2 -- You are receiving this mail because: You are on the CC list for the bug.