On Thu, Aug 18, 2016 at 7:50 PM, stimits@comcast.net wrote:
/home/build/linaro/32bit/./gcc/as: line 106: exec: -m: invalid option exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]
The libgcc config.log is the right one to look at. The error is here, when gcc calls the assembler, the assembler gives an error. So something is wrong here. You need to configure, build, and install binutils before you configure and build gcc, using the same configure options for binutils and gcc.
To look at this a bit more, you can cd into the gcc build dir and try touch tmp.c ./xgcc -B./ -v tmp.c which will show the options passed to the assembler, and what assembler binary is being used.
You probably also want to look at the as file in the gcc build dir, which should be a shell script pointing at the installed assembler. This shell script is created at gcc configure time.
Jim