On 8/13/20 1:52 PM, Jakub Jelinek wrote:
On Thu, Aug 13, 2020 at 01:38:07PM +0200, Tobias Burnus wrote:
I got a bit lost in this thread – but the
commit r11-2663-g82c4b78dbef6f03838e3040688c934360a09513f
"Replace std::vector<> usage in ipa-fnsummary.c with GCC's vec<>."
Causes here:
gcc-mainline/gcc/vec.h:1287:3: error: static assertion failed:
static_assert (alignof (vec_embedded) == alignof(vec), "");
^
On which instantiation it is and what is your system compiler?
Do you get when building the i686 native compiler, or i686 to powerpc64le
cross-compiler
or powerpc64le to nvptx-none cross-compiler?
Build server is x86_64-gnu-linux, "i686-pc-linux-gnu-g++" is a native binary of
GCC 5.2.0
[Don't ask why i686 and not x86_64 is used.]
Run command was:
i686-pc-linux-gnu-g++ -std=gnu++11 -c -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE
-DGENERATOR_FILE -I. -Ibuild -I.../gcc-mainline/gcc
-I.../gcc-mainline/gcc/build -I.../gcc-mainline/gcc/../include
-I.../gcc-mainline/gcc/../libcpp/include \
-o build/genemit.o .../gcc-mainline/gcc/genemit.c
In file included from .../gcc-mainline/gcc/rtl.h:30:0,
from .../gcc-mainline/gcc/genautomata.c:111:
.../gcc-mainline/gcc/vec.h: In instantiation of 'static size_t vec<T, A,
vl_embed>::embedded_size(unsigned int) [with T = long long int; A = va_heap;
size_t = unsigned int]':
.../gcc-mainline/gcc/vec.h:288:58: required from 'static void
va_heap::reserve(vec<T, va_heap, vl_embed>*&, unsigned int, bool) [with T =
long long int]'
.../gcc-mainline/gcc/vec.h:1749:20: required from 'bool
vec<T>::reserve(unsigned int, bool) [with T = long long int]'
.../gcc-mainline/gcc/vec.h:1858:11: required from 'T* vec<T>::safe_push(const
T&) [with T = long long int]'
.../gcc-mainline/gcc/genautomata.c:7454:40: required from here
.../gcc-mainline/gcc/vec.h:1287:3: error: static assertion failed:
static_assert (alignof (vec_embedded) == alignof(vec), "");
^
Makefile:2719: recipe for target 'build/genautomata.o' failed
make[1]: *** [build/genautomata.o] Error 1
Tobias
-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander
Walter