xgcc: error trying to exec 'cc1plus': execvp: No such file or directory

.uservorname .usernachname dokumentarfilme@hotmail.com
Sat Jan 26 20:58:00 GMT 2019


Hi,
I'm compiling gcc-7.4.0 and from what I see , gcc is finalizing the last setup steps.
[ -f stage_final ] || echo stage3 > stage_final
[...]
Making all in libsupc++
make[5]: Entering directory '/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3/libsupc++'
/bin/sh ../libtool --tag CXX --tag disable-shared   --mode=compile /media/gcc-7.4.0-compiled/./gcc/xgcc -shared-libgcc -B/media/gcc-7.4.0-compiled/./gcc -nostdinc++ -L/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3/src -L/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3/src/.libs -L/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -B/opt/gcc-7.4.0/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-7.4.0/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-7.4.0/sparc-unknown-linux-gnu/include -isystem /opt/gcc-7.4.0/sparc-unknown-linux-gnu/sys-include    -I/media/gcc-7.4.0/libstdc++-v3/../libgcc -I/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3/include/sparc-unknown-linux-gnu -I/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3/include -I/media/gcc-7.4.0/libstdc++-v3/libsupc++   -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi  -fdiagnostics-show-location=once      -frandom-seed=array_type_info.lo -g -O2 -Wl,--rpath=usr/local/lib:/opt/gcc-4.6.0/lib:/opt/gcc-4.6.0/libexec/gcc/sparc-unknown-linux-gnu/4.6.0 -D_GNU_SOURCE  -c -o array_type_info.lo ../../../../gcc-7.4.0/libstdc++-v3/libsupc++/array_type_info.cc
libtool: compile:  /media/gcc-7.4.0-compiled/./gcc/xgcc -shared-libgcc -B/media/gcc-7.4.0-compiled/./gcc -nostdinc++ -L/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3/src -L/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3/src/.libs -L/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -B/opt/gcc-7.4.0/sparc-unknown-linux-gnu/bin/ -B/opt/gcc-7.4.0/sparc-unknown-linux-gnu/lib/ -isystem /opt/gcc-7.4.0/sparc-unknown-linux-gnu/include -isystem /opt/gcc-7.4.0/sparc-unknown-linux-gnu/sys-include -I/media/gcc-7.4.0/libstdc++-v3/../libgcc -I/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3/include/sparc-unknown-linux-gnu -I/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3/include -I/media/gcc-7.4.0/libstdc++-v3/libsupc++ -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once -frandom-seed=array_type_info.lo -g -O2 -Wl,--rpath=usr/local/lib:/opt/gcc-4.6.0/lib:/opt/gcc-4.6.0/libexec/gcc/sparc-unknown-linux-gnu/4.6.0 -D_GNU_SOURCE -c ../../../../gcc-7.4.0/libstdc++-v3/libsupc++/array_type_info.cc  -D_GLIBCXX_SHARED
xgcc: error trying to exec 'cc1plus': execvp: No such file or directory
make[5]: *** [Makefile:668: array_type_info.lo] Error 1
make[5]: Leaving directory '/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3/libsupc++'
make[4]: *** [Makefile:510: all-recursive] Error 1
make[4]: Leaving directory '/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3'
make[3]: *** [Makefile:417: all] Error 2
make[3]: Leaving directory '/media/gcc-7.4.0-compiled/sparc-unknown-linux-gnu/libstdc++-v3'
make[2]: *** [Makefile:15569: all-stage3-target-libstdc++-v3] Error 2
make[2]: Leaving directory '/media/gcc-7.4.0-compiled'
make[1]: *** [Makefile:22654: stage3-bubble] Error 2
make[1]: Leaving directory '/media/gcc-7.4.0-compiled'
make: *** [Makefile:929: all] Error 2

I guess it should have used xg++ instead of xgcc in this step? Any ideas how to fix this?

My configure:
  $ ../gcc-7.4.0/configure --prefix=/opt/gcc-7.4.0 CC=/opt/gcc-4.6.0/bin/gcc CXX=/opt/gcc-4.6.0/bin/g++ -enable-languages=c,c++,go --disable-doc --disable-libstdcxx-pch --disable-linux-futex --disable-libsanitizer --disable-libcilkrts --disable-libitm CFLAGS=-Wl,--rpath=/usr/local/lib:/opt/gcc-4.6.0/lib:/opt/gcc-4.6.0/libexec/gcc/sparc-unknown-linux-gnu/4.6.0 CXXFLAGS=-Wl,--rpath=usr/local/lib:/opt/gcc-4.6.0/lib:/opt/gcc-4.6.0/libexec/gcc/sparc-unknown-linux-gnu/4.6.0
My system:
hostname = debian-sparc                                                                                                                                                                  uname -m = sparc                                                                                                                                                                              uname -r = 2.6.18-6-sparc32                                                                                                                                                              uname -s = Linux

Any help appreciated.
M



More information about the Gcc-help mailing list