This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/61651] New: Cross compiler will use host as eroneously


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'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]