all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@centralesupelec.fr>
To: Angelo Graziosi <angelo.graziosi@alice.it>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Building Emacs on WSL
Date: Tue, 20 Dec 2016 13:20:50 +0100	[thread overview]
Message-ID: <CAFgFV9O3-YHGSNe1wVQ5nEwDMVApLyLS63408fpemT7wFePCSw@mail.gmail.com> (raw)
In-Reply-To: <4829e397-ac70-ab22-9c01-848ae876db46@alice.it>

[-- Attachment #1: Type: text/plain, Size: 6540 bytes --]

For the record,

Emacs 25.1 builds fine and runs fine under WSL providing you install all
the required packages.
I used :
 ../emacs/configure --with-jpeg --with-xpm --with-tiff --with-rsvg
--with-xml2 --with-gnutls --with-imagemagick --with-png=yes
and mobaxterm as an X server. Everything is ok. I could even load Spacemacs
with its about 100 packages.

Emacs master fails with the same configuration. It fails bootstrapping:

(gdb) run  --batch  --load loadup bootstrap
Starting program: /mnt/d/Source/emacs/build-emacs-ubuntu/src/temacs --batch
 --load loadup bootstrap
warning: Error disabling address space randomization: Succès
warning: linux_ptrace_test_ret_to_nx: PTRACE_KILL waitpid returned -1:
Appel système interrompu
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 17622 is executing new program:
/mnt/d/Source/emacs/build-emacs-ubuntu/src/temacs
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 17622 is executing new program:
/mnt/d/Source/emacs/build-emacs-ubuntu/src/temacs
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 17622 is executing new program:
/mnt/d/Source/emacs/build-emacs-ubuntu/src/temacs
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
process 17622 is executing new program:
/mnt/d/Source/emacs/build-emacs-ubuntu/src/temacs

I must admit that I don't know how to read what gdb is reporting.

Fabrice

2016-12-16 16:05 GMT+01:00 Angelo Graziosi <angelo.graziosi@alice.it>:

> 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)
>>
>
>


-- 
Fabrice Popineau
-----------------------------
CentraleSupelec
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------

[-- Attachment #2: Type: text/html, Size: 8927 bytes --]

  parent reply	other threads:[~2016-12-20 12:20 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-11 17:42 Building Emacs on WSL Angelo Graziosi
2016-12-16 15:05 ` Angelo Graziosi
2016-12-16 15:30   ` Eli Zaretskii
2016-12-16 17:48     ` Paul Eggert
2016-12-16 21:05       ` Eli Zaretskii
2016-12-17  1:00         ` Angelo Graziosi
2016-12-17  8:02           ` Eli Zaretskii
2016-12-17  8:33             ` Angelo Graziosi
2016-12-17 10:55               ` Eli Zaretskii
2016-12-17 14:25           ` Eli Zaretskii
2016-12-17 15:46             ` Angelo Graziosi
2016-12-20 12:20   ` Fabrice Popineau [this message]
2016-12-20 12:40     ` Fabrice Popineau
2016-12-20 19:35       ` Paul Eggert
2016-12-20 20:03         ` Fabrice Popineau
2016-12-20 23:59           ` Angelo Graziosi
2016-12-21  3:20           ` Paul Eggert
2016-12-21  8:54             ` Angelo Graziosi
2016-12-21 18:00               ` Paul Eggert
2016-12-21 20:50                 ` Angelo Graziosi
2016-12-20 20:57         ` Angelo Graziosi
2016-12-21  9:00       ` Angelo Graziosi
2016-12-21 10:29         ` Fabrice Popineau
2016-12-20 21:19     ` Angelo Graziosi
2016-12-20 22:01       ` Fabrice Popineau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFgFV9O3-YHGSNe1wVQ5nEwDMVApLyLS63408fpemT7wFePCSw@mail.gmail.com \
    --to=fabrice.popineau@centralesupelec.fr \
    --cc=angelo.graziosi@alice.it \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.