Package: src:gcc-6
Version: 6.1.1-1
Severity: important
unable to cross build libgnatprj on i386 targeting 64bit archs. fails with
/«PKGBUILDDIR»/gcc/build/./gcc/xg++ -B/«PKGBUILDDIR»/gcc/build/./gcc/
-nostdinc++ -nostdinc++
-I/«PKGBUILDDIR»/gcc/build/s390x-linux-gnu/libstdc++-v3/include/s390x-linux-gnu
-I/«PKGBUILDDIR»/gcc/build/s390x-linux-gnu/libstdc++-v3/include
-I/«PKGBUILDDIR»/gcc/src/libstdc++-v3/libsupc++
-I/«PKGBUILDDIR»/gcc/src/libstdc++-v3/include/backward
-I/«PKGBUILDDIR»/gcc/src/libstdc++-v3/testsuite/util
-L/«PKGBUILDDIR»/gcc/build/s390x-linux-gnu/libstdc++-v3/src
-L/«PKGBUILDDIR»/gcc/build/s390x-linux-gnu/libstdc++-v3/src/.libs
-L/«PKGBUILDDIR»/gcc/build/s390x-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/«PKGBUILDDIR»/gcc/build/s390x-linux-gnu/libstdc++-v3/src/.libs
-B/«PKGBUILDDIR»/gcc/build/s390x-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/usr/s390x-linux-gnu/bin/ -B/usr/s390x-linux-gnu/lib/ -isystem
/usr/s390x-linux-gnu/include -isystem /usr/s390x-linux-gnu/sys-include -isystem
/«PKGBUILDDIR»/gcc/build/sys-include -c -fPIC -g -O2 -DLIBGNATPRJ_CROSS_HACK
-DHAVE_CONFIG_H -DIN_GCC -pedantic \
-I../../../src/libgnatprj/../gcc -I../../../src/libgnatprj/../include
-I../../../src/libgnatprj/../libcpp/include -I../../gcc \
../../../src/libgnatprj/../gcc/common/common-targhooks.c -o
obj-shared/common-targhooks.o
In file included from ../../../src/libgnatprj/../gcc/coretypes.h:346:0,
from
../../../src/libgnatprj/../gcc/common/common-targhooks.c:22:
../../../src/libgnatprj/../gcc/real.h:74:76: error: size of array
'test_real_width' is negative
[sizeof (REAL_VALUE_TYPE) <= REAL_WIDTH * sizeof (HOST_WIDE_INT) ? 1 : -1];
^
or ppc64el:
/scratch/packages/cross/6/gcc-6-cross-8/gcc/build/./gcc/xg++
-B/scratch/packages/cross/6/gcc-6-cross-8/gcc/build/./gcc/ -nostdinc++ -n
ostdinc++
-I/scratch/packages/cross/6/gcc-6-cross-8/gcc/build/powerpc64le-linux-gnu/libstdc++-v3/include/powerpc64le-linux-gnu
-I/scra
tch/packages/cross/6/gcc-6-cross-8/gcc/build/powerpc64le-linux-gnu/libstdc++-v3/include
-I/scratch/packages/cross/6/gcc-6-cross-8/gcc/
src/libstdc++-v3/libsupc++
-I/scratch/packages/cross/6/gcc-6-cross-8/gcc/src/libstdc++-v3/include/backward
-I/scratch/packages/cross/6
/gcc-6-cross-8/gcc/src/libstdc++-v3/testsuite/util
-L/scratch/packages/cross/6/gcc-6-cross-8/gcc/build/powerpc64le-linux-gnu/libstdc++
-v3/src
-L/scratch/packages/cross/6/gcc-6-cross-8/gcc/build/powerpc64le-linux-gnu/libstdc++-v3/src/.libs
-L/scratch/packages/cross/6/g
cc-6-cross-8/gcc/build/powerpc64le-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/scratch/packages/cross/6/gcc-6-cross-8/gcc/build/powerpc6
4le-linux-gnu/libstdc++-v3/src/.libs
-B/scratch/packages/cross/6/gcc-6-cross-8/gcc/build/powerpc64le-linux-gnu/libstdc++-v3/libsupc++/
.libs -B/usr/powerpc64le-linux-gnu/bin/ -B/usr/powerpc64le-linux-gnu/lib/
-isystem /usr/powerpc64le-linux-gnu/include -isystem /usr/po
werpc64le-linux-gnu/sys-include -isystem
/scratch/packages/cross/6/gcc-6-cross-8/gcc/build/sys-include -c -fPIC -g -O2
-DLIBGNATPRJ
_CROSS_HACK -DHAVE_CONFIG_H -DIN_GCC -pedantic \
-I../../../src/libgnatprj/../gcc -I../../../src/libgnatprj/../include
-I../../../src/libgnatprj/../libcpp/include -I../../gcc \
../../../src/libgnatprj/../gcc/hooks.c -o obj-shared/hooks.o
yes
In file included from ../../../src/libgnatprj/../gcc/coretypes.h:346:0,
from
../../../src/libgnatprj/../gcc/common/common-targhooks.c:22:
../../../src/libgnatprj/../gcc/real.h:74:76: error: size of array
'test_real_width' is negative
[sizeof (REAL_VALUE_TYPE) <= REAL_WIDTH * sizeof (HOST_WIDE_INT) ? 1 : -1];
^