[Bug target/92646] Compilation fails on armv7l with sys/cdefs.h: No such file or directory

samyavrillon at netcourrier dot com gcc-bugzilla@gcc.gnu.org
Wed Nov 27 09:04:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92646

--- Comment #6 from Mysaa <samyavrillon at netcourrier dot com> ---
So I ran the compilation adding only --enable-multiarch and it failed with
nother error :
cp ../../gcc/../fixincludes/README-fixinc include-fixed/README
chmod a+r include-fixed/README
echo timestamp > stmp-int-hdrs
/home/bernard/building/gcc-9.2.0/build/./gcc/xgcc
-B/home/bernard/building/gcc-9.2.0/build/./gcc/ -xc -nostdinc /dev/null -S -o
/dev/null -fself-test=../../gcc/testsuite/selftests
-fself-test: 47403 pass(es) in 5.027115 seconds
echo timestamp > s-selftest-c
/home/bernard/building/gcc-9.2.0/build/./gcc/xgcc
-B/home/bernard/building/gcc-9.2.0/build/./gcc/ -xc++ -nostdinc /dev/null -S -o
/dev/null -fself-test=../../gcc/testsuite/selftests
xgcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
compilation terminated.
../../gcc/cp/Make-lang.in:178: recipe for target 's-selftest-c++' failed


Nonetheless, I found the compilation options gcc6 was originally compiled with
and ran the sams ctring (disableing some options) and the make process and the
make install processes completed. But the make check failed. I send you the
./configure line and the error of make check :

../configure -v --with-pkgversion='Pipi 001'
--with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-9-pipi --program-prefix=arm-linux-gnueabihf- --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm
--disable-libquadmath --enable-plugin --enable-default-pie --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.11.0-openjdk-armhf/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.11.0-openjdk-armhf/
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.11.0-openjdk-armhf/
--with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--with-target-system-zlib --enable-objc-gc=auto --enable-multiarch
--disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16
--with-float=hard --with-mode=thumb --enable-checking=release
--build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf


<blockquote>
/bin/mkdir -p check-vet-dir/src/cmd/internal
check-vet-dir/src/cmd/vendor/golang.org/x
cp -r ../../gotools/../libgo/go/cmd/vet check-vet-dir/src/cmd/
cp -r ../../gotools/../libgo/go/cmd/internal/objabi
check-vet-dir/src/cmd/internal
cp ../arm-linux-gnueabihf/libgo/objabi.go
check-vet-dir/src/cmd/internal/objabi/
cp -r ../../gotools/../libgo/go/golang.org/x/tools
check-vet-dir/src/cmd/vendor/golang.org/x/
PATH=`echo /home/bernard/building/gcc-9.2.0-pipi/build/gotools:${PATH} | sed
's,::*,:,g;s,^:*,,;s,:*$,,'`; export PATH;
GCCGO="/home/bernard/building/gcc-9.2.0-pipi/build/gotools/check-gccgo"; export
GCCGO; CC="/home/bernard/building/gcc-9.2.0-pipi/build/gotools/check-gcc";
export CC; GCCGOTOOLDIR="/home/bernard/building/gcc-9.2.0-pipi/build/gotools";
export GCCGOTOOLDIR; GO_TESTING_GOTOOLS=yes; export GO_TESTING_GOTOOLS;
abs_libgodir=`cd ../arm-linux-gnueabihf/libgo && ${PWDCMD-pwd}`;
LD_LIBRARY_PATH=`echo ${abs_libgodir}/.libs:${LD_LIBRARY_PATH} | sed
's,::*,:,g;s,^:*,,;s,:*$,,'`; export LD_LIBRARY_PATH; GOROOT=${abs_libgodir};
export GOROOT;
GOCACHE=/home/bernard/building/gcc-9.2.0-pipi/build/gotools/gocache-test;
export GOCACHE; fl1="FA"; fl2="IL"; fl="${fl1}${fl2}"; \
GOPATH=`cd check-vet-dir && ${PWDCMD-pwd}`; \
export GOPATH; \
(cd check-vet-dir/src/cmd/vet &&
/home/bernard/building/gcc-9.2.0-pipi/build/gotools/go test -test.short
-test.timeout=1200s -test.v) >> cmd_vet-testlog 2>&1 || echo "--- ${fl}: go
test cmd/vet (0.00s)" >> cmd_vet-testlog
grep '^--- ' cmd_vet-testlog | sed -e 's/^--- \(.*\) ([^)]*)$/\1/' | sort -k 2
PASS: TestTags
PASS: TestVet
Makefile:968: recipe for target 'check' failed
</blockquote>

It's strange as i see no specific test failing


More information about the Gcc-bugs mailing list