Consider the following output:

------------------------------------------------
> ~/bin-trunk/bin/gcc --help=target
The following options are target specific:
  -m128bit-long-double        sizeof(long double) is 16
  -m32                        Generate 32bit i386 code
[...]
  -muclibc                    Use uClibc instead of GNU libc

/usr/lib/crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:98: undefined reference to `main'
collect2: ld returned 1 exit status
------------------------------------------------

This happens with any --help= option.

It looks like the "--help=" option isn't turning off the parts of the compiler
that do compilation, and so it's still trying to link an empty program.


-- 
           Summary: gcc --help=target gives a linker error.
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: brooks at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31353

Reply via email to