This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Problems using gcc-3.4.0 to run binutils testsuite: cdtest ERROR: cc1plus: error: unrecognized command line option "-fgnu-linker"
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Christian Joensson <christian at j-son dot org>
- Cc: binutils <binutils at sources dot redhat dot com>
- Date: 19 Feb 2004 09:54:26 -0500
- Subject: Re: Problems using gcc-3.4.0 to run binutils testsuite: cdtest ERROR: cc1plus: error: unrecognized command line option "-fgnu-linker"
- References: <20040219134808.B29793@fw.j-son.org>
Christian Joensson <christian@j-son.org> writes:
> I've been having "problems" with cdtest ERROR when running the ld
> testsuite, reported also to bug-binutils
> http://mail.gnu.org/archive/html/bug-binutils/2004-02/msg00025.html ...
>
>
> Running /usr/local/src/trunk/src/ld/testsuite/ld-cdtest/cdtest.exp ...
> c++ -L/usr/local/src/trunk/objdir-binutils/ld -g -O2 -fgnu-linker
> -fno-exceptions -B/usr/local/src/trunk/objdir-binutils/ld/tmpdir/gas/
> -I/usr/local/src/trunk/src/ld/testsuite/ld-cdtest -g -O2 -fPIC -c
> /usr/local/src/trunk/src/ld/testsuite/ld-cdtest/cdtest-foo.cc -o
> tmpdir/cdtest-foo.o
> cc1plus: error: unrecognized command line option "-fgnu-linker"
> ERROR: /usr/local/src/trunk/src/ld/testsuite/ld-cdtest/cdtest-foo.cc:
> compilation failed
> UNRESOLVED: cdtest
> UNRESOLVED: cdtest with -Ur
>
> Is this something we just should ignore, or should we resolve it
> somehow?
We should resolve it by removing the -fgnu-linker option, since it has
been removed from gcc.
If somebody wants to test whether gcc supports -fgnu-linker and use it
if available, that would be fine. But I think it would also be OK to
just remove the option.
Ian