On Thu, Jul 16, 2015 at 01:04:28PM -0700, Mike McWilliam wrote: > user@host:/opt/gcc-4.9.3/binutils/binutils-2.25/gas> gcc -DHAVE_CONFIG_H > -I. -I. -I. -I../bfd -I./config -I./../include -I./.. -I./../bfd > -DLOCALEDIR="\"/opt/gcc-4.9.3/install/share/locale\"" -W -Wall > -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT as.o -MD -MP > -MF .deps/as.Tpo -c -o as.o as.c --save-temps > > ... <same error> ... > > user@host:/opt/gcc-4.9.3/binutils/binutils-2.25/gas> head as.i -n 20 > # 1 "as.c" > # 1 "/opt/gcc-4.9.3/binutils/binutils-2.25/gas//" > # 1 "<built-in>" > # 1 "<command-line>" > # 1 "/usr/include/stdc-predef.h" 1 3 4 > # 1 "<command-line>" 2 > # 1 "as.c" > # 34 "as.c" > # 1 "as.h" 1 > # 37 "as.h" > # 1 "./../include/alloca-conf.h" 1 > # 16 "./../include/alloca-conf.h" > # 1 "../bfd/config.h" 1 > # 17 "./../include/alloca-conf.h" 2
This says your gcc is broken, but before you report a bug you should check exactly what runs when you type "gcc". It may be a script that inserts options, or something like ccache. There are also environment variables that can affect gcc's include path search order. -- Alan Modra Australia Development Lab, IBM _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils