On Tue, 1 May 2018, Tom de Vries wrote:

> Hi,
> 
> if lto-wrapper can't find mkoffload for an acceleration target it shows this
> error:
> ...
> $ gcc -fopenacc test.c
> lto-wrapper: fatal error: problem with building target image for nvptx-none
> 
> compilation terminated.
> /usr/bin/ld: error: lto-wrapper failed
> collect2: error: ld returned 1 exit status
> ...
> 
> This error message does not say what is really going wrong, nor suggest how to
> fix.
> 
> This patch adds a more precise error message, with a suggestion on how to fix
> the error:
> ...
> $ gcc -fopenacc test.c
> lto-wrapper: fatal error: could not find accel/nvptx-none/mkoffload in
> install/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.0.1/:install/bin/../libexec/gcc/
> (consider using '-B')
> 
> compilation terminated.
> /usr/bin/ld: error: lto-wrapper failed
> collect2: error: ld returned 1 exit status
> ...
> 
> OK for trunk?

OK.

Richard.

Reply via email to