This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld error/warning messages
- From: Steve Ellcey <sellcey at cavium dot com>
- To: Alan Modra <amodra at gmail dot com>, binutils at sourceware dot org
- Date: Mon, 26 Feb 2018 16:24:22 -0800
- Subject: Re: ld error/warning messages
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Steve dot Ellcey at cavium dot com;
- References: <20180226001925.GS3812@bubble.grove.modra.org>
- Reply-to: sellcey at cavium dot com
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
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