public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/61651] New: Cross compiler will use host as eroneously
@ 2014-06-29 19:08 martin at netbsd dot org
  2014-07-02 13:22 ` [Bug driver/61651] " martin at netbsd dot org
  0 siblings, 1 reply; 2+ messages in thread
From: martin at netbsd dot org @ 2014-06-29 19:08 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61651

            Bug ID: 61651
           Summary: Cross compiler will use host as eroneously
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: martin at netbsd dot org

With a gcc configured like this:

> mipsel--netbsd-gcc -v
Using built-in specs.
COLLECT_GCC=mipsel--netbsd-gcc
COLLECT_LTO_WRAPPER=/usr/pkg/libexec/gcc/mipsel--netbsd/4.9.0/lto-wrapper
Target: mipsel--netbsd
Configured with: ../gcc-4.9.0/configure --disable-nls --disable-libquadmath
--disable-libquadmath-support --disable-libssp --disable-libgomp
--disable-libstdc++-v3 --disable-libatomic --enable-languages='c c++'
--enable-shared --enable-long-long --with-local-prefix=/usr/pkg
--enable-threads=posix --with-boot-ldflags= --target=mipsel--netbsd
--with-gmp=/usr/pkg --with-mpc=/usr/pkg --with-mpfr=/usr/pkg --prefix=/usr/pkg
--build=x86_64--netbsd --host=x86_64--netbsd --infodir=/usr/pkg/info
--mandir=/usr/pkg/man
Thread model: posix
gcc version 4.9.0 (GCC) 

and binutils pre-installed in the PATH, picked up by configure correctly:

checking dynamic linker characteristics... NetBSD ld.elf_so
checking how to hardcode library paths into programs... immediate
checking what assembler to use... /usr/pkg/bin/mipsel--netbsd-as
checking whether we are using gold... no
checking what linker to use... /usr/pkg/bin/mipsel--netbsd-ld
checking what nm to use... /usr/pkg/bin/mipsel--netbsd-nm
checking for mipsel--netbsd-objdump... /usr/pkg/bin/mipsel--netbsd-objdump
checking what objdump to use... /usr/pkg/bin/mipsel--netbsd-objdump

I still get compiler that tries to invoke plain "as":

> mipsel--netbsd-gcc --print-prog-name=as
as

and also tries to use this, which obviously fails:

 > mipsel--netbsd-gcc -v -c test.c 
Using built-in specs.
COLLECT_GCC=mipsel--netbsd-gcc
Target: mipsel--netbsd
Configured with: ../gcc-4.9.0/configure --disable-nls --disable-libquadmath
--disable-libquadmath-support --disable-libssp --disable-libgomp
--disable-libstdc++-v3 --disable-libatomic --enable-languages='c c++'
--enable-shared --enable-long-long --with-local-prefix=/usr/pkg
--enable-threads=posix --with-boot-ldflags= --target=mipsel--netbsd
--with-gmp=/usr/pkg --with-mpc=/usr/pkg --with-mpfr=/usr/pkg --prefix=/usr/pkg
--build=x86_64--netbsd --host=x86_64--netbsd --infodir=/usr/pkg/info
--mandir=/usr/pkg/man
Thread model: posix
gcc version 4.9.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-c'
 /usr/pkg/libexec/gcc/mipsel--netbsd/4.9.0/cc1 -quiet -v test.c -quiet
-dumpbase test.c -auxbase test -version -o /var/tmp//cc5IJkOh.s
GNU C (GCC) version 4.9.0 (mipsel--netbsd)
        compiled by GNU C version 4.8.3, GMP version 6.0.0, MPFR version 3.1.2, 
MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory
"/usr/pkg/lib/gcc/mipsel--netbsd/4.9.0/../../../../mipsel--netbsd/sys-include"
ignoring nonexistent directory
"/usr/pkg/lib/gcc/mipsel--netbsd/4.9.0/../../../../mipsel--netbsd/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/pkg/lib/gcc/mipsel--netbsd/4.9.0/include
 /usr/pkg/lib/gcc/mipsel--netbsd/4.9.0/include-fixed
End of search list.
GNU C (GCC) version 4.9.0 (mipsel--netbsd)
        compiled by GNU C version 4.8.3, GMP version 6.0.0, MPFR version 3.1.2,
MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3b870805c849a6d735de46047e60e2cd
COLLECT_GCC_OPTIONS='-v' '-c'
 as -v -EL -O1 -no-mdebug -mabi=32 -KPIC -o test.o /var/tmp//cc5IJkOh.s
GNU assembler version 2.23.2 (x86_64--netbsd) using BFD version (NetBSD
Binutils nb1) 2.23.2
as: unrecognized option `-EL'


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug driver/61651] Cross compiler will use host as eroneously
  2014-06-29 19:08 [Bug driver/61651] New: Cross compiler will use host as eroneously martin at netbsd dot org
@ 2014-07-02 13:22 ` martin at netbsd dot org
  0 siblings, 0 replies; 2+ messages in thread
From: martin at netbsd dot org @ 2014-07-02 13:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61651

--- Comment #1 from Martin Husemann <martin at netbsd dot org> ---
Passing AS_FOR_TARGET (and friends) in the configure environment does not help,
but explicitly adding --with-as=.. does fix the issue.

So this looks like a pure configure bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-02 13:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-29 19:08 [Bug driver/61651] New: Cross compiler will use host as eroneously martin at netbsd dot org
2014-07-02 13:22 ` [Bug driver/61651] " martin at netbsd dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).