This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/62197] New: Option -Bprefix does not affect the search for the assembler
- From: "r.berber at computer dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Aug 2014 03:39:27 +0000
- Subject: [Bug c/62197] New: Option -Bprefix does not affect the search for the assembler
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62197
Bug ID: 62197
Summary: Option -Bprefix does not affect the search for the
assembler
Product: gcc
Version: 4.9.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: r.berber at computer dot org
A simple example showing the problem:
$ uname -a
Linux DiskStation 3.2.40 #4493 SMP Wed Jul 9 21:14:19 CST 2014 x86_64 GNU/Linux
$ gcc -dumpversion
4.9.1
$ echo 'main(){}' > dummy.c
$ strace gcc -B/opt/src/binutils-build/ld/tmpdir/gas/ dummy.c 2>&1 | grep "/as"
access("/opt/bin/as", X_OK) = 0
$ /opt/src/binutils-build/ld/tmpdir/gas/as -V
GNU assembler version 2.24 (x86_64-unknown-linux-gnu) using BFD version (GNU
Binutils) 2.24
Every other program and file is searched for as the manual says, except the
assembler.
Using the alternative, GCC_EXEC_PREFIX, results in failure to find cc1.