From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alex =?utf-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.devel Subject: Re: Where is the eln search path defined Date: Sun, 17 May 2020 12:00:15 +0100 Message-ID: <87h7we9680.fsf@linaro.org> References: <87v9kxd18j.fsf@linaro.org> <873681cdzc.fsf@linaro.org> <87sgg0c2ve.fsf@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="28824"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.5; emacs 28.0.50 Cc: emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 17 13:01:18 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jaH2j-0007PX-KV for ged-emacs-devel@m.gmane-mx.org; Sun, 17 May 2020 13:01:17 +0200 Original-Received: from localhost ([::1]:36672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaH2i-0004ok-Ms for ged-emacs-devel@m.gmane-mx.org; Sun, 17 May 2020 07:01:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaH1r-00040e-OP for emacs-devel@gnu.org; Sun, 17 May 2020 07:00:26 -0400 Original-Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:39119) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jaH1p-000855-2M for emacs-devel@gnu.org; Sun, 17 May 2020 07:00:23 -0400 Original-Received: by mail-wm1-x341.google.com with SMTP id w64so7125268wmg.4 for ; Sun, 17 May 2020 04:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=mBaP80qm5JVjPNmDgzKjklwoheT56YtiPRtR2zVJnYw=; b=R0BrD0QMZEe8JNIlKZRyfhTRX9J9CsLNRd2u5BLHlKJTiOjm+woLi+/cYsdj6w1QuK QyXXlAG/VvoFLG9T7czV42S7zC1sXqolwST47vxvep4AXi+o1alBLtml9Pmpy/59Qp6e hfyjEpQj+8XGWm4pMMXz6aBJchIxyrmIs6z2g/jNJokJPw8x6tNAQNM0MlAPlNEYiXmM pp1TMTM1NlxCmk91tFewDM+/efI55JbeyGmzZy09hdTblOd1OTWthYjweoS30sr1f/n6 gUSVfJMnaECvq8BZYhQzuhvgDTc2WLoqwkcH8no90Zyku9R2SBLHyxN3zpWRhnU2z33I XCOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=mBaP80qm5JVjPNmDgzKjklwoheT56YtiPRtR2zVJnYw=; b=hKVVHbzpROIoomheD5mImze6RdmRfuKAN3zoq7YkHN8RCbP9q7C/ltg+3kW44Dtxji k6FTG7J7YaGH/EtglczED5HT74nJFImo4o76DFaRuN33poCzJgwiMny1jLplG/vpMPvo G8POFQt/uFQyQyNEabH6kIkkMKCFcX26WOj+fPKkUobF5gKwmZv340kqv46eFYBeeQUz kyOC1uEnpdcmwn6vrIcrosojRgqv9NL0lohvzbjzFEY2WNLVzrEQFEjwoDMVZME4g/O2 bqFnEcm0GPzmY0Bf/whlL5RGKpLSRqRtqoAUZ4kQA5YQR00v1BuzFecuPtfPyi6TSL3w Tc2w== X-Gm-Message-State: AOAM532yrApz2Go//7edg+bTF67FGYa9Egka9KRTeu8DAOa17edvBoxd ZlDT03M4mmUWSrfoKyuzy2TcikkUlM0= X-Google-Smtp-Source: ABdhPJybE1Wn/68hNgnlciGTXmvMepl4HkGtr/JvoGcp79Q9fZ98FBrn8+k//eiN8W3YWcMzq2s65A== X-Received: by 2002:a1c:2b81:: with SMTP id r123mr13608726wmr.34.1589713217953; Sun, 17 May 2020 04:00:17 -0700 (PDT) Original-Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id w15sm11207907wmi.35.2020.05.17.04.00.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 04:00:16 -0700 (PDT) Original-Received: from zen (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6D2D81FF7E; Sun, 17 May 2020 12:00:15 +0100 (BST) In-reply-to: Received-SPF: pass client-ip=2a00:1450:4864:20::341; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x341.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:250578 Archived-At: Andrea Corallo writes: > Alex Benn=C3=A9e writes: > >> Andrea Corallo writes: >> >>> Alex Benn=C3=A9e writes: >>> >>>> Andrea Corallo writes: >>>> >>>>> Alex Benn=C3=A9e 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 libgcc= jit >>>>>> for aarch64 failed so I ended up having to build the latest from mas= ter >>>>>> 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-e59b16aa72ff= e0cd/custom.eln: cannot open shared object file: No such file or directory >>>> >>>>>> 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=3D/home/alex/src/emacs/install \ >>>> --with-x-toolkit=3Dno --with-modules \ >>>> --with-nativecomp --with-xpm=3Difavailable \ >>>> --with-gif=3Difavailable --with-tiff=3Difavailable >>> >>> 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|=E2=9C=94 + env = | grep DESTDIR >> 19:56:31 [alex@qemu-test:~/s/e/emacs.git] native-comp|=E2=9C=94 1 + >> >>>>> I believe of the two information the first is wrong in this case. Th= is >>>>> is coming from the DESTDIR value while compiling. Is it possible that >>>>> Emacs was compiled with a certain DESTDIR value and then installed us= ing >>>>> 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=3D/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|=E2=9C=94 + rema= ke >> 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=3D'$(srcdir)/../.git/logs/HEAD' BIN_DESTDIR= =3D'/home/alex/src/emacs/install/bin/' \ >> LISP_DESTDIR=3D'/home/alex/src/emacs/install/share/emacs/28.0= .50/lisp/' all >> remake[1]: Entering directory '/home/alex/src/emacs/emacs.git/src' > > Regardless the DESTDIRS Unix mystery (!?) BIN_DESTDIR and LISP_DESTDIR > are set correctly. But looking at you original error apparently Emacs > is convinced to start from '/usr/bin/' and not > '/home/alex/src/emacs/install/bin/'. > > This '/usr/bin/' should be the value of `invocation-directory' while > executing pdumper.c:5312. Is this value wrong or we are missing > something else? Heh - so I patched pdumper to dump the variables at that point and re-built: dump_do_dump_relocation: installation_state:2 ivoncation_dir: and now the built emacs boots up fine. So I'm guessing there must have been a stale pdumper.o that didn't get built for some reason. Sorry for the noise. --=20 Alex Benn=C3=A9e