Hi All,
I am getting a weird error while building binutils from http://cbuild.validation.linaro.org/snapshots/Latest/binutils-linaro-2.23.2-...
GCC version gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu9) Ubuntu 13.10
Steps:
1)
/work/sources/binutils/configure --target=aarch64-unknown-linux-gnu --prefix=/work/builds/gcc-fsf-trunk/tools --with-sysroot=/work/builds/gcc-fsf-trunk/sysroot-aarch64-unknown-linux-gnu
2) make
(Snip) gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I/work/sources/binutils/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic /work/sources/binutils/libiberty/regex.c -o regex.o In file included from /work/sources/binutils/libiberty/regex.c:128:0: /usr/include/stdlib.h:510:35: error: expected ‘,’ or ‘;’ before ‘__attribute_alloc_size__’ __THROW __attribute_malloc__ __attribute_alloc_size__ ((2)) __wur; ^ make[2]: *** [regex.o] Error 1 make[2]: Leaving directory `/work/builds/gcc-fsf-trunk/obj-aarch64-unknown-linux-gnu/binutils/libiberty' (Snip)
Can anyone point me what is going wrong here.
regards, Venkat,
linaro-toolchain@lists.linaro.org