This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Re: Problems using gcc-3.4.0 to run binutils testsuite: cdtest ERROR: cc1plus: error: unrecognized command line option "-fgnu-linker"


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


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