From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: akrl--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#45934: native-comp - Dylib ID of ELN files not optimal Date: Sun, 17 Jan 2021 12:36:09 +0000 Message-ID: References: Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2926"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Davide Restivo To: 45934@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 17 13:37:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1l17It-0000dn-PS for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Jan 2021 13:37:11 +0100 Original-Received: from localhost ([::1]:48342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l17Is-0007zd-O9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Jan 2021 07:37:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l17Ik-0007zQ-MG for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2021 07:37:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33094) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l17Ik-0004Vq-EO for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2021 07:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l17Ik-0007XZ-9f for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2021 07:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Jan 2021 12:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45934 X-GNU-PR-Package: emacs Original-Received: via spool by 45934-submit@debbugs.gnu.org id=B45934.161088697828932 (code B ref 45934); Sun, 17 Jan 2021 12:37:02 +0000 Original-Received: (at 45934) by debbugs.gnu.org; 17 Jan 2021 12:36:18 +0000 Original-Received: from localhost ([127.0.0.1]:44640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l17I2-0007Wa-8P for submit@debbugs.gnu.org; Sun, 17 Jan 2021 07:36:18 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:63358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l17Hx-0007WN-OS for 45934@debbugs.gnu.org; Sun, 17 Jan 2021 07:36:16 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 10HCa95t027718 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sun, 17 Jan 2021 12:36:11 GMT In-Reply-To: (davide restivo's message of "Sun, 17 Jan 2021 11:13:25 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198048 Archived-At: "davide.restivo--- via \"Bug reports for GNU Emacs, the Swiss army knife of text editors\"" writes: [...] > Since the tmp directory is stripped out and replaced with the > destination directory, as you can see, all of the ELN files ends up with > the same dylib ID, and this is not allowed on macOS. My suggestion here > would be to add the 'install_name' [2] flag to gcc during the ELN files > compilation replacing the 'fake.so' with the original .eln filename. > > Thanks and regards, > Davide > > > [1] https://github.com/daviderestivo/homebrew-emacs-head > [2] gcc -o libdummy.dylib -install_name ${PREFIX}/lib/libdummy.dylib Hi Davide, I'm really ignorant on MacOS so I'll comment for what I can. I had a look to the GCC doc [1] but I could not figure out if '-install_name' is an option that goes to the compiler or the linker (nor I know what this dylib ID exactly is). If the flag is routed to the linker we should be able to add it but only when libgccjit >= 9 is used. Could you run a random compilation of something using '-install_name' but adding also '-v' and report the console output so we can see where the driver is routing the flag? Thanks Andrea [1] https://gcc.gnu.org/onlinedocs/gcc/Darwin-Options.html