public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/31353]  New: gcc --help=target gives a linker error.
@ 2007-03-25 22:21 brooks at gcc dot gnu dot org
  2007-03-25 22:33 ` [Bug driver/31353] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: brooks at gcc dot gnu dot org @ 2007-03-25 22:21 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2007-04-04 18:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-25 22:21 [Bug other/31353] New: gcc --help=target gives a linker error brooks at gcc dot gnu dot org
2007-03-25 22:33 ` [Bug driver/31353] " pinskia at gcc dot gnu dot org
2007-03-25 23:21 ` brooks at gcc dot gnu dot org
2007-03-28 10:38 ` nickc at redhat dot com
2007-03-28 18:17 ` brooks at gcc dot gnu dot org
2007-03-29 10:06 ` nickc at redhat dot com
2007-04-04 18:10 ` brooks at gcc dot gnu dot org
2007-04-04 18:24 ` brooks at gcc dot gnu 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).