emacs-devel
[Top][All Lists]
Advanced

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

Re: Building Emacs on WSL


From: Angelo Graziosi
Subject: Re: Building Emacs on WSL
Date: Fri, 16 Dec 2016 16:05:04 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Just for the record...

I adopted the workaround suggested in etc/PROBLEMS (and from the WEB [*]):

  echo 0 | sudo tee /proc/sys/kernel/randomize_va_space

and with it I was able to build,

./autogen.sh

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe" LDFLAGS="-pipe" CC="gcc" ./configure --prefix=/opt/emacs --build=x86_64-pc-linux-gnu --without-x --with-gnutls=no --disable-acl

make -j3


Emacs25 from the following source packages:

emacs-25.1.90.tar.gz
emacs-25.1.tar.gz
emacs-emacs-25.tar.gz (2016-12-11 10:50"17, 467768f64ee109fe)


BUT NOT emacs-master.tar.gz from master whose build always hangs as I described (./temacs --batch... see below)

At least, now I have an Emacs build (noX) working inside WSL!

Ciao,
Angelo.

-----
[*] http://stackoverflow.com/questions/38905344/windows-bash-emacs-build-fail-memory-protection-enabled

Il 11/12/2016 18:42, Angelo Graziosi ha scritto:
Just out of curiosity, I tried to build Emacs (master) on Windows
Subsystem Linux (WSL) [*] but it always hangs at this point:

./autogen.sh

./configure --prefix=/opt/emacs --without-x
[...]
Configured for 'x86_64-unknown-linux-gnu'.

  Where should the build process find the source code?    .
  What compiler should emacs be built with?               gcc -std=gnu11
-g3 -O2
  Should Emacs use the GNU version of malloc?             yes
      (Using Doug Lea's new malloc from the GNU C Library.)
  Should Emacs use a relocating allocator for buffers?    no
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    none
  What toolkit should Emacs use?                          none
  Where do we find X Windows header files?                NONE
  Where do we find X Windows libraries?                   NONE
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   no
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  no
  Does Emacs use a gif library?                           no
  Does Emacs use a png library?                           no
  Does Emacs use -lrsvg-2?                                no
  Does Emacs use cairo?                                   no
  Does Emacs use imagemagick?                             no
  Does Emacs support sound?                               yes
  Does Emacs use -lgpm?                                   no
  Does Emacs use -ldbus?                                  no
  Does Emacs use -lgconf?                                 no
  Does Emacs use GSettings?                               no
  Does Emacs use a file notification library?             yes -lglibc
(inotify)
  Does Emacs use access control lists?                    yes -lacl
  Does Emacs use -lselinux?                               no
  Does Emacs use -lgnutls?                                yes
  Does Emacs use -lxml2?                                  yes
  Does Emacs use -lfreetype?                              no
  Does Emacs use -lm17n-flt?                              no
  Does Emacs use -lotf?                                   no
  Does Emacs use -lxft?                                   no
  Does Emacs use -lsystemd?                               no
  Does Emacs directly use zlib?                           yes
  Does Emacs have dynamic modules support?                no
  Does Emacs use toolkit scroll bars?                     no
  Does Emacs support Xwidgets (requires gtk3)?            no
[...]

make
[...]
make -C ../lisp update-subdirs
make[2]: ingresso nella directory
"/home/angelog/work/emacs-e63c489dd496e53b68b942d0b76e13b62117fae9/lisp"
make[2]: uscita dalla directory
"/home/angelog/work/emacs-e63c489dd496e53b68b942d0b76e13b62117fae9/lisp"
./temacs --batch  --load loadup bootstrap

(I waited for almost an hour)

I tried with a master of a few days ago which surely build and works on
GNU/Linux Mint 18, Windows (MSYS2/MinGW64) and macOS.

Just out of curiosity...

Ciao,
 Angelo.


----
[*] It seems that someone succeeded in that build
(http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00339.html)



reply via email to

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