Пытаюсь собрать Emacs, делаю следующее.
sudo apt-get dist-upgrade \
sudo apt-get install -y ca-certificates curl gnupg-agent cmake libtool libtool-bin gcc-10 texinfo build-essential libX11-devel
libjpeg-devel libXpm-devel libjpeg-devel libpng-devel libgif-devel libtiff-dev libgtk+2-devel libncurses-devel automake autoconf libjansson-devel libgccjit10-devel libgccjit0 libgnutls-devel libgnutls30
./autogen.sh
./configure --with-native-compilation --with-mailutils --with-modules --with-json CFLAGS="-O3 -mtune=native -march=native -fomit-frame-pointer"
Получая ошибку:
configure: error: The installed libgccjit failed to compile and run a test program using
the libgccjit library; see config.log for the details of the failure.
The test program can be found here:
<https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html>.
You can try compiling it yourself to investigate the issues.
Please report the issue to your distribution if libgccjit was installed
through that.
You can find the instructions on how to compile and install libgccjit from
Я попробовал сделать то, что описано в ссылке в ошибке. Получил ошибку при запуске С программы:
ld: невозможно найти crtbeginS.o: Нет такого файла или каталога
ld: невозможно найти -lgcc
ld: невозможно найти -lgcc_s
libgccjit.so: error: error invoking gcc driver
Я понимаю, что что-то не так с компилятором С, но не уверен, что с этим можно сделать.
У меня установлен Starterkit