I have a problem that compilation failure occurred with an internal compiler error.
The error message for building systemd is following.
malloc(): unaligned tcache chunk detected malloc(): unaligned tcache chunk detected cc: internal compiler error: Aborted signal terminated program cc1 Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
It seems to be related to building concurrency, it succeeds with
make -j1, but rarely failed.
I found a similar issue on fantoo bug tracker here https://bugs.funtoo.org/browse/FL-8483?attachmentOrder=asc, and tried the latest GCC and glibc, but did not solve it.
Does anyone face a similar issue?
My environment is Ubuntu 21.04 and kernel is 5.11.0-1009, gcc is 10.3.0-1ubuntu1.
I also tested with 5.13 kernel from upstream and gcc 11.1.0-1ubuntu1~21.04, but they did not help.
My instruction is here
apt-get source systemd apt-get build-dep systemd cd systemd-* dpkg-buildpackage