http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53529
Bug #: 53529
Summary: assembler errors while building a cross compiler if .
(dot) is in your PATH
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: [email protected]
ReportedBy: [email protected]
If you have . (current directory) in your PATH in front of the location of
the system assembler (typically /usr/bin/as) then while building the
cross compiler the wrong assembler is called, resulting in errors about an
unrecognized option or bad opcodes. The mixup is with the generated
shell script as in the gcc sub directory of the build tree. This shell
script points to the target-as and at this stage the host-as is needed.
Took me quit a while to diagnose the root cause as this is not so easy to find.