This is the mail archive of the binutils@sourceware.org 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: ld error/warning messages


Alan,

I think this change caused a failure of g++.dg/other/anon5.C in the GCC
testsuite.  On my Aarch64 system; I was getting:

/tmp/ccuhtBd3.o: In function `f()':
/home/sellcey/tot/anon5.C:18: undefined reference to `(anonymous
namespace)::c::t'
/home/sellcey/tot/anon5.C:18: undefined reference to `(anonymous
namespace)::c::t'
collect2: error: ld returned 1 exit status

And now I get:

/home/sellcey/tot/install/lib/gcc/aarch64-linux-
gnu/8.0.1/../../../../aarch64-linux-gnu/bin/ld: /tmp/ccedsFID.o: in
function `f()':
/home/sellcey/tot/anon5.C:18: undefined reference to `(anonymous
namespace)::c::t'
/home/sellcey/tot/install/lib/gcc/aarch64-linux-
gnu/8.0.1/../../../../aarch64-linux-gnu/bin/ld:
/home/sellcey/tot/anon5.C:18: undefined reference to `(anonymous
namespace)::c::t'
collect2: error: ld returned 1 exit status


This is causing the test to fail with 'excess errors'.

FAIL: g++.dg/other/anon5.C  -std=gnu++98 (test for excess errors)
Excess errors:
/home/sellcey/tot/install/aarch64-linux-gnu/bin/ld: /tmp/ccE5UDzm.o: in
function `f()':


It looks like the important difference is 'In function' (capital I) vs.
'in function' (lowercase i).  That is why this line is no longer
getting pruned the way it did before.

We could get the GCC testsuite to prune this line with a change
to prune_gcc_output in gcc/testsuite/lib/prune.exp but I am not 
sure if that is what we want to do or if you meant to use a capital
I in this case and the lower case i is a bug.

Steve Ellcey
sellcey@cavium.com


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