Running Tests Fails with very Minor Fix

nick xerofoify@gmail.com
Sun Oct 1 15:08:00 GMT 2017



On 2017-09-30 07:23 PM, Jonathan Wakely wrote:
> On 1 October 2017 at 00:11, nick <xerofoify@gmail.com> wrote:
>>
>>
>> On 2017-09-30 07:01 PM, Jonathan Wakely wrote:
>>> On 30 September 2017 at 22:42, nick wrote:
>>>> Greetings,
>>>>
>>>> I tried running the tests with:
>>>> make bootstrap
>>>> make -k check
>>>> and it fails like this:
>>>> make[5]: Entering directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/32/libatomic'
>>>> make  all-recursive
>>>> make[6]: Entering directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/32/libatomic'
>>>> Making all in testsuite
>>>> make[7]: Entering directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/32/libatomic/testsuite'
>>>> make[7]: Nothing to be done for 'all'.
>>>> make[7]: Leaving directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/32/libatomic/testsuite'
>>>> make[7]: Entering directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/32/libatomic'
>>>> true  DO=all multi-do # make
>>>> make[7]: Leaving directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/32/libatomic'
>>>> make[6]: Leaving directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/32/libatomic'
>>>> make[5]: Leaving directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/32/libatomic'
>>>> make[4]: Leaving directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/libatomic'
>>>> make[3]: Leaving directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/libatomic'
>>>> make[2]: Leaving directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/libatomic'
>>>> make[1]: Target 'check-target' not remade because of errors.
>>>> make[1]: Leaving directory '/home/nick/gcc/obdjir'
>>>> Makefile:2292: recipe for target 'do-check' failed
>>>> make: *** [do-check] Error 2
>>>> make: Target 'check' not remade because of errors.
>>>
>>> This only says that Make failed because of some earlier error, which
>>> you didn't show.
>>>
>>>> I have no idea why but I added this very minor fix:
>>>> error_at (EXPR_LOCATION (call_expr), "cannot tail-call: %s", _(reason));
>>>>
>>>> The only odd thing about this build is I am running it through ccache but I have no
>>>> idea how that would cause issues. Thoughts?
>>>
>>> There's no way we can say why this did or didn't fix an error that you
>>> didn't show us.
>>>
>> What info do you require. I am just showing you code changes as that's generally a question
>> asked.
> 
> The error message that you didn't show.
> 
> Make doesn't just fail and say "recipe for target 'do-check' failed"
> ... it will fail because some other command failed, and you didn't
> show that error. Look further back in the output of the make command.
> 
Jonathan,
This seems to be where it is starting to fail:
make[3]: Leaving directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/libgomp'
Makefile:904: recipe for target 'check-recursive' failed
make[2]: *** [check-recursive] Error 1
make[2]: Target 'check' not remade because of errors.
make[2]: Leaving directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/libgomp'
Makefile:22343: recipe for target 'check-target-libgomp' failed
make[1]: *** [check-target-libgomp] Error 2
make[2]: Entering directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/libitm'
Making check in testsuite
make[3]: Entering directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/libitm/testsuite'
make  check-DEJAGNU
make[4]: Entering directory '/home/nick/gcc/obdjir/x86_64-pc-linux-gnu/libitm/testsuite'
srcdir='../../../../libitm/testsuite'; export srcdir; \
EXPECT=expect; export EXPECT; \
runtest=runtest; \
if /bin/bash -c "$runtest --version" > /dev/null 2>&1; then \
  exit_status=0; l='libitm'; for tool in $l; do \
    if $runtest  --tool $tool --srcdir $srcdir ; \
    then :; else exit_status=1; fi; \
  done; \
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
fi; \
exit $exit_status
Test run by nick on Sun Oct  1 01:51:14 2017
Native configuration is x86_64-pc-linux-gnu

Nick



More information about the Gcc-help mailing list