* Weird directories after compiling emacs native mode and creating .deb package
@ 2021-04-30 11:52 Pedro Andres Aranda Gutierrez
2021-04-30 14:00 ` Eli Zaretskii
2021-05-01 9:02 ` Tatsuya Kinoshita
0 siblings, 2 replies; 10+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2021-04-30 11:52 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1027 bytes --]
HI,
can someone enlighten me why the following is happening:
emacs ➤ emacs
Error using execdir
/usr/lib/x86_64-linux-gnu/emacs/28.0.50/x86_64-linux-gnu/../../../../bin/:
emacs:
/usr/lib/x86_64-linux-gnu/emacs/28.0.50/x86_64-linux-gnu/../../../../bin/../native-lisp/28.0.50-b0a588b0/preloaded/window-98dcc46c-8d15fa51.eln:
cannot open shared object file: No such file or directory
emacs ➤ find /usr/lib -name native-lisp
/usr/lib/x86_64-linux-gnu/emacs/28.0.50/native-lisp
emacs ➤ which emacs
/usr/bin/emacs
emacs ➤ ls -l $(which emacs)
lrwxrwxrwx 1 root root 23 abr 30 13:43 /usr/bin/emacs ->
/etc/alternatives/emacs
emacs ➤ realpath $(which emacs)
/usr/bin/emacs-28.0.5028
I feel I'm almost there in creating a .deb package for emacs28 with native
compilation. My plan is to get this right for a GTK only package and then
return to the -gtk -nox package scheme
TIA, /PA
--
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler
[-- Attachment #2: Type: text/html, Size: 1778 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Weird directories after compiling emacs native mode and creating .deb package
2021-04-30 11:52 Weird directories after compiling emacs native mode and creating .deb package Pedro Andres Aranda Gutierrez
@ 2021-04-30 14:00 ` Eli Zaretskii
2021-05-01 8:40 ` Pedro Andres Aranda Gutierrez
2021-05-01 9:02 ` Tatsuya Kinoshita
1 sibling, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2021-04-30 14:00 UTC (permalink / raw)
To: Pedro Andres Aranda Gutierrez; +Cc: emacs-devel
> From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> Date: Fri, 30 Apr 2021 13:52:58 +0200
>
> can someone enlighten me why the following is happening:
>
> emacs ➤ emacs
> Error using execdir /usr/lib/x86_64-linux-gnu/emacs/28.0.50/x86_64-linux-gnu/../../../../bin/:
> emacs:
> /usr/lib/x86_64-linux-gnu/emacs/28.0.50/x86_64-linux-gnu/../../../../bin/../native-lisp/28.0.50-b0a588b0/preloaded/window-98dcc46c-8d15fa51.eln:
> cannot open shared object file: No such file or directory
> emacs ➤ find /usr/lib -name native-lisp
> /usr/lib/x86_64-linux-gnu/emacs/28.0.50/native-lisp
> emacs ➤ which emacs
> /usr/bin/emacs
> emacs ➤ ls -l $(which emacs)
> lrwxrwxrwx 1 root root 23 abr 30 13:43 /usr/bin/emacs -> /etc/alternatives/emacs
> emacs ➤ realpath $(which emacs)
> /usr/bin/emacs-28.0.5028
Please describe how you configured the build and how you installed the
built Emacs. That is, what were your full 'configure' command line
and the fill "make install" command line? Also, where is the
emacs.pdmp file that corresponds to the installed Emacs binary?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Weird directories after compiling emacs native mode and creating .deb package
2021-04-30 14:00 ` Eli Zaretskii
@ 2021-05-01 8:40 ` Pedro Andres Aranda Gutierrez
2021-05-01 9:14 ` Eli Zaretskii
2021-05-03 15:08 ` Pedro Andres Aranda Gutierrez
0 siblings, 2 replies; 10+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2021-05-01 8:40 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 2700 bytes --]
Hi Eli,all
in an effort to answer you last email, I started cleaning up by
debina/rules (aka Makefile) and have come up with a simpler setup that
compiles and creates an installable emacs package (for the GUI version
only) So it certainly was a problem of not setting sensible directories in
the original Makefile.
Currently, I'm stumbling with the next stone in my path. I can't get emacs
to start:
emacs ➤ emacs
Symbol’s value as variable is void: auto-save-list-file-prefix
If I start it in terminal mode, I get it to build the frames, but I get the
same message on the mini-buffer and it doesn't load any file.
Now compiling without native-comp gets me a perfectly working emacs in GUI
and terminal mode
Best,/PA
PS: Make process kernel.
confflags += --prefix=/usr
confflags += --sharedstatedir=/var/lib
confflags += --program-suffix=28
# confflags += --with-modules=yes
# Not yet
# confflags += --with-native-compilation
# Gtk config options
confflags_gtk += $(confflags)
confflags_gtk += --with-x
confflags_gtk += --with-x-toolkit=gtk3
confflags_gtk += --with-cairo
make maintainer-clean
./autogen.sh all
./configure $(confflags_gtk)
make # NATIVE_FULL_AOT=1
make DESTDIR=$(shell pwd)/debian/emacs28 install
This creates an installation which is then transfered to the .deb package
On Fri, 30 Apr 2021 at 16:00, Eli Zaretskii <eliz@gnu.org> wrote:
> > From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> > Date: Fri, 30 Apr 2021 13:52:58 +0200
> >
> > can someone enlighten me why the following is happening:
> >
> > emacs ➤ emacs
>
> > Error using execdir
> /usr/lib/x86_64-linux-gnu/emacs/28.0.50/x86_64-linux-gnu/../../../../bin/:
> > emacs:
> >
> /usr/lib/x86_64-linux-gnu/emacs/28.0.50/x86_64-linux-gnu/../../../../bin/../native-lisp/28.0.50-b0a588b0/preloaded/window-98dcc46c-8d15fa51.eln:
> > cannot open shared object file: No such file or directory
> > emacs ➤ find /usr/lib -name native-lisp
>
> > /usr/lib/x86_64-linux-gnu/emacs/28.0.50/native-lisp
> > emacs ➤ which emacs
>
> > /usr/bin/emacs
> > emacs ➤ ls -l $(which emacs)
>
> > lrwxrwxrwx 1 root root 23 abr 30 13:43 /usr/bin/emacs ->
> /etc/alternatives/emacs
> > emacs ➤ realpath $(which emacs)
>
> > /usr/bin/emacs-28.0.5028
>
> Please describe how you configured the build and how you installed the
> built Emacs. That is, what were your full 'configure' command line
> and the fill "make install" command line? Also, where is the
> emacs.pdmp file that corresponds to the installed Emacs binary?
>
--
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler
[-- Attachment #2: Type: text/html, Size: 4378 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Weird directories after compiling emacs native mode and creating .deb package
2021-04-30 11:52 Weird directories after compiling emacs native mode and creating .deb package Pedro Andres Aranda Gutierrez
2021-04-30 14:00 ` Eli Zaretskii
@ 2021-05-01 9:02 ` Tatsuya Kinoshita
2021-05-01 9:16 ` Eli Zaretskii
2021-05-02 5:23 ` Pedro Andres Aranda Gutierrez
1 sibling, 2 replies; 10+ messages in thread
From: Tatsuya Kinoshita @ 2021-05-01 9:02 UTC (permalink / raw)
To: emacs-devel; +Cc: paaguti
On 2021-04-30 at 13:52 +0200, Pedro Andres Aranda Gutierrez wrote:
> I feel I'm almost there in creating a .deb package for emacs28 with native
> compilation.
I have locally built .deb packages for Emacs 28 with native compilation,
based on emacs-snapshot with a patch to adjust the location of native-lisp.
- https://github.com/dkogan/emacs-snapshot/pull/6
Thanks,
--
Tatsuya Kinoshita
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Weird directories after compiling emacs native mode and creating .deb package
2021-05-01 8:40 ` Pedro Andres Aranda Gutierrez
@ 2021-05-01 9:14 ` Eli Zaretskii
2021-05-03 15:08 ` Pedro Andres Aranda Gutierrez
1 sibling, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2021-05-01 9:14 UTC (permalink / raw)
To: Pedro Andres Aranda Gutierrez; +Cc: emacs-devel
> From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> Date: Sat, 1 May 2021 10:40:23 +0200
> Cc: emacs-devel@gnu.org
>
> in an effort to answer you last email, I started cleaning up by debina/rules (aka Makefile) and have come up
> with a simpler setup that compiles and creates an installable emacs package (for the GUI version only) So it
> certainly was a problem of not setting sensible directories in the original Makefile.
>
> Currently, I'm stumbling with the next stone in my path. I can't get emacs to start:
>
> emacs ➤ emacs
> Symbol’s value as variable is void: auto-save-list-file-prefix
>
> If I start it in terminal mode, I get it to build the frames, but I get the same message on the mini-buffer and it
> doesn't load any file.
>
> Now compiling without native-comp gets me a perfectly working emacs in GUI and terminal mode
Sounds like something's wrong with your *.eln files, suggest to clean
up all the caches and start anew.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Weird directories after compiling emacs native mode and creating .deb package
2021-05-01 9:02 ` Tatsuya Kinoshita
@ 2021-05-01 9:16 ` Eli Zaretskii
2021-05-01 9:47 ` Tatsuya Kinoshita
2021-05-02 5:23 ` Pedro Andres Aranda Gutierrez
1 sibling, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2021-05-01 9:16 UTC (permalink / raw)
To: Tatsuya Kinoshita; +Cc: paaguti, emacs-devel
> Date: Sat, 01 May 2021 18:02:05 +0900 (JST)
> From: Tatsuya Kinoshita <tats@vega.ocn.ne.jp>
> Cc: paaguti@gmail.com
>
> I have locally built .deb packages for Emacs 28 with native compilation,
> based on emacs-snapshot with a patch to adjust the location of native-lisp.
>
> - https://github.com/dkogan/emacs-snapshot/pull/6
Why did you need a patch to adjust the location of native-lisp?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Weird directories after compiling emacs native mode and creating .deb package
2021-05-01 9:16 ` Eli Zaretskii
@ 2021-05-01 9:47 ` Tatsuya Kinoshita
0 siblings, 0 replies; 10+ messages in thread
From: Tatsuya Kinoshita @ 2021-05-01 9:47 UTC (permalink / raw)
To: emacs-devel
On 2021-05-01 at 12:16 +0300, Eli Zaretskii wrote:
> > - https://github.com/dkogan/emacs-snapshot/pull/6
>
> Why did you need a patch to adjust the location of native-lisp?
Because of required .eln pathnames (native-lisp/28.0.50-XXXXXXXX),
this is packaging issue.
Without the patch, native-lisp is located in the -bin-common package.
However, different pathnames are used by the packages emacs-snapshot(-gtk),
-lucid and -nox. So, I located native-lisp in the individual packages
insted of -bin-common with the patch.
Thanks,
--
Tatsuya Kinoshita
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Weird directories after compiling emacs native mode and creating .deb package
2021-05-01 9:02 ` Tatsuya Kinoshita
2021-05-01 9:16 ` Eli Zaretskii
@ 2021-05-02 5:23 ` Pedro Andres Aranda Gutierrez
2021-05-02 6:36 ` Tatsuya Kinoshita
1 sibling, 1 reply; 10+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2021-05-02 5:23 UTC (permalink / raw)
To: Tatsuya Kinoshita; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1005 bytes --]
Thank you, it is really interesting. I never stop learning and that's what
makes live a fun :-)
I have a question... What is the purpose of the -lucid packages. I thinkI
understood that
Debian would have -gtk, -nox, -common, -el and -doc packages and that they
didn't want
to continue with the -lucid stuff.
But again, I could be wrong. What is the purpose of this -lucid package?
Thank you so much, /PA
On Sat, 1 May 2021 at 11:03, Tatsuya Kinoshita <tats@vega.ocn.ne.jp> wrote:
> On 2021-04-30 at 13:52 +0200, Pedro Andres Aranda Gutierrez wrote:
> > I feel I'm almost there in creating a .deb package for emacs28 with
> native
> > compilation.
>
> I have locally built .deb packages for Emacs 28 with native compilation,
> based on emacs-snapshot with a patch to adjust the location of native-lisp.
>
> - https://github.com/dkogan/emacs-snapshot/pull/6
>
> Thanks,
> --
> Tatsuya Kinoshita
>
--
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler
[-- Attachment #2: Type: text/html, Size: 1663 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Weird directories after compiling emacs native mode and creating .deb package
2021-05-02 5:23 ` Pedro Andres Aranda Gutierrez
@ 2021-05-02 6:36 ` Tatsuya Kinoshita
0 siblings, 0 replies; 10+ messages in thread
From: Tatsuya Kinoshita @ 2021-05-02 6:36 UTC (permalink / raw)
To: emacs-devel; +Cc: paaguti
On 2021-05-02 at 07:23 +0200, Pedro Andres Aranda Gutierrez wrote:
> Debian would have -gtk, -nox, -common, -el and -doc packages and that they
> didn't want
> to continue with the -lucid stuff.
> But again, I could be wrong. What is the purpose of this -lucid package?
I prefer -lucid with `(menu-bar-mode -1) (tool-bar-mode -1)`.
With my experience, -lucid is faster than -gtk, and the look and
feel are no matter for me.
Thanks,
--
Tatsuya Kinoshita
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Weird directories after compiling emacs native mode and creating .deb package
2021-05-01 8:40 ` Pedro Andres Aranda Gutierrez
2021-05-01 9:14 ` Eli Zaretskii
@ 2021-05-03 15:08 ` Pedro Andres Aranda Gutierrez
1 sibling, 0 replies; 10+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2021-05-03 15:08 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 3257 bytes --]
More on this,
I tried today with the same configuration and
make NATIVE_FULL_AOT=1
The problem persists, whoever if I execute emacs from the source directory
(.../emacs/src) it starts correctly.
Just my .2 cents...
/PA
On Sat, 1 May 2021 at 10:40, Pedro Andres Aranda Gutierrez <
paaguti@gmail.com> wrote:
> Hi Eli,all
>
> in an effort to answer you last email, I started cleaning up by
> debina/rules (aka Makefile) and have come up with a simpler setup that
> compiles and creates an installable emacs package (for the GUI version
> only) So it certainly was a problem of not setting sensible directories in
> the original Makefile.
>
> Currently, I'm stumbling with the next stone in my path. I can't get emacs
> to start:
>
> emacs ➤ emacs
>
> Symbol’s value as variable is void: auto-save-list-file-prefix
>
> If I start it in terminal mode, I get it to build the frames, but I get
> the same message on the mini-buffer and it doesn't load any file.
>
> Now compiling without native-comp gets me a perfectly working emacs in GUI
> and terminal mode
>
> Best,/PA
>
> PS: Make process kernel.
>
> confflags += --prefix=/usr
> confflags += --sharedstatedir=/var/lib
> confflags += --program-suffix=28
> # confflags += --with-modules=yes
> # Not yet
> # confflags += --with-native-compilation
> # Gtk config options
> confflags_gtk += $(confflags)
> confflags_gtk += --with-x
> confflags_gtk += --with-x-toolkit=gtk3
> confflags_gtk += --with-cairo
>
> make maintainer-clean
> ./autogen.sh all
> ./configure $(confflags_gtk)
> make # NATIVE_FULL_AOT=1
> make DESTDIR=$(shell pwd)/debian/emacs28 install
>
> This creates an installation which is then transfered to the .deb package
>
> On Fri, 30 Apr 2021 at 16:00, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> > From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
>> > Date: Fri, 30 Apr 2021 13:52:58 +0200
>> >
>> > can someone enlighten me why the following is happening:
>> >
>> > emacs ➤ emacs
>>
>> > Error using execdir
>> /usr/lib/x86_64-linux-gnu/emacs/28.0.50/x86_64-linux-gnu/../../../../bin/:
>> > emacs:
>> >
>> /usr/lib/x86_64-linux-gnu/emacs/28.0.50/x86_64-linux-gnu/../../../../bin/../native-lisp/28.0.50-b0a588b0/preloaded/window-98dcc46c-8d15fa51.eln:
>> > cannot open shared object file: No such file or directory
>> > emacs ➤ find /usr/lib -name native-lisp
>>
>> > /usr/lib/x86_64-linux-gnu/emacs/28.0.50/native-lisp
>> > emacs ➤ which emacs
>>
>> > /usr/bin/emacs
>> > emacs ➤ ls -l $(which emacs)
>>
>> > lrwxrwxrwx 1 root root 23 abr 30 13:43 /usr/bin/emacs ->
>> /etc/alternatives/emacs
>> > emacs ➤ realpath $(which emacs)
>>
>> > /usr/bin/emacs-28.0.5028
>>
>> Please describe how you configured the build and how you installed the
>> built Emacs. That is, what were your full 'configure' command line
>> and the fill "make install" command line? Also, where is the
>> emacs.pdmp file that corresponds to the installed Emacs binary?
>>
>
>
> --
> Fragen sind nicht da um beantwortet zu werden,
> Fragen sind da um gestellt zu werden
> Georg Kreisler
>
--
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler
[-- Attachment #2: Type: text/html, Size: 5337 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-05-03 15:08 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-30 11:52 Weird directories after compiling emacs native mode and creating .deb package Pedro Andres Aranda Gutierrez
2021-04-30 14:00 ` Eli Zaretskii
2021-05-01 8:40 ` Pedro Andres Aranda Gutierrez
2021-05-01 9:14 ` Eli Zaretskii
2021-05-03 15:08 ` Pedro Andres Aranda Gutierrez
2021-05-01 9:02 ` Tatsuya Kinoshita
2021-05-01 9:16 ` Eli Zaretskii
2021-05-01 9:47 ` Tatsuya Kinoshita
2021-05-02 5:23 ` Pedro Andres Aranda Gutierrez
2021-05-02 6:36 ` Tatsuya Kinoshita
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).