Hello, We've fixed build infrastructure to allow both host- and accel-compilers to live in the same directory. We've also got rid off some [necessary for build] environment variables.
Unfortunately currently it’s impossible to run make check-target-libgomp from the build dir, since both accel- and host-compilers need to be installed into the same dir, otherwise host’s gcc will not find accel’s mkoffload. Bootstrapped. Rebaed on recent trunk. Updated manual: 1. Building accel compiler: /gcc_src/configure --build=x86_64-intelmic-linux-gnu --host=x86_64-intelmic-linux-gnu --target=x86_64-intelmic-linux-gnu --enable-as-accelerator-for=x86_64-pc-linux-gnu --enable-liboffloadmic=target --prefix=/install target_configargs="--enable-version-specific-runtime-libs" make make install 2. Building host compiler: export LIBOFFLOAD_TARGET_PATH="/install/lib/gcc/x86_64-intelmic-linux-gnu/4.10.0/" /gcc_src/configure --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --enable-offload-targets=x86_64-intelmic-linux-gnu --enable-liboffloadmic=host --prefix=/install make make install 3. Building an application: /install/bin/gcc -fopenmp -flto test.c 4. Running an application: export LIBGOMP_PLUGIN_PATH="/gcc_build_host/x86_64-pc-linux-gnu/libgomp/plugins/intelmic" export LD_LIBRARY_PATH="/install/lib64/" export MIC_LD_LIBRARY_PATH="/install/lib/gcc/x86_64-intelmic-linux-gnu/4.10.0/" ./a.out Do not delete build dir of the host compiler, since 'make install' for libgomp plugin is not working yet. Also there might be an issue with building libgomp plugin when using relative path to the 'configure'. -- Thanks, K PS: I've rebased kyukhin/gomp4-offload, so hashes are new.