From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14117 invoked by alias); 25 Mar 2007 22:21:53 -0000 Received: (qmail 14096 invoked by uid 48); 25 Mar 2007 22:21:44 -0000 Date: Sun, 25 Mar 2007 22:21:00 -0000 Subject: [Bug other/31353] New: gcc --help=target gives a linker error. X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "brooks at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg02395.txt.bz2 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