Hi! On Tue, 7 Oct 2014 17:51:53 +0400, Ilya Verbin <iver...@gmail.com> wrote: > On 07 Oct 15:06, Jakub Jelinek wrote: > > Still have issues with the non-installed testing. > > The idea was that the offload compiler should be installed. > > > If I add > > -B /usr/src/gcc-git/objinst/usr/local/lib/gcc/x86_64-pc-linux-gnu/5.0.0/ \ > > -B /usr/src/gcc-git/objinst/usr/local/libexec/gcc/x86_64-pc-linux-gnu/5.0.0/ > > Yes, since lto-wrapper uses COMPILER_PATH + "/accel/<target>/" to find > mkoffload, it requires that the offload compiler with mkoffload are installed. > Probably, it can be extended to search in the build paths, specified by > --enable-offload-targets option. > > > to the command line so it at least finds mkoffload, it then can't find for > > some reason the offload compiler: > > mkoffload itself also wants the offload compiler with correct name > (<host>-accel-<target>-gcc). It can be extended to use xgcc. But I don't > know, > how to construct all paths for it (-B, -I, -L)?
For what it's worth, I first build accel-nvptx GCC (in $T/build-gcc-accel-nvptx/), then "normal" GCC ($PWD, that is, in $T/build-gcc/), and use the following steps to make offloading work for build-tree testing of both GCC builds: [...] mkdir -p gcc/accel/nvptx-none && ln -vsf \ "$T"/build-gcc-accel-nvptx/gcc/lto1 \ "$T"/build-gcc-accel-nvptx/gcc/mkoffload \ "$T"/build-gcc-accel-nvptx/gcc/xgcc \ gcc/accel/nvptx-none/ && cat > gcc/x86_64-unknown-linux-gnu-accel-nvptx-none-gcc <<"EOF" && #! /bin/sh set -e d=$(dirname "$0") "$d"/accel/nvptx-none/xgcc -B"$d"/accel/nvptx-none/ "$@" EOF chmod +x gcc/x86_64-unknown-linux-gnu-accel-nvptx-none-gcc && [...] > > So, what exactly should be added (by libgomp.exp) so that the testing > > succeeds in > > the case of non-installed offload and non-installed host compilers? > > Looks like, that non-installed offload compiler requires some complications. > Is this really necessary? Grüße, Thomas
pgph12Jtgys7g.pgp
Description: PGP signature