This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc-8-20180225: recipe for target 'configure-target-libbacktrace' failed


Hi,

today I tried to install gcc-8-20180225 with accelerator support
on my "SUSE Linux Enterprise Server 12.3 (x86_64)" with gcc-6.4.0.
I used the following commands to download and build everything.

setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/local/cuda/lib64
setenv CUDA_INC_PATH /usr/local/cuda/include
setenv CUDA_LIB_PATH /usr/local/cuda/lib64
set path = ( ${path} /usr/local/cuda/bin )

git clone https://github.com/MentorEmbedded/nvptx-tools
git clone https://github.com/MentorEmbedded/nvptx-newlib

wget ftp://gcc.gnu.org/pub/gcc/snapshots/LATEST-8/gcc-8-20180225.tar.xz
tar xf gcc-8-20180225.tar.xz
ln -s gcc-8-20180225 gcc-8.0.0
cd gcc-8.0.0
ln -s ../nvptx-newlib/newlib newlib
cd ..

mkdir make_nvptx-tools
cd make_nvptx-tools
../nvptx-tools/configure --prefix=/usr/local/gcc-8.0.0 \
  |& tee log.configure
make |& tee log.make
make install |& tee log.make-install
cd ..

mkdir gcc-8.0.0_build
cd gcc-8.0.0_build
../gcc-8.0.0/configure --prefix=/usr/local/gcc-8.0.0 \
  --target=nvptx-none \
  --enable-as-accelerator-for=x86_64-pc-linux-gnu \
  --with-build-time-tools=/usr/local/gcc-8.0.0/nvptx-none/bin \
  --disable-sjlj-exceptions \
  --with-newlib \
  --enable-newlib-io-long-long \
  --enable-languages=c,c++,fortran,lto \
  |& tee log.configure
make |& tee log.make


Unfortunately, "make" breaks with the following error.

loki gcc-8.0.0_build 137 tail -19 log.make
make[3]: Leaving directory '/export2/src/gcc-8.0.0/gcc-8.0.0_build/nvptx-none/libgcc'
make[2]: Leaving directory '/export2/src/gcc-8.0.0/gcc-8.0.0_build/nvptx-none/libgcc'
Checking multilib configuration for libbacktrace...
mkdir -p -- nvptx-none/libbacktrace
Configuring in nvptx-none/libbacktrace
configure: creating cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... nvptx-unknown-none
checking target system type... nvptx-unknown-none
checking for nvptx-none-gcc... /export2/src/gcc-8.0.0/gcc-8.0.0_build/./gcc/xgcc -B/export2/src/gcc-8.0.0/gcc-8.0.0_build/./gcc/ -B/usr/local/gcc-8.0.0/nvptx-none/bin/ -B/usr/local/gcc-8.0.0/nvptx-none/lib/ -isystem /usr/local/gcc-8.0.0/nvptx-none/include -isystem /usr/local/gcc-8.0.0/nvptx-none/sys-include
checking for C compiler default output file name...
configure: error: in `/export2/src/gcc-8.0.0/gcc-8.0.0_build/nvptx-none/libbacktrace':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Makefile:11774: recipe for target 'configure-target-libbacktrace' failed
make[1]: *** [configure-target-libbacktrace] Error 1
make[1]: Leaving directory '/export2/src/gcc-8.0.0/gcc-8.0.0_build'
Makefile:883: recipe for target 'all' failed
make: *** [all] Error 2
loki gcc-8.0.0_build 138


I was able to build that part for gcc-7.3.0 with a patched nvptx.c
file with the same commands. I would be grateful, if somebody knows
a solution or can fix the problem. Do you need anything else? Thank
you very much for any help in advance.


Kind regards

Siegmar

Attachment: config.log
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]