[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Where is the eln search path defined
From: |
Alex Bennée |
Subject: |
Re: Where is the eln search path defined |
Date: |
Fri, 15 May 2020 22:19:49 +0100 |
User-agent: |
mu4e 1.4.5; emacs 28.0.50 |
Andrea Corallo <address@hidden> writes:
> Alex Bennée <address@hidden> writes:
>
>> Andrea Corallo <address@hidden> writes:
>>
>>> Alex Bennée <address@hidden> writes:
>>>
>>>> Hi,
>>>>
>>>> I thought it was about time I started getting the native-comp branch
>>>> running on some of my aarch64 machines. The bionic version of libgccjit
>>>> for aarch64 failed so I ended up having to build the latest from master
>>>> and adding it to the search path.
>>>>
>>>> Emacs seems to have built fine but when I run it I get:
>>>>
>>>> 08:41:58 [alex@qemu-test:~/s/emacs] $ emacs -nw
>>>> emacs:
>>>> /usr/bin/../lisp/eln-aarch64-unknown-linux-gnu-e59b16aa72ffe0cd/custom.eln:
>>>> cannot open shared object file: No such file or directory
>> <snip>
>>>> Any pointers?
>>>
>>> Hi Alex,
>>>
>>> Emacs thinks the binary is installed in '/usr/bin/' and the relative path
>>> to find the eln from there is expected to be
>>> '../lisp/eln-aarch64-unknown-linux-gnu-e59b16aa72ffe0cd/custom.eln'.
>>
>> Hmm it was configured:
>>
>> ./configure --prefix=/home/alex/src/emacs/install \
>> --with-x-toolkit=no --with-modules \
>> --with-nativecomp --with-xpm=ifavailable \
>> --with-gif=ifavailable --with-tiff=ifavailable
>
> Mmh I see. Would be interesting if you could check the DESTDIR value
> (if any) in your build environment.
Definitely not in env:
19:55:42 [alex@qemu-test:~/s/e/emacs.git] native-comp|✔ + env | grep DESTDIR
19:56:31 [alex@qemu-test:~/s/e/emacs.git] native-comp|✔ 1 +
>>> I believe of the two information the first is wrong in this case. This
>>> is coming from the DESTDIR value while compiling. Is it possible that
>>> Emacs was compiled with a certain DESTDIR value and then installed using
>>> a different one?
>>
>> I can't quite follow where the automake magic sets DESTDIR but in the
>> main Makefile I certainly have:
>>
>> # The default location for installation. Everything is placed in
>> # subdirectories of this directory. The default values for many of
>> # the variables below are expressed in terms of this one, so you may
>> # not need to change them. This defaults to /usr/local.
>> prefix=/home/alex/src/emacs/install
>>
>> Where is DESTDIR defined during the build?
>
> That is a very good question.
I can't see it set, although LISP and BIN DESTDIRS are set:
19:58:13 [alex@qemu-test:~/s/e/emacs.git] native-comp|✔ + remake
remake -C lib all
remake[1]: Entering directory '/home/alex/src/emacs/emacs.git/lib'
remake[1]: Nothing to be done for 'all'.
remake[1]: Leaving directory '/home/alex/src/emacs/emacs.git/lib'
remake -C lib-src all
remake[1]: Entering directory '/home/alex/src/emacs/emacs.git/lib-src'
remake[1]: Nothing to be done for 'all'.
remake[1]: Leaving directory '/home/alex/src/emacs/emacs.git/lib-src'
remake -C src VCSWITNESS='$(srcdir)/../.git/logs/HEAD'
BIN_DESTDIR='/home/alex/src/emacs/install/bin/' \
LISP_DESTDIR='/home/alex/src/emacs/install/share/emacs/28.0.50/lisp/' all
remake[1]: Entering directory '/home/alex/src/emacs/emacs.git/src'
>
>>> This would explain even if I understand this is really not ideal.
>>>
>>> Andrea
--
Alex Bennée
- Where is the eln search path defined, Alex Bennée, 2020/05/15
- Re: Where is the eln search path defined, Andrea Corallo, 2020/05/15
- Re: Where is the eln search path defined, Alex Bennée, 2020/05/15
- Re: Where is the eln search path defined, Andrea Corallo, 2020/05/15
- Re: Where is the eln search path defined,
Alex Bennée <=
- Re: Where is the eln search path defined, Andrea Corallo, 2020/05/15
- Re: Where is the eln search path defined, Alex Bennée, 2020/05/17
- Re: Where is the eln search path defined, Andrea Corallo, 2020/05/17
- Re: Where is the eln search path defined, Alex Bennée, 2020/05/17
- Re: Where is the eln search path defined, Andrea Corallo, 2020/05/17
- Re: Where is the eln search path defined, Alex Bennée, 2020/05/18
- Re: Where is the eln search path defined, Andrea Corallo, 2020/05/18
- Re: Where is the eln search path defined, Alex Bennée, 2020/05/18
- Re: Where is the eln search path defined, Andrea Corallo, 2020/05/18
- Re: Where is the eln search path defined, Alex Bennée, 2020/05/19