This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Trying to debug a testsuite failure
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Paul Koning <paulkoning at comcast dot net>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Tue, 23 Oct 2018 12:08:56 +0200
- Subject: Re: Trying to debug a testsuite failure
- References: <526C3BF9-3CF7-47C9-8BD6-A2DEFE76CA51@comcast.net>
On Tue, Oct 23, 2018 at 2:39 AM Paul Koning <paulkoning@comcast.net> wrote:
>
> In running the gcc testsuite on pdp11, I get some failures like this:
>
> collect2: fatal error: /Users/pkoning/Documents/svn/buildpdp/gcc/nm returned 1 exit status
> compilation terminated.
> compiler exited with status 1
> FAIL: gcc.c-torture/execute/builtins/memcpy-chk.c compilation, -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions
>
> While those tests flags are not terribly useful on a small memory platform like pdp11, I wouldn't expect a failure like that. Some tests with those flags do pass.
>
> The real issue is that collect2 is apparently failing for no visible reason and without any helpful explanation of what it's trying to do. Any hints on how I might debug this?
Try with -Wl,-debug -Wl,-v but then it already tells you that nm
failed somehow. So possibly debug
that via strace -f?
Richard.
> paul
>