This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53529] New: assembler errors while building a cross compiler if . (dot) is in your PATH
- From: "bernard.van.duijnen at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 May 2012 15:24:52 +0000
- Subject: [Bug c/53529] New: assembler errors while building a cross compiler if . (dot) is in your PATH
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: bernard.van.duijnen@oracle.com
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.