[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building --with-native-compilation on Ubuntu 18.04 LT

From: Emanuel Berg
Subject: Re: Building --with-native-compilation on Ubuntu 18.04 LT
Date: Thu, 13 Jan 2022 00:34:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

H Dieter Wilhelm wrote:

> I'd like to compile Emacs with the --with-native-compilation
> support. But configure was complaining about a missing
> libgccjit executable. I thought it a good idea to install
> libgccjit with the same version number as the installed gcc:
> libgccjit-7-dev.

See this file [last], it is how I do it on Debian which is
similar to your OS (actually, your OS is similar to Debian :P)
... anyway, in particular, I install libgccjit-10-dev!


$ gcc --version
(Debian 10.2.1-6) 10.2.1 20210110

#! /bin/zsh
# this file:

export emacs_src=
export src_dir=~/src
export emacs_dir=$src_dir/emacs

emacs-reinstall () {
alias reinstall-emacs=emacs-reinstall

emacs-install () {
alias install-emacs=emacs-install

emacs-install-prepare () {
    sudo apt-get -qq update
    sudo apt-get install build-essential libgccjit-10-dev
    sudo apt-get build-dep emacs

emacs-src-reset () {
    cd $emacs_dir
    git reset --hard
    git clean -xdf
    git config pull.rebase false
    git pull $emacs_src

emacs-src-get () {
    cd $src_dir
    git clone $emacs_src

emacs-src-update () {
    cd $emacs_dir
    git fetch

emacs-do-install () {
    cd $emacs_dir
    configure --with-x-toolkit=no --with-native-compilation
    sudo make install
    emacs --version

underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]