On 2015.11.19 at 21:50 +0100, Markus Trippelsdorf wrote: > On 2015.11.19 at 20:41 +0000, Luis wrote: > > Hi, > > > > I was wondering if someone could help me to overcome this error. I am > > installing gcc5 on a BlueGeneQ and I am getting the following error: > > > > Checking multilib configuration for libgomp... > > Configuring stage 2 in powerpc64-bgq-linux/libgomp > > configure: loading cache ./config.cache > > checking for --enable-version-specific-runtime-libs... no > > checking for --enable-generated-files-in-srcdir... no > > checking build system type... powerpc64-bgq-linux-gnu > > checking host system type... powerpc64-bgq-linux-gnu > > checking target system type... powerpc64-bgq-linux-gnu > > checking for a BSD-compatible install... /usr/bin/install -c > > checking whether build environment is sane... yes > > checking for powerpc64-bgq-linux-strip... strip > > checking for a thread-safe mkdir -p... /bin/mkdir -p > > checking for gawk... gawk > > checking whether make sets $(MAKE)... yes > > checking for powerpc64-bgq-linux-gcc... > > /gpfs/home/HCBG142/axs02/lxc83-axs02/gcc-5.2.0/host-powerpc64-bgq-linux/gcc/xgcc > > -B/gpfs/home/HCBG142/axs02/lxc83-axs02/gcc-5.2.0/host-powerpc64-bgq-linux/gcc/ > > -B/gpfs/home/HCBG142/axs02/lxc83-axs02/gcc5/powerpc64-bgq-linux/bin/ > > -B/gpfs/home/HCBG142/axs02/lxc83-axs02/gcc5/powerpc64-bgq-linux/lib/ > > -isystem > > /gpfs/home/HCBG142/axs02/lxc83-axs02/gcc5/powerpc64-bgq-linux/include > > -isystem > > /gpfs/home/HCBG142/axs02/lxc83-axs02/gcc5/powerpc64-bgq-linux/sys-include > > checking for C compiler default output file name... > > configure: error: in > > `/gpfs/home/HCBG142/axs02/lxc83-axs02/gcc-5.2.0/powerpc64-bgq-linux/libgomp': > > configure: error: C compiler cannot create executables > > See `config.log' for more details. > > > > My config: > > > > ./configure --build=powerpc64-bgq-linux-gnu --host=powerpc64-bgq-linux > > --prefix=/gpfs/home/HCBG142/axs02/lxc83-axs02/gcc5 > > --with-gmp=/gpfs/home/HCBG142/axs02/lxc83-axs02/aux/gmp > > --with-mpfr=/gpfs/home/HCBG142/axs02/lxc83-axs02/aux/mpfr > > --with-mpc=/gpfs/home/HCBG142/axs02/lxc83-axs02/aux/mpc > > > > Any ideas how I could solve this error? > > --disable-libgomp would be the obvious fix. What does "config.log" in > /gpfs/home/HCBG142/axs02/lxc83-axs02/gcc-5.2.0/powerpc64-bgq-linux/libgomp > say? Ah, it looks like you're running ./configure in the gcc directory. Don't do this. Create a build-dir (outside of the gcc dir) and run configure from there. -- Markus