GNU bug report logs - #57849
29.0.50; MacOS ld warning from native compilation

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Gerd Möllmann <gerd.moellmann@HIDDEN>; dated Fri, 16 Sep 2022 05:49:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 19 Sep 2022 05:20:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 19 01:20:11 2022
Received: from localhost ([127.0.0.1]:51845 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oa9CU-00015w-V4
	for submit <at> debbugs.gnu.org; Mon, 19 Sep 2022 01:20:11 -0400
Received: from mail-wr1-f53.google.com ([209.85.221.53]:43630)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oa9CQ-00015B-LN
 for 57849 <at> debbugs.gnu.org; Mon, 19 Sep 2022 01:20:09 -0400
Received: by mail-wr1-f53.google.com with SMTP id t7so45643573wrm.10
 for <57849 <at> debbugs.gnu.org>; Sun, 18 Sep 2022 22:20:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date;
 bh=MqEtjftoACjsr2u7IDeuuAt4ZqgGl8UD5VdVJP/68YM=;
 b=M3YmsT2MCyBFxx9sF2hyyyZBprPioSwtq+gYMEUKcZDoFAG6NGp9dDKAixwhsHpAD9
 sLQnuQk7yT9lVZd0mREDAEPk3t5amNEbCjPP1CE5wfsQchGrH4VHq1XmCC82m7skOmoB
 uonNsYAJtG0IqmdzkQN2ksv9Jj2fpjdHm6FgYWBkZ70HAVbqw3l2jIXe74Hxn5dw7Dq5
 Hf/j82EREAvxfy9roowWumbTFGNgYHFTraqGtR2+hjkF82zskbiLAA02WnkWs1i2ZIvj
 jFChMhdUI8dWpQSDN1SlICv7bks/o0z5beKiV3wiKOtylUlvcGYAFtiqVd1o7BrWbpbn
 WX7Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date;
 bh=MqEtjftoACjsr2u7IDeuuAt4ZqgGl8UD5VdVJP/68YM=;
 b=JoLM/vqrR5hIh6M+83oKWwlfgIMbYrNG38cmd8z+RniaThcAmlKkKlLwTGNTRAg7CR
 Ytk6RUvbYhUSX8dTCRQ41qnWVsfuMi0lRA4nb5iLz8Hk7pibIFPV04soMRNtM0EcJU5C
 Z9EiUlaQ8YLFl2PAaqMSRcpO8DlCptwOTMfhNJnyJv5ErVo23y+gc1+HYWB5cHZijqFW
 N/6H/Roaeek/GQa/D56Dp3fMFzMTd/5uOfWEccYuzGMld/uEHjMCnCN3LOuScIvb7hbg
 kfh2vxIQ64CYzc7o4xY9KP0Ab6NRUBncFKaIRVKeS6xtCMWdJyNlR+5yEeTh6iDfQxt4
 aI9g==
X-Gm-Message-State: ACrzQf2cXqApLoLKBdUS4+U52ogvSYxt0Pg0rrvsQPFsD3hi+rM0m0DE
 yU6H9rxsgZrdsXdKacqTVTQ=
X-Google-Smtp-Source: AMsMyM4SUd6mBackLt1HWeM8slP36VWqhc7/kSbO4k0VNP6ycxFz6y2PtYuynteDBgrPTO10RkOWDQ==
X-Received: by 2002:adf:f18d:0:b0:228:9f0a:f291 with SMTP id
 h13-20020adff18d000000b002289f0af291mr10033779wro.252.1663564800559; 
 Sun, 18 Sep 2022 22:20:00 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36b5e.dip0.t-ipconnect.de. [217.227.107.94])
 by smtp.gmail.com with ESMTPSA id
 f17-20020a7bcd11000000b003a4efb794d7sm12462323wmj.36.2022.09.18.22.19.59
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 18 Sep 2022 22:19:59 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
In-Reply-To: <m2illmxtrw.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Sat, 17 Sep 2022 10:57:39 +0200")
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <84acc36e7ec1e6784956@HIDDEN> <m2o7vflbzc.fsf@HIDDEN>
 <xjfo7vfasut.fsf@HIDDEN> <m2a66yy5ga.fsf@HIDDEN>
 <m235cqxygr.fsf@HIDDEN> <83wna21mok.fsf@HIDDEN>
 <m2y1uiwh37.fsf@HIDDEN> <m2illmxtrw.fsf@HIDDEN>
Date: Mon, 19 Sep 2022 07:19:58 +0200
Message-ID: <m2pmfs3pq9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57849
Cc: gregory@HIDDEN, larsi@HIDDEN, 57849 <at> debbugs.gnu.org, akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:
>
>> uncompressing time-date.el.gz...done
>> ld: library not found for -lemutls_w
>> libgccjit.so: error: error invoking gcc driver
>> /Users/gerd/emacs/emacs-28/nextstep/Emacs.app/Contents/Resources/lisp/em=
acs-lisp/comp.el.gz:
>> Error: Internal native compiler error failed to compile
>>
>
> This is not my day...
>
> I can't reproduce the error above anymore, with or without the change in
> compl.el.  It would be good if someone else could double-check.

I've now tested this with a script over night, and the error did not
re-appear in almost 200 runs.

So I've now pushed this to emacs-28.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 17 Sep 2022 08:57:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 17 04:57:52 2022
Received: from localhost ([127.0.0.1]:45165 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZTe3-0001qx-Ma
	for submit <at> debbugs.gnu.org; Sat, 17 Sep 2022 04:57:51 -0400
Received: from mail-ej1-f52.google.com ([209.85.218.52]:45826)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZTe0-0001qh-M4
 for 57849 <at> debbugs.gnu.org; Sat, 17 Sep 2022 04:57:50 -0400
Received: by mail-ej1-f52.google.com with SMTP id dv25so54159933ejb.12
 for <57849 <at> debbugs.gnu.org>; Sat, 17 Sep 2022 01:57:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date;
 bh=Kzzmdw6dc/eOnVKrkapkBxOofy9jNnEqYKdC2SJ7IM4=;
 b=mndww8bcG2qAOo4LzEC/SYhBwx0bfzmhwdRJq1E+KozuK4rVEey8lOLhaPJcoIK4qL
 aMMfRuyhaLuQnTLYf8C4HpF9PnbmcxhINotxfVOBi6d1DTIIKDRE8qariJPtwBxBJj8E
 hbe1AqMmOwKyMUtw2MJLfDZCo9kO43H8LEonXKUXzqgjvBxT6FbQV9m1nmYEOfrYM3G9
 NuQv/MiVPM3slQ2DJqlAixWesjpwqKOfzZZWM7oTsXKNvW83Rs5yzWsa3SgXu97rt8ps
 nr7etceIn7qMyPgXG7H/4PKT//VEfVkZPsJ1tYXrpk8wlv0fX2iFb7EzYDED5f4dsjnw
 fIag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date;
 bh=Kzzmdw6dc/eOnVKrkapkBxOofy9jNnEqYKdC2SJ7IM4=;
 b=kI9/QP53ccPiswP5Jvx0Xbwo6ovTuBefRFQowlH77QWULuXRMzCJyRZ4gNr4ki4A4i
 HlATGURhuXZQO6geTjTHMWvsNqDWcFqFT+AwFIF8jA6PgQzGH+aY4dWrjq1k792g7Z6B
 xIXDJQWPR0MHsFnPtlIh1gaqDlquFaaK0RkT5iFw9q5H0hziV2R1WgCQS+r8GcFRSX2+
 aDH4f9SgvQoVZ5hLGQ1pFoMxIAb0czP8OJw8FmR8mFRxWhbgrl19KP7CF7lWfJDecSDj
 Rb2MuOCqQdasgPcdeSbcb+ggQL01OmtKC3BN2o0UcWkrfiPztIM6dC3jjVTy4O2u9DAR
 B9Yg==
X-Gm-Message-State: ACrzQf0yoER3JpOb2boBBwfDIjU9+gTDGwq5+wdF9UYNHpR979QbMnK3
 v7GwYBXv2GpGtBcEWc7VtQURXOAP9tLblA==
X-Google-Smtp-Source: AMsMyM4+/Civ5+VEREhySUirUIAi0m+TGuapfTvApcNHfmdILO7pSbwqJ6Wa7B//Q0XCOEu5jZr4AQ==
X-Received: by 2002:a17:907:1dcc:b0:77a:c5f3:708b with SMTP id
 og12-20020a1709071dcc00b0077ac5f3708bmr6201712ejc.331.1663405062061; 
 Sat, 17 Sep 2022 01:57:42 -0700 (PDT)
Received: from Mini.fritz.box (p4fe3ab90.dip0.t-ipconnect.de. [79.227.171.144])
 by smtp.gmail.com with ESMTPSA id
 l1-20020a1709060cc100b00780ab5a9116sm2086917ejh.211.2022.09.17.01.57.40
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 17 Sep 2022 01:57:41 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
In-Reply-To: <m2y1uiwh37.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Sat, 17 Sep 2022 10:17:00 +0200")
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <84acc36e7ec1e6784956@HIDDEN> <m2o7vflbzc.fsf@HIDDEN>
 <xjfo7vfasut.fsf@HIDDEN> <m2a66yy5ga.fsf@HIDDEN>
 <m235cqxygr.fsf@HIDDEN> <83wna21mok.fsf@HIDDEN>
 <m2y1uiwh37.fsf@HIDDEN>
Date: Sat, 17 Sep 2022 10:57:39 +0200
Message-ID: <m2illmxtrw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57849
Cc: gregory@HIDDEN, larsi@HIDDEN, 57849 <at> debbugs.gnu.org, akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> uncompressing time-date.el.gz...done
> ld: library not found for -lemutls_w
> libgccjit.so: error: error invoking gcc driver
> /Users/gerd/emacs/emacs-28/nextstep/Emacs.app/Contents/Resources/lisp/ema=
cs-lisp/comp.el.gz: Error: Internal native compiler error failed to compile
>

This is not my day...

I can't reproduce the error above anymore, with or without the change in
compl.el.  It would be good if someone else could double-check.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 17 Sep 2022 08:17:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 17 04:17:14 2022
Received: from localhost ([127.0.0.1]:45133 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZT0k-0000pp-5u
	for submit <at> debbugs.gnu.org; Sat, 17 Sep 2022 04:17:14 -0400
Received: from mail-ej1-f41.google.com ([209.85.218.41]:42930)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZT0e-0000pW-Kb
 for 57849 <at> debbugs.gnu.org; Sat, 17 Sep 2022 04:17:12 -0400
Received: by mail-ej1-f41.google.com with SMTP id sb3so24469659ejb.9
 for <57849 <at> debbugs.gnu.org>; Sat, 17 Sep 2022 01:17:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date;
 bh=1Qp4+UW3j4VMIk/RMT+Ze3Z3rJkCTkyifIif5BBoLyo=;
 b=Ce+pJz8ug4mpzLMnvJOgJvvth1blvhtsQCV0Qm/v1xD+USyKmKRkKrUHq4qTdGApqU
 wqbx4+qj6+f9tQ4sAnlVkrPY0E9wKgvdSLX5wbC374dJ0HprMNdC89Xvvm2nuny8fC5l
 m2dA7C9zLGd7PjUSOmckxZcvxLC27IH8qs60lk87rtPQk0xjUm9VCWPNfozWB7UDE5bp
 0pmDHjGzfYH5Wn85P+bydA6nmxYtJCib9Xd02x7LeWGGlDGXGm3HrNiDae1ac9a8ARX5
 Qd6OHdG7qFxoJaWgnPTBNmBoLg0sLg6CuKL81XwVgBcSsrhT2ZO+8kUN6yo75txxd/pC
 xubA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date;
 bh=1Qp4+UW3j4VMIk/RMT+Ze3Z3rJkCTkyifIif5BBoLyo=;
 b=GUjqRJVQr8xlcs0WvZmUJ5h2ECXhidT2XOdqxqSJUxyqqaDkvKLNRH6rc0dZ7/Pd2N
 is2WtsPEIs3KYTt0up8bXUpVNTrj5QrqwlXKznlGqUBImyCfkNlgL1IkmbIDyfspOskA
 THYNcGbY84JHiUHXb9msmFjkjjzEf1Qq8w3MuZiszPROWSdkyFxb/WZqjFxFA09MGgnP
 U187+J+Us6eRyRiY6oHc3MW0r7nVy5WXYrCatrHV5W/+NpW5xHyXOMPBYi2p9A7yI6F7
 I40KDMayTfELss9srd1nVUs7bvJMf9J88pyX2rOBk2dIf8Qi9NMj/JN4L31V+SNwOBsC
 6gzA==
X-Gm-Message-State: ACrzQf1D8JX5MWB5/sFgKtoDedKIjSRZgQFLd/AdeMF9DXOGBoVEEJiz
 R8d7zj6UAJOUTyOLIBiHAVvivgHxWueghA==
X-Google-Smtp-Source: AMsMyM5dI3LFR/eofQqOnhwzrOj8hetBhzwPc9Lq1hGoYDhdrkYxBA/fjY4yedM/AWVymDID6mXCsw==
X-Received: by 2002:a17:906:da86:b0:77a:52b3:da48 with SMTP id
 xh6-20020a170906da8600b0077a52b3da48mr5791665ejb.373.1663402622217; 
 Sat, 17 Sep 2022 01:17:02 -0700 (PDT)
Received: from Mini.fritz.box (p4fe3ab90.dip0.t-ipconnect.de. [79.227.171.144])
 by smtp.gmail.com with ESMTPSA id
 ky17-20020a170907779100b0073bf84be798sm11830479ejc.142.2022.09.17.01.17.01
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 17 Sep 2022 01:17:01 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
In-Reply-To: <83wna21mok.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 17 Sep
 2022 10:31:55 +0300")
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <84acc36e7ec1e6784956@HIDDEN> <m2o7vflbzc.fsf@HIDDEN>
 <xjfo7vfasut.fsf@HIDDEN> <m2a66yy5ga.fsf@HIDDEN>
 <m235cqxygr.fsf@HIDDEN> <83wna21mok.fsf@HIDDEN>
Date: Sat, 17 Sep 2022 10:17:00 +0200
Message-ID: <m2y1uiwh37.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57849
Cc: gregory@HIDDEN, larsi@HIDDEN, 57849 <at> debbugs.gnu.org, akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> Is this somehow an Emacs-specific problem, or is this a general
> problem with libgccjit on those versions of macOS?

I think it's a general problem with macOS 12.6/Xcode 14, but I'm not sure.
The link Gregory and/or Lars posted concerned Ruvy, IIRC.

> If the latter, I
> think this should be taken up with the libgccjit developers first, and
> we should then do as they say, if that makes sense.

Maybe Andrea can say more.  I don't know libgccjit and the native
compiler well enough.

>> Otherwise my proposal is to
>> either add something to etc/PROBLEMS describing how to add "-Wl,-w", or
>> add that option by default on Darwin.
>
> If what the libgccjit developers say doesn't fit our needs, or if this
> is an Emacs-specific problem, thgen yes, using -Wl,-w is probably the
> way to go.
>
>> I didn't check if emacs-28 has the same problem, but I don't see why it
>> wouldn't.
>
> It's okay to make that change on the emacs-28 branch, if someone can
> verify that it works on that branch.

I've tried this in emacs-28, which seems to work, with a caveat

@@ -178,14 +178,15 @@ native-comp-compiler-options
   :type '(repeat string)
   :version "28.1")
 
-(defcustom native-comp-driver-options nil
+(defcustom native-comp-driver-options (when (eq system-type 'darwin)
+                                        '("-Wl,-w"))
   "Options passed verbatim to the native compiler's back-end driver.
 Note that not all options are meaningful; typically only the options
 affecting the assembler and linker are likely to be useful.
 
 Passing these options is only available in libgccjit version 9
 and above."
-  :type '(repeat string)                ; FIXME is this right?
+  :type '(repeat string)
   :version "28.1")
 
 (defcustom comp-libgccjit-reproducer nil

The caveat being that I see, after starting that Emacs, in the log
buffer

uncompressing time-date.el.gz...done
ld: library not found for -lemutls_w
libgccjit.so: error: error invoking gcc driver
/Users/gerd/emacs/emacs-28/nextstep/Emacs.app/Contents/Resources/lisp/emacs-lisp/comp.el.gz: Error: Internal native compiler error failed to compile

The build was from git clean -xdf.  Don't know what's going on there.
Maybe it's not related to my change.  I'll try without the change later
today.

>
>> If we add -Wl by default, an open question is if -w is supported on all
>> all versions of MacOS that Emacs supports, which I can't find a definite
>> answer to.
>
> I think -w is such an old option that it'd be unthinkable for it not
> to be supported.

That's likely, yes.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 17 Sep 2022 07:32:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 17 03:32:07 2022
Received: from localhost ([127.0.0.1]:45101 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZSJ4-0008AK-HO
	for submit <at> debbugs.gnu.org; Sat, 17 Sep 2022 03:32:07 -0400
Received: from eggs.gnu.org ([209.51.188.92]:60350)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oZSJ2-00089p-Uo
 for 57849 <at> debbugs.gnu.org; Sat, 17 Sep 2022 03:32:05 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:58896)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oZSIv-0004Ic-R1; Sat, 17 Sep 2022 03:31:58 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=yFMrVNcCumg1VYOPDTahYGzUNAY2t2X4kilSYL4sU5E=; b=ikNo4JdbLzRpuWplX5u1
 AVNF31uSotcMiWDvnCy4HrqvVAYhDlyF99hxkeGcTMUjU1mpk1AUrtYenE/kMjHR/696LbNtWuPPf
 xefruNzIG3T7u66b1LPwEnZ2motkVpuoZlA6Fy/xfKb4dbQRtkrK+Vzca81g7so7E0Az0kYa1sYJw
 6Fx94lb4J7gsJH0jRYg+Ffa4Zp2wRmhr8Bwh1SlVxEGSap3wLI4btn/socIbiNEilMzYaybdRIUdb
 t9437aHxLWE0dykOrk3lrqdU0nJ4TrQ8M1eLN3vGAhJFO5Wt7x6fxkFYwLFgPE2NmiQxc7nDvN6WB
 kwMJ3BxEmkfidQ==;
Received: from [87.69.77.57] (port=1063 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oZSIu-0001Qf-QL; Sat, 17 Sep 2022 03:31:57 -0400
Date: Sat, 17 Sep 2022 10:31:55 +0300
Message-Id: <83wna21mok.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
In-Reply-To: <m235cqxygr.fsf@HIDDEN> (message from Gerd
 =?utf-8?Q?M=C3=B6llmann?= on Sat, 17 Sep 2022 09:16:20 +0200)
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <84acc36e7ec1e6784956@HIDDEN> <m2o7vflbzc.fsf@HIDDEN>
 <xjfo7vfasut.fsf@HIDDEN> <m2a66yy5ga.fsf@HIDDEN>
 <m235cqxygr.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57849
Cc: gregory@HIDDEN, larsi@HIDDEN, 57849 <at> debbugs.gnu.org, akrl@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: Gregory Heytings <gregory@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>,
>  57849 <at> debbugs.gnu.org
> From: Gerd Möllmann <gerd.moellmann@HIDDEN>
> Date: Sat, 17 Sep 2022 09:16:20 +0200
> 
> That failed miserably.  What I tried:
> 
> (1) See with which options elns are compiled/linked.
> 
> (let ((native-comp-driver-options '("-v")))
>   (native-compile "/Users/gerd/emacs/crash.el"))
> 
> gives an output ending with
> 
>  /opt/homebrew/Cellar/gcc/12.2.0/bin/../libexec/gcc/aarch64-apple-darwin21/12/collect2 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/ -dynamic -arch arm64 -macosx_version_min 12.0.0 -o /var/folders/1d/k_6t25f94sl83szqbf8gpkrh0000gn/T//libgccjit-YMST3m/fake.so -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12 -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12/../../.. /var/folders/1d/k_6t25f94sl83szqbf8gpkrh0000gn/T//ccbfcNDH.o -undefined dynamic_lookup -dylib -dylib_install_name crash-e892b236-cea0f727.eln -lemutls_w -lgcc -lSystem -lgcc -no_compact_unwind -rpath @loader_path -rpath /opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/current/gcc/aarch64-apple-darwin21/12 -rpath /opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/current/gcc -rpath /opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/current
> ld: warning: -undefined dynamic_lookup may not work with chained fixups
> 
> That is, it builds a shared object (-dynamic).
> 
> (2) -bundle_loader requires -bundle.  Ld gives an error if
> -bundle_loader is used without -bundle.  A "bundle" in Mach-O, which is
> what MacOS is using instead of ELF, say, is something different than a
> shared library.  Example:
> 
> gcc -v -o eln.dylib -twolevel_namespace -undefined dynamic_lookup -dylib -bundle_loader hansi eln.c
> ld: -bundle_loader can only be used with -bundle
> 
> (3) Tried to add -bundle like this
> 
> (let ((native-comp-driver-options '("-v" "-bundle")))
>   (native-compile "/Users/gerd/emacs/crash.el"))
> 
> but it fails
> 
> Compiling /Users/gerd/.emacs.d/eln-cache/29_0_50-72ec8db5/crash-e892b236-cea0f727.eln...
> Using built-in specs.
> aarch64-apple-darwin21-gcc-12: error: -bundle not allowed with -dynamiclib
> COLLECT_GCC=aarch64-apple-darwin21-gcc-12
> 
> I odn't know how to remove the -dynamic from (1).
> 
> As an aside, -bundler_loader actually requires an argument <executable>,
> which would be Emacs in our case.  What that means for Emacs' build
> process is unclear to me, but it doesn't feel good.
> 
> So, I declare this a complete failure.
> 
> Anyone with an idea what else to try?

Is this somehow an Emacs-specific problem, or is this a general
problem with libgccjit on those versions of macOS?  If the latter, I
think this should be taken up with the libgccjit developers first, and
we should then do as they say, if that makes sense.

> Otherwise my proposal is to
> either add something to etc/PROBLEMS describing how to add "-Wl,-w", or
> add that option by default on Darwin.

If what the libgccjit developers say doesn't fit our needs, or if this
is an Emacs-specific problem, thgen yes, using -Wl,-w is probably the
way to go.

> I didn't check if emacs-28 has the same problem, but I don't see why it
> wouldn't.

It's okay to make that change on the emacs-28 branch, if someone can
verify that it works on that branch.

> If we add -Wl by default, an open question is if -w is supported on all
> all versions of MacOS that Emacs supports, which I can't find a definite
> answer to.

I think -w is such an old option that it'd be unthinkable for it not
to be supported.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 17 Sep 2022 07:16:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 17 03:16:33 2022
Received: from localhost ([127.0.0.1]:45084 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZS41-0007lV-86
	for submit <at> debbugs.gnu.org; Sat, 17 Sep 2022 03:16:33 -0400
Received: from mail-ed1-f43.google.com ([209.85.208.43]:41814)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZS3x-0007lE-77
 for 57849 <at> debbugs.gnu.org; Sat, 17 Sep 2022 03:16:32 -0400
Received: by mail-ed1-f43.google.com with SMTP id z97so34429741ede.8
 for <57849 <at> debbugs.gnu.org>; Sat, 17 Sep 2022 00:16:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date;
 bh=wvxtLOMgNh5wqTWmEfG8KuV0D1RLuAor6y8wVbg23CI=;
 b=IrSQje+xPcc/hZhYo/5g4SkMViNODEl3zRW1t2U6gs4SPXtyVfG/jPV8/uOoJXcXKZ
 I+YOoMFj7IcDSANwPnArr4vNzdR6qEN6DV2Ci8aFsr9DEvo0ceg6nsnGzCAK0b4BjRW+
 UJyllBIjyBjHyMoh2iqKorfEloWcXdH8zvEMC82+e7EyzdaFdJrW8Vm8d1SUlWptahom
 Qv3UHfpP3TeelOHEapIhJBrNt4+q7BbAp7RysrBiboebyWzx5tqeK38EqjjbsL2alyMw
 Jq2Z0tq8yMZKRIlGH08IqAVuVfDOV3v27cq0b8Lv0ylrEkA0G5EqseSGvvra21xgRo7x
 ahyQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date;
 bh=wvxtLOMgNh5wqTWmEfG8KuV0D1RLuAor6y8wVbg23CI=;
 b=RrLDuHphEG03NSmFeihMpibEtV53NMUaeUtFzpHKyTnJVl1oKhK9NWvN9MqbcP7n1C
 +IrEgVyYGcKtWOtLEsbFlspkyRr6r+U+FGhkStiH1zuhO2jAISfpd1RW4BWRBWDlNZzo
 6TcyIvbp17DKbDZ1jH/XKXqXptGMdsu1dLAQDcG1Ev/BvAkdtqf2Z02Sjths8CQbAHMk
 tiVxslByEni14Ukx0WM+7zoFdkqFAJBjfCjkkwhmn1xzrMU7Sre55L4GIugyzI1Y95vg
 85noHfAgunT2iq748j3Cv6NzakX9OdaqcpUN5Q5wX+J4VIghf7x7a6azOxJkevQaIKK4
 TvuA==
X-Gm-Message-State: ACrzQf30BOmJWbowFd73clgdX4lM2hYQXcKEaNF3cfp281j49DN92DUa
 IE2au8ffdTJ3SUMYc6fRH/u4IBd+AMs6JQ==
X-Google-Smtp-Source: AMsMyM7NLkaQbE1x9PYzgTfExW7FdFhuT214qvwzocuJcvTqaBO4gMZfYr/F/j5H4g+6FLcGpkm29A==
X-Received: by 2002:a05:6402:d05:b0:425:b7ab:776e with SMTP id
 eb5-20020a0564020d0500b00425b7ab776emr7205173edb.142.1663398982841; 
 Sat, 17 Sep 2022 00:16:22 -0700 (PDT)
Received: from Mini.fritz.box (p4fe3ab90.dip0.t-ipconnect.de. [79.227.171.144])
 by smtp.gmail.com with ESMTPSA id
 fd12-20020a056402388c00b00453a727376esm585751edb.83.2022.09.17.00.16.21
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 17 Sep 2022 00:16:21 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
In-Reply-To: <m2a66yy5ga.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Sat, 17 Sep 2022 06:45:25 +0200")
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <84acc36e7ec1e6784956@HIDDEN> <m2o7vflbzc.fsf@HIDDEN>
 <xjfo7vfasut.fsf@HIDDEN> <m2a66yy5ga.fsf@HIDDEN>
Date: Sat, 17 Sep 2022 09:16:20 +0200
Message-ID: <m235cqxygr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57849
Cc: Gregory Heytings <gregory@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>,
 57849 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> Andrea Corallo <akrl@HIDDEN> writes:
>
>> Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:
>
>>> I'm not sure this is true for elns.  What if a function in a.eln calls a
>>> function F in b.eln?
>>
>> This is never the case. Functions in .eln files either call functions in
>> Emacs core or either call functions in the same .eln file.
>
> Thanks, good to know.
>
> I'll give it a spin with -bundle... later today.

That failed miserably.  What I tried:

(1) See with which options elns are compiled/linked.

(let ((native-comp-driver-options '("-v")))
  (native-compile "/Users/gerd/emacs/crash.el"))

gives an output ending with

 /opt/homebrew/Cellar/gcc/12.2.0/bin/../libexec/gcc/aarch64-apple-darwin21/=
12/collect2 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.s=
dk/ -dynamic -arch arm64 -macosx_version_min 12.0.0 -o /var/folders/1d/k_6t=
25f94sl83szqbf8gpkrh0000gn/T//libgccjit-YMST3m/fake.so -L/opt/homebrew/Cell=
ar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12 -L/opt/h=
omebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc -L/opt/homebrew/Cellar=
/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12/../../.. /=
var/folders/1d/k_6t25f94sl83szqbf8gpkrh0000gn/T//ccbfcNDH.o -undefined dyna=
mic_lookup -dylib -dylib_install_name crash-e892b236-cea0f727.eln -lemutls_=
w -lgcc -lSystem -lgcc -no_compact_unwind -rpath @loader_path -rpath /opt/h=
omebrew/Cellar/gcc/12.2.0/lib/gcc/current/gcc/aarch64-apple-darwin21/12 -rp=
ath /opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/current/gcc -rpath /opt/homebre=
w/Cellar/gcc/12.2.0/lib/gcc/current
ld: warning: -undefined dynamic_lookup may not work with chained fixups

That is, it builds a shared object (-dynamic).

(2) -bundle_loader requires -bundle.  Ld gives an error if
-bundle_loader is used without -bundle.  A "bundle" in Mach-O, which is
what MacOS is using instead of ELF, say, is something different than a
shared library.  Example:

gcc -v -o eln.dylib -twolevel_namespace -undefined dynamic_lookup -dylib -b=
undle_loader hansi eln.c
ld: -bundle_loader can only be used with -bundle

(3) Tried to add -bundle like this

(let ((native-comp-driver-options '("-v" "-bundle")))
  (native-compile "/Users/gerd/emacs/crash.el"))

but it fails

Compiling /Users/gerd/.emacs.d/eln-cache/29_0_50-72ec8db5/crash-e892b236-ce=
a0f727.eln...
Using built-in specs.
aarch64-apple-darwin21-gcc-12: error: -bundle not allowed with -dynamiclib
COLLECT_GCC=3Daarch64-apple-darwin21-gcc-12

I odn't know how to remove the -dynamic from (1).

As an aside, -bundler_loader actually requires an argument <executable>,
which would be Emacs in our case.  What that means for Emacs' build
process is unclear to me, but it doesn't feel good.

So, I declare this a complete failure.

Anyone with an idea what else to try?  Otherwise my proposal is to
either add something to etc/PROBLEMS describing how to add "-Wl,-w", or
add that option by default on Darwin.

I didn't check if emacs-28 has the same problem, but I don't see why it
wouldn't.

If we add -Wl by default, an open question is if -w is supported on all
all versions of MacOS that Emacs supports, which I can't find a definite
answer to.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 17 Sep 2022 04:45:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 17 00:45:40 2022
Received: from localhost ([127.0.0.1]:44812 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZPi0-0003cw-8Y
	for submit <at> debbugs.gnu.org; Sat, 17 Sep 2022 00:45:40 -0400
Received: from mail-ej1-f44.google.com ([209.85.218.44]:35370)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZPht-0003cf-VB
 for 57849 <at> debbugs.gnu.org; Sat, 17 Sep 2022 00:45:37 -0400
Received: by mail-ej1-f44.google.com with SMTP id go34so53547593ejc.2
 for <57849 <at> debbugs.gnu.org>; Fri, 16 Sep 2022 21:45:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date;
 bh=r+e1drIJvJHS4S3CwabOkxFq0Ph5+JeA/iI3IBzp2Ho=;
 b=VdHSOZKQAB7kGcn1NwD/Yl1OX7CQ4whsxADb25dmM3JMvccvevuX14g90KReanYm+I
 86Jmd7xJaL3e+TSicxMMoNyvTUPAFQBrIhayWo5L2sfDdLg3LMYgGbynPltVKjoJl3+Y
 l9ivlQc+/zpDQyVo4YzGeKLIjn27j2W+7woklQAXd4J0gkWmuKgC+UFoCR75F0VhE10s
 j4qu7bSz921y5jxaVafTBBmp9rDxjAT5MDUfoDIHhXE0ULU0IU2ujGJog+tZWV+jwcQO
 srnO9tavDLyASktsRiNXnwfpIRtLVkrso+bLg66zxzT/Y/jAik6bWQjy1sbkTwCAwDUe
 WwBQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date;
 bh=r+e1drIJvJHS4S3CwabOkxFq0Ph5+JeA/iI3IBzp2Ho=;
 b=Ct8iW31FsB9OkZ8mXQfgGhesplSLYg1RFieqDSOIA2wkgOkCq+kAte75qwi1rIM2kd
 VP8jUkg0jMT/zSKf0bE2jCE0rFoaFI5hiUiJSUwNZ8q03k+DPuJG3Ig72e5iLBxKZldb
 j7Qku45J0HzjRKkGNOMxG1y9k3J3mGzwpMKlkWyMvwET3vij+zOj9nRik4Qm+DA+0q9T
 VqIsxQDujw3NrYxvPInike4VEABKHXFklbDBi9Cts/0KSaMcWTDywlW7s87B8bJWPwv/
 z/D790zPea1q32yp3yccAxKDYhlPvQvyXoMUMhUaTO8DN63UfeqrrdLhFtkZ2BwHlqA4
 cfOQ==
X-Gm-Message-State: ACrzQf0tOKJnswC2CY1/BBHA58+ad6EupIReLHVsLQ43v1gP0S6JEYeh
 WFYTN5dw6VcSVPx4/otQDjDVK5XazS/Q2A==
X-Google-Smtp-Source: AMsMyM7MRvdWur8+gy9cJI1OXS6R6F2IRVtg8i/Kpp3MmZypu6m31egdi7uOZ3DQXvrI417LyIJAzw==
X-Received: by 2002:a17:906:58c9:b0:778:8c85:19ee with SMTP id
 e9-20020a17090658c900b007788c8519eemr5464735ejs.693.1663389927580; 
 Fri, 16 Sep 2022 21:45:27 -0700 (PDT)
Received: from Mini.fritz.box (p4fe3ab90.dip0.t-ipconnect.de. [79.227.171.144])
 by smtp.gmail.com with ESMTPSA id
 v2-20020a170906292200b00730bfe6adc4sm11660625ejd.37.2022.09.16.21.45.26
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 16 Sep 2022 21:45:26 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
In-Reply-To: <xjfo7vfasut.fsf@HIDDEN> (Andrea Corallo's message of "Fri,
 16 Sep 2022 21:53:46 +0000")
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <84acc36e7ec1e6784956@HIDDEN> <m2o7vflbzc.fsf@HIDDEN>
 <xjfo7vfasut.fsf@HIDDEN>
Date: Sat, 17 Sep 2022 06:45:25 +0200
Message-ID: <m2a66yy5ga.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57849
Cc: Gregory Heytings <gregory@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>,
 57849 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Andrea Corallo <akrl@HIDDEN> writes:

> Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

>> I'm not sure this is true for elns.  What if a function in a.eln calls a
>> function F in b.eln?
>
> This is never the case. Functions in .eln files either call functions in
> Emacs core or either call functions in the same .eln file.

Thanks, good to know.

I'll give it a spin with -bundle... later today.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 16 Sep 2022 21:54:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 17:54:00 2022
Received: from localhost ([127.0.0.1]:44526 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZJHc-0001qH-HW
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 17:54:00 -0400
Received: from mx.sdf.org ([205.166.94.24]:61615)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1oZJHY-0001q6-46
 for 57849 <at> debbugs.gnu.org; Fri, 16 Sep 2022 17:53:59 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 28GLrkmP010088
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Fri, 16 Sep 2022 21:53:55 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
In-Reply-To: <m2o7vflbzc.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Fri, 16 Sep 2022 14:50:31 +0200")
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <84acc36e7ec1e6784956@HIDDEN> <m2o7vflbzc.fsf@HIDDEN>
Date: Fri, 16 Sep 2022 21:53:46 +0000
Message-ID: <xjfo7vfasut.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57849
Cc: Gregory Heytings <gregory@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>,
 57849 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> Gregory Heytings <gregory@HIDDEN> writes:
>
>>>> I cannot find anything at all about the warning on the web.
>>>
>>> There's:
>>>
>>> https://githublab.com/profile/kateinoigakukun
>>>
>>> But er where's the actual link to the patch?  Confusing interface.
>>>
>>
>> There's no patch AFAICS, but the discussion is here:
>> https://githublab.com/repository/issues/chef/ffi-yajl/114
>>
>> See another similar discussion here:
>> https://github.com/ruby/ruby/pull/6193
>>
>> Apparently the solution is to use the -bundle_loader option.
>
> He writes
>
>    On the other hand, -undefined dynamic_lookup is already deprecated on
>    all darwin platforms except for macOS,
>
> Aha, that's interesting.
>
>    so it's good time to get rid of
>    the option. ld64 also provides -bundle_loader <executable> option,
>    which allows to resolve symbols defined in the executable symtab while
>    linking. It behaves almost the same with -undefined dynamic_lookup,
>    but it makes the following changes:
>
>    Require that unresolved symbols among input objects must be defined
>    in the executable.
>
> I'm not sure this is true for elns.  What if a function in a.eln calls a
> function F in b.eln?

This is never the case. Functions in .eln files either call functions in
Emacs core or either call functions in the same .eln file.

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 16 Sep 2022 14:01:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 10:01:55 2022
Received: from localhost ([127.0.0.1]:43811 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZBul-0000G4-7h
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 10:01:55 -0400
Received: from mail-ej1-f53.google.com ([209.85.218.53]:39553)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZBuh-0000Fo-U0
 for 57849 <at> debbugs.gnu.org; Fri, 16 Sep 2022 10:01:53 -0400
Received: by mail-ej1-f53.google.com with SMTP id y17so44615773ejo.6
 for <57849 <at> debbugs.gnu.org>; Fri, 16 Sep 2022 07:01:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date;
 bh=26DCn6siSpIkcsSDuO+gAZ9jAMP0XK8CKNeXYwWR2TM=;
 b=cq+Vfgpr+5E5BN1+9CBoju0VZlctBpMRM5JbHfJ4Hboxi7mVjgvHwrjeefO17iohhd
 0gEkF8cl5pSP2b8a686dnv+tS1P79cV9FYRGe4g5dabYF2DHmBgLqMvx9e7idWwYVawk
 r7Ki+tDwq2YUVYeqxdxGlMqDJ/es3kxKTuDim1xfYk+dgrzoZYrQCXrM6Lg64umux7yP
 nNAryVf7snhn3yajbGrzxbzw1l79f0qx4dBNnbWRuaikDQTg7uCNLgHQQjd6R+6XUVOW
 8Mil2F/4Ula8RZsOJhgKP5wsgFem2TTdlAqSFu/+8xX6f72FJ4nmeeqYSe5p92x6e9Pd
 NahQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date;
 bh=26DCn6siSpIkcsSDuO+gAZ9jAMP0XK8CKNeXYwWR2TM=;
 b=Hzbj74s5cNTFl5atkfXKjKwzOp61Fp5iJak+GWfZM7jaLRbtJalQe0QsOUo94bnNKj
 qgRbHAxEc8IYWTK+mOGt3g12XLVm+RruldowjxzqoflBafGksdEEUmeYWRjaaAjG7nP4
 ZedzbqkciifusB6LIveYEQ2YZMn6Pwn/ClFxbesH2KsEetr0EvvuZUFbJLnOvmI/ujkC
 1tgkgf4fCpCh/hOq+IGjBKMv2bpumsw4y++4jmNXtjW2wqBB+ZUzbZtr7spXMSg6CZxe
 9TRfR0eyZQshLMjlkfaiQwY0YP9ZGU7C9ODM2YB+qNaGYFbmJ/XvAAZbheS9joPJIHRx
 h8qQ==
X-Gm-Message-State: ACrzQf1USebSvr4syfzxVJOP3ntTltNWU/jtpPvti9z7/N+gc6Fv4h0F
 mRj2PzJArr/yfIsWjyBftJQ+LqYcry0Wuw==
X-Google-Smtp-Source: AMsMyM5prmFYDpVLNleKm96/CKns4kiFkSvNAThJoxWgD5mIuVLRGCdOiy3E5gYPs8hWszq/T+tJog==
X-Received: by 2002:a17:906:5d04:b0:722:f46c:b891 with SMTP id
 g4-20020a1709065d0400b00722f46cb891mr3835543ejt.4.1663336905325; 
 Fri, 16 Sep 2022 07:01:45 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36af3.dip0.t-ipconnect.de.
 [217.227.106.243]) by smtp.gmail.com with ESMTPSA id
 g21-20020aa7c855000000b0044e983132c3sm13178594edt.60.2022.09.16.07.01.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 16 Sep 2022 07:01:44 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
In-Reply-To: <83v8pn2zpy.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 16 Sep
 2022 16:52:41 +0300")
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <84acc36e7ec1e6784956@HIDDEN> <m2o7vflbzc.fsf@HIDDEN>
 <5ebd8fe9-5c98-b485-3618-1f6e398b6ed2@HIDDEN>
 <9120e297-52f4-0d74-8814-27e03ef14eb8@HIDDEN>
 <83v8pn2zpy.fsf@HIDDEN>
Date: Fri, 16 Sep 2022 16:01:43 +0200
Message-ID: <m2edwbxvso.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57849
Cc: gregory@HIDDEN, larsi@HIDDEN, 57849 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 57849 <at> debbugs.gnu.org
>> Date: Fri, 16 Sep 2022 15:39:02 +0200
>> From: Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN>
>>=20
>> And trying to pass "-Wl,-w", with "-w" being an ld options to suppress=20
>> warnings, doesn't work either (not that it would be a good idea...)
>>=20
>> (let ((native-comp-compiler-options '("-Wl,-w")))
>>    (native-compile "/Users/gerd/emacs/crash.el"))
>>=20
>> Compiling=20
>> /Users/gerd/.emacs.d/eln-cache/29_0_50-72ec8db5/crash-e892b236-cea0f727.=
eln...
>> libgccjit.so: error: command-line option '-Wl,-w' is valid for the=20
>> driver but not for
>
> There's also native-comp-driver-options; did you try that?
>
> native-comp-compiler-options are for the compiler, i.e. cc1.

Thanks, that works!

(let ((native-comp-driver-options '("-Wl,-w")))
  (native-compile "/Users/gerd/emacs/crash.el"))
"/Users/gerd/.emacs.d/eln-cache/29_0_50-72ec8db5/crash-e892b236-cea0f727.el=
n"

Now I guess the question is how to proceed with this... Or maybe wait
for libgccjit to do something?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 16 Sep 2022 13:53:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 09:53:03 2022
Received: from localhost ([127.0.0.1]:42181 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZBmA-000842-QP
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 09:53:03 -0400
Received: from eggs.gnu.org ([209.51.188.92]:48678)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oZBm5-00083V-CA
 for 57849 <at> debbugs.gnu.org; Fri, 16 Sep 2022 09:53:01 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:60348)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oZBly-0006Ir-2Q; Fri, 16 Sep 2022 09:52:50 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=SWRiQWicALZeTQh6aMvXg2GTRxQSTVbIZgNZLt9/lbs=; b=CFsAuFDu7Ho/bfOI+ThF
 3w2ycwEwVaZa+ZnNsVJDmy9Gq2+VuLwUUXxgmSiAStAPQN9TlqBEAFqUnbpsiigRSy1GXMCnJ8f9P
 m/KeiY6oQBp8Gox/Z+KlBx01cKfk4XN9fXvWtfhL+1QxHFB3ce8Lvs/1qpQmhQkseH0h4NjKVxQ5w
 D51w+e3lSCucZP9DY9crHS9zDhHGrBf6zCaH6Nha4PcQyciISUGBl/Ps0d0Q0qIIiFO7+9n9LENvi
 p2BKz6lt4jUUkG9ngwveNE5FHhjGEnwCkP+KZBDei3GZDnxKKDVHbWIpLPayQgkBCSclyqvPIebOQ
 dYZoECmXfMO9+Q==;
Received: from [87.69.77.57] (port=3929 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oZBlw-0001DS-7J; Fri, 16 Sep 2022 09:52:48 -0400
Date: Fri, 16 Sep 2022 16:52:41 +0300
Message-Id: <83v8pn2zpy.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
In-Reply-To: <9120e297-52f4-0d74-8814-27e03ef14eb8@HIDDEN> (message from
 Gerd =?utf-8?Q?M=C3=B6llmann?= on Fri, 16 Sep 2022 15:39:02 +0200)
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <84acc36e7ec1e6784956@HIDDEN> <m2o7vflbzc.fsf@HIDDEN>
 <5ebd8fe9-5c98-b485-3618-1f6e398b6ed2@HIDDEN>
 <9120e297-52f4-0d74-8814-27e03ef14eb8@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57849
Cc: gregory@HIDDEN, larsi@HIDDEN, 57849 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 57849 <at> debbugs.gnu.org
> Date: Fri, 16 Sep 2022 15:39:02 +0200
> From: Gerd Möllmann <gerd.moellmann@HIDDEN>
> 
> And trying to pass "-Wl,-w", with "-w" being an ld options to suppress 
> warnings, doesn't work either (not that it would be a good idea...)
> 
> (let ((native-comp-compiler-options '("-Wl,-w")))
>    (native-compile "/Users/gerd/emacs/crash.el"))
> 
> Compiling 
> /Users/gerd/.emacs.d/eln-cache/29_0_50-72ec8db5/crash-e892b236-cea0f727.eln...
> libgccjit.so: error: command-line option '-Wl,-w' is valid for the 
> driver but not for

There's also native-comp-driver-options; did you try that?

native-comp-compiler-options are for the compiler, i.e. cc1.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 16 Sep 2022 13:39:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 09:39:14 2022
Received: from localhost ([127.0.0.1]:42170 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZBYo-0007ht-6z
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 09:39:14 -0400
Received: from mail-ej1-f44.google.com ([209.85.218.44]:46820)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZBYj-0007hd-Uk
 for 57849 <at> debbugs.gnu.org; Fri, 16 Sep 2022 09:39:12 -0400
Received: by mail-ej1-f44.google.com with SMTP id bj12so49420983ejb.13
 for <57849 <at> debbugs.gnu.org>; Fri, 16 Sep 2022 06:39:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:in-reply-to:subject:references:cc:to:from
 :content-language:user-agent:mime-version:date:message-id:from:to:cc
 :subject:date; bh=uK9UDfpMufkKTFScF2ffcA3Wkl+dZ9i9Y6fh4UvBLv8=;
 b=Wu8Wu/LX0C8G9+v5Sp8RhAv9oOKMjPcw5GtnftYkrO4/4ceQZ9jQOpJtrU7nDomdA2
 ESzoVj735Gig0ScpTl/8u7acSYWhl1sWF3O03IX5yRR9pYffAOP/47RI8OFE+IqjVcsa
 uVINKz2j16K121DHT6613UCD9ohOfqE3KjWxMey8h7mUUXeBJWc+yO8SoHCIYTWzmrn5
 1a2fQYZ+7wMb2ubxRUSldLPozcpjC7QH7PteIXw3Aom+I807yu4siV8Kgz/FwhZYvsQY
 nE5TvGDYnuqCuC5QpeMBCT5gPTAx4jUiZBaNT33FwzlHC/i8h5BXLW0kOd5FZbloapCH
 xAOQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:in-reply-to:subject:references:cc:to:from
 :content-language:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date;
 bh=uK9UDfpMufkKTFScF2ffcA3Wkl+dZ9i9Y6fh4UvBLv8=;
 b=e9/pn4c0B312j4yVPbqWmx+l+yhdil07bsqog2VYJD/PM682IBFBL2496vOsC9hRVi
 YHVLc/AHBi1uW+zt2JWaIyDB+KPsVEHcYmloM5GWzknUwmyu1yCbZkwDb0bfHRiUJmSH
 nTmDp7LIJmM//RmlYE0uMG/eMYOE7EdUph2bpuRSd5SEIRTw6VuAbKMFw8xZOX9SgmAV
 fVNEd0JnOlrV7dhbJKBOv9t0oKycM4bD+AAhNdWS4r8+f6Ssvcrgq8re4HGECvTU9wmK
 4Iktl+WHa4GRGspPYg6oggfUxLznjaOwEAkumnExZLDKpFq0Tyjr0lIgQqikg4vbaqmD
 991g==
X-Gm-Message-State: ACrzQf3olWwPuXPyr/ARo1pcubZeQKNdKW0qjlDqG87hPAB3d9Bgw+6C
 u1gm/46x9aBQTlADGQkVis8=
X-Google-Smtp-Source: AMsMyM60q7/OnemZ3unEXSQeyu4BSJNT4dXHTWm2K5heaYXQnqXn+5vmmTW69GehuJNVXRh0W+ZN7g==
X-Received: by 2002:a17:907:7e90:b0:77d:fecf:c243 with SMTP id
 qb16-20020a1709077e9000b0077dfecfc243mr3648187ejc.361.1663335543976; 
 Fri, 16 Sep 2022 06:39:03 -0700 (PDT)
Received: from [192.168.178.21] (pd9e36af3.dip0.t-ipconnect.de.
 [217.227.106.243]) by smtp.gmail.com with ESMTPSA id
 eo6-20020a056402530600b004478be33bddsm13244212edb.15.2022.09.16.06.39.02
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 16 Sep 2022 06:39:03 -0700 (PDT)
Message-ID: <9120e297-52f4-0d74-8814-27e03ef14eb8@HIDDEN>
Date: Fri, 16 Sep 2022 15:39:02 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
 Gecko/20100101 Thunderbird/91.13.0
Content-Language: en-US
From: =?UTF-8?Q?Gerd_M=c3=b6llmann?= <gerd.moellmann@HIDDEN>
To: Gregory Heytings <gregory@HIDDEN>
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <84acc36e7ec1e6784956@HIDDEN> <m2o7vflbzc.fsf@HIDDEN>
 <5ebd8fe9-5c98-b485-3618-1f6e398b6ed2@HIDDEN>
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
In-Reply-To: <5ebd8fe9-5c98-b485-3618-1f6e398b6ed2@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -1.8 (-)
X-Debbugs-Envelope-To: 57849
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 57849 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)

And trying to pass "-Wl,-w", with "-w" being an ld options to suppress 
warnings, doesn't work either (not that it would be a good idea...)

(let ((native-comp-compiler-options '("-Wl,-w")))
   (native-compile "/Users/gerd/emacs/crash.el"))

Compiling 
/Users/gerd/.emacs.d/eln-cache/29_0_50-72ec8db5/crash-e892b236-cea0f727.eln...
libgccjit.so: error: command-line option '-Wl,-w' is valid for the 
driver but not for

For what it doesn't say, but I guess it means for libgccjit.so :-). 
"gcc -Wl,w some.c" works just fine.

So, I guess we're hosed.  Unless someone has another idea.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 16 Sep 2022 13:05:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 09:05:50 2022
Received: from localhost ([127.0.0.1]:42108 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZB2U-0006p2-6I
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 09:05:50 -0400
Received: from mail-ed1-f47.google.com ([209.85.208.47]:33607)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZB2S-0006on-9V
 for 57849 <at> debbugs.gnu.org; Fri, 16 Sep 2022 09:05:48 -0400
Received: by mail-ed1-f47.google.com with SMTP id b35so31444176edf.0
 for <57849 <at> debbugs.gnu.org>; Fri, 16 Sep 2022 06:05:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:in-reply-to:references:cc:to:from
 :content-language:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date;
 bh=4CqEnA7uk7qYb+cpdsu5osoldcFoKLBaAhqH2LUmle4=;
 b=P85qYkm5UhsMi+to5wzZfGcqu2fggV6xC5Y3kE5FR3K+NSDJ+gdIr+u8KMdCeNAg+0
 0XzMrHBlGFFBmtBzqo87t2S1TSzhwbA9Q2B/WFL1H6oH8MNO6qFvM52QQ2faSiNaEhLc
 z4HYlKl0BfKIk7agSVgtp1Dns+fmHqJsnP7S0IFr/jZKqPYCQ/U7Hia6GfPAX0fVhquh
 QLmhp6II+XIqcbe3QAljY2HtvQqbk4leP/dnPHAP0ycQg0ONlbovN2XFJriSgUq3gmlQ
 0f8DG5cAO4oWxN6KbzlIcC+KmCUiN9nidXhJfJgCTQdeTCQ0kHiZXsyKui0qGbv8TCmO
 3jFQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:in-reply-to:references:cc:to:from
 :content-language:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date;
 bh=4CqEnA7uk7qYb+cpdsu5osoldcFoKLBaAhqH2LUmle4=;
 b=XeCoDADBZXF4tPb/B/R4RaNBe3+yss4zDkDtKHRuTfFKM/Jk7p6SJ8E/RXNBKsEzGl
 +BzYobvdVKBCJd0hv12Z6m4Suk2hduVCsEclpSkSxvrse/pByqYrJjPFXWobVqkgktVP
 c+I4q9i1lD6MKXLAfKGEmdXh+PnRNOkktzgkmkituwq71mLRgpXZE8xKuGZuWSpAx4H7
 Fp5GG+++peEwp0UmNiJ/FOC8zM6CUF+TNfcu7E0y2Vl869+a/NGo8heds3g3znmsMqAM
 vylN446mek5OTE3A49q9VPB2ySDdFbd9e7ScSxCzIjSiNsttCE6GyjkJNTb85SOqXKic
 MsnQ==
X-Gm-Message-State: ACrzQf1PyLA0pmNUhNj8VncSf2WuWHy5aTa+TdKSre9h6idYmnu0Iqtj
 FmNlEMJXsf9dxZLyHL0DMzY=
X-Google-Smtp-Source: AMsMyM6RMyT/W3egMEuhchYat5HLSzjNoaIL8Ox7DUyN8bCJzUI0Rl+EnE1jSo9vZZd4CsoVyck6NQ==
X-Received: by 2002:a05:6402:17d7:b0:44e:95b0:3741 with SMTP id
 s23-20020a05640217d700b0044e95b03741mr3822724edy.281.1663333542516; 
 Fri, 16 Sep 2022 06:05:42 -0700 (PDT)
Received: from [192.168.178.21] (pd9e36af3.dip0.t-ipconnect.de.
 [217.227.106.243]) by smtp.gmail.com with ESMTPSA id
 r9-20020a1709061ba900b007413360a48fsm10297631ejg.50.2022.09.16.06.05.41
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 16 Sep 2022 06:05:41 -0700 (PDT)
Message-ID: <5ebd8fe9-5c98-b485-3618-1f6e398b6ed2@HIDDEN>
Date: Fri, 16 Sep 2022 15:05:39 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
 Gecko/20100101 Thunderbird/91.13.0
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
Content-Language: en-US
From: =?UTF-8?Q?Gerd_M=c3=b6llmann?= <gerd.moellmann@HIDDEN>
To: Gregory Heytings <gregory@HIDDEN>
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <84acc36e7ec1e6784956@HIDDEN> <m2o7vflbzc.fsf@HIDDEN>
In-Reply-To: <m2o7vflbzc.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -1.8 (-)
X-Debbugs-Envelope-To: 57849
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 57849 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)

And trying libgccjit HEAD fails...

/opt/homebrew/opt/ > brew install libgccjit --HEAD
==> Cloning https://gcc.gnu.org/git/gcc.git
Cloning into '/Users/gerd/Library/Caches/Homebrew/libgccjit--git'...
Updating files: 100% (117196/117196), done.
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
==> ../configure --prefix=/opt/homebrew/Cellar/libgccjit/HEAD-39dc665 
--libdir=/opt/homebrew/Cellar/libgccjit/HEAD-3
==> make
Last 15 lines from /Users/gerd/Library/Logs/Homebrew/libgccjit/02.make:
checking for struct tms... yes
checking for clock_t... yes
checking for F_SETLKW... yes
checking for O_CLOEXEC... yes
checking for fcntl.h... (cached) yes
checking whether O_NONBLOCK is declared... yes
checking for AF_UNIX... yes
checking for AF_INET6... yes
checking for _LK_LOCK... no
checking if mkdir takes one argument... no
/private/tmp/libgccjit-20220916-39022-19zntmh/gcc/configure: line 12693: 
test: =: unary operator expected
*** Configuration aarch64-apple-darwin21 not supported
make[2]: *** [configure-stage1-gcc] Error 1
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 16 Sep 2022 12:50:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 08:50:40 2022
Received: from localhost ([127.0.0.1]:42099 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZAno-0006Ps-At
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 08:50:40 -0400
Received: from mail-ej1-f49.google.com ([209.85.218.49]:46959)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZAnm-0006Pc-Qa
 for 57849 <at> debbugs.gnu.org; Fri, 16 Sep 2022 08:50:39 -0400
Received: by mail-ej1-f49.google.com with SMTP id bj12so49117217ejb.13
 for <57849 <at> debbugs.gnu.org>; Fri, 16 Sep 2022 05:50:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date;
 bh=20S6VZZcGcqR3YSHRjx7oWodzayzb7z6W6Ix1+wUxOo=;
 b=lWRMWrrPHykK3/g5pri0uP0OArv047DAwT3TFwSXBdBoTbB4an/t3w8ihpaxlQ+Fw2
 X3ZHIvDgG9EehJc4y0sGyvjnz7ptk3SS5pdqgnU6fdMMLktWSE8ieXZ1HAW3aXbO3QvC
 LT+h+XRgomziw5+UInbfC3FpHwYeM93VufG91vDz3+CwpWth3LAPnwP4pUX3r9V7PXS6
 KsdHU9Kedxhp+XhzHb1G/ZQer9PayqHk3ZYYAvEagSqKAncBLDmB+/mivYAAQH5bEjRI
 IxT57bqkbmOzJ6Dpi30nexaHGkGm0tvqpRApM/E/R8wXakey2GDVDnIoyEG6WUhL02BA
 mvYA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date;
 bh=20S6VZZcGcqR3YSHRjx7oWodzayzb7z6W6Ix1+wUxOo=;
 b=eYYxJPTtMeHYzHP5mxCieZh687a6T/CkVvMnn3DCfFXpJBEdDa/qLmzGGcvd0pp8o4
 a1NKvypKS8mrJGcqQVepk+VkxKuIg+ljlnv8I14Ci8bE2m3LH+WdZNIlmJQzGHEHxnS1
 zNinlUTvNWY1Wq372LWtaQ2yziGwgvL+G2Br/JQX5Xwg4EBWZ/2i1KIKqYuGkICbskPf
 WIAZh3B/AokhQIN9X/38D9ZLFKo/1tH85lhpelamiMIWvhrx/v5b3CmKLiIAeHwg56n+
 qLjFnR7YJ/HP+GFDu0FbIsu6N2WlF0ALWwxulMN5gnm1e1pKoir9C0pFE2XqDonnZoZD
 Sj0A==
X-Gm-Message-State: ACrzQf28x5vZh1El9N+G2okKvRuZfVjHwSlAZduxmxJwptY8MVnzIaZ+
 fk3z3Jm9NkklNwmwUz0FW8BJeSOdnjIQRQ==
X-Google-Smtp-Source: AMsMyM7ixCtkT4h1VYEJ9OeWrlyFRrkMlRb/m+jjByICVZnil/sVllr3hVNIW9QJQLipNBrYdaoEgA==
X-Received: by 2002:a17:907:7d8f:b0:780:37e7:d3b4 with SMTP id
 oz15-20020a1709077d8f00b0078037e7d3b4mr3471984ejc.594.1663332632496; 
 Fri, 16 Sep 2022 05:50:32 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36af3.dip0.t-ipconnect.de.
 [217.227.106.243]) by smtp.gmail.com with ESMTPSA id
 c26-20020a056402101a00b0044792480994sm13162460edu.68.2022.09.16.05.50.31
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 16 Sep 2022 05:50:31 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Gregory Heytings <gregory@HIDDEN>
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
In-Reply-To: <84acc36e7ec1e6784956@HIDDEN> (Gregory Heytings's message
 of "Fri, 16 Sep 2022 12:44:02 +0000")
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <84acc36e7ec1e6784956@HIDDEN>
Date: Fri, 16 Sep 2022 14:50:31 +0200
Message-ID: <m2o7vflbzc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57849
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 57849 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gregory Heytings <gregory@HIDDEN> writes:

>>> I cannot find anything at all about the warning on the web.
>>
>> There's:
>>
>> https://githublab.com/profile/kateinoigakukun
>>
>> But er where's the actual link to the patch?  Confusing interface.
>>
>
> There's no patch AFAICS, but the discussion is here:
> https://githublab.com/repository/issues/chef/ffi-yajl/114
>
> See another similar discussion here:
> https://github.com/ruby/ruby/pull/6193
>
> Apparently the solution is to use the -bundle_loader option.

He writes

   On the other hand, -undefined dynamic_lookup is already deprecated on
   all darwin platforms except for macOS,

Aha, that's interesting.

   so it's good time to get rid of
   the option. ld64 also provides -bundle_loader <executable> option,
   which allows to resolve symbols defined in the executable symtab while
   linking. It behaves almost the same with -undefined dynamic_lookup,
   but it makes the following changes:

   Require that unresolved symbols among input objects must be defined
   in the executable.

I'm not sure this is true for elns.  What if a function in a.eln calls a
function F in b.eln?  In that case, F wouldn't be defined in the
executable.

   Lazy symbol binding will lookup only the symtab of the bundle loader
   executable. (-undefined dynamic_lookup lookups all symtab as flat
   namespace)

Not sure what he's saying...




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 16 Sep 2022 12:44:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 08:44:21 2022
Received: from localhost ([127.0.0.1]:42079 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZAhh-0006C7-4x
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 08:44:21 -0400
Received: from mail-ed1-f41.google.com ([209.85.208.41]:34636)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZAhf-0006Bu-Fe
 for 57849 <at> debbugs.gnu.org; Fri, 16 Sep 2022 08:44:20 -0400
Received: by mail-ed1-f41.google.com with SMTP id z21so31321738edi.1
 for <57849 <at> debbugs.gnu.org>; Fri, 16 Sep 2022 05:44:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date;
 bh=t85FZmtgr41PdbDyfdnor4zrk8NI6RNd78I8ZPBsrZA=;
 b=SnTMsR+fGDH8JagS6hc0JERkNHR5J/81oA2ZGzFw4vd4xq25csgDoiqDxXlRmvJPH8
 YhNG+HHPXD2md3zJ3D3RQbQecGuwz1a2jNDRdYMrQhdVAUEFM9v9xB8A5kWdQ5C5wtRo
 5U6xjryz7uf3MS+YLsR/q2iqC3gw1LPfzbqEJDIcpw+3xhxHysyUuztqN4B0oMGLg4Kx
 CVP3+ZMXLlrmKC0+jFEHelNsTGJNRDedbsppnrVtwPr5wZcOexp4+/ZtmJEpstV4j5V5
 yhBrgZG60uufvLbXg+t1bPIVWNn6ZQtR8Rm2G4Pyz+e40TVHNNxiOc4CpDRmWC4Vjya+
 XyqA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date;
 bh=t85FZmtgr41PdbDyfdnor4zrk8NI6RNd78I8ZPBsrZA=;
 b=oNA19BWx42Na03AbCs1bXoIWI4QGBBKvFxvOPjStEcwlLf/2wwYL95U+URLUiRFsON
 GJo04WTTxB3uoCEKRlVlEeioymffGzTyHzX31bVH13WuhvQnXBkjujcCZoLJ0MzUE9iC
 yslMDFcbidqAw4sfNb/AAOGOz50ETXpmWf+GpOL3G0eRGP3ReNZYI8/g4k5R4FC5vE37
 jAAwtou6IOETH+BGWK9G64Z/zwa/5XYNHITXPDkv5j9edB2d8r2XGZmKwo68Y4KpL9E4
 DtNC+jPB2hWDJvZFIcZwUHP2JUDmrz/iBEVcnjWP9i+Pf78Y22T46yasNQJRI8QZ4kM9
 DqKQ==
X-Gm-Message-State: ACrzQf0/ghVlg7+opgN7MgOHzgWXpT3VD9NepzqbEMesEKMsYETTt0vl
 7MfbiyzNg3L/5+M8U4nR6Sk=
X-Google-Smtp-Source: AMsMyM5bahYOpZ+ZgGBVZZGnRMMHUPDQrDY8I3MjMc60rA4vBmoPvn1DiGD7onlwUGk5annZ/yqUdA==
X-Received: by 2002:a05:6402:5246:b0:452:76a7:934d with SMTP id
 t6-20020a056402524600b0045276a7934dmr3868520edd.137.1663332253464; 
 Fri, 16 Sep 2022 05:44:13 -0700 (PDT)
Received: from [192.168.178.21] (pd9e36af3.dip0.t-ipconnect.de.
 [217.227.106.243]) by smtp.gmail.com with ESMTPSA id
 t11-20020aa7d4cb000000b0044e8774914esm13629465edr.35.2022.09.16.05.44.12
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 16 Sep 2022 05:44:12 -0700 (PDT)
Message-ID: <e5db81a9-afe4-e1a0-dfa7-95881f67db7f@HIDDEN>
Date: Fri, 16 Sep 2022 14:44:12 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
 Gecko/20100101 Thunderbird/91.13.0
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
Content-Language: en-US
To: Lars Ingebrigtsen <larsi@HIDDEN>
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <m2sfkrlcq6.fsf@HIDDEN> <87h7178pcz.fsf@HIDDEN>
From: =?UTF-8?Q?Gerd_M=c3=b6llmann?= <gerd.moellmann@HIDDEN>
In-Reply-To: <87h7178pcz.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -1.8 (-)
X-Debbugs-Envelope-To: 57849
Cc: 57849 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)

On 22-09-16 14:39 , Lars Ingebrigtsen wrote:
> Gerd Möllmann <gerd.moellmann@HIDDEN> writes:
> 
>> Maybe it's a libgccjit thing?  It seems to pass that to ld.
>>
>> /opt/homebrew/opt/ > strings
>> /opt/homebrew/Cellar/libgccjit/12.2.0/lib/gcc/current/libgccjit.0.dylib|grep
>> dynamic_lookup
>> -Wl,-undefined,dynamic_lookup
> 
> They mention "-bundle_loader", but since I can't find the link to the
> actual patch, I'm not sure what, if anything, they're talking about...

Yeah, that's my problem, too :-)

The ld man page says

    Options when creating a bundle
      -bundle_loader executable
              This specifies the executable that will be loading the bundle
              output file being linked.  Undefined symbols from the 
bundle are
              checked against the specified executable like it was one 
of the
              dynamic libraries the bundle was linked with.

That doesn't look like the right thing.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 16 Sep 2022 12:44:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 08:44:07 2022
Received: from localhost ([127.0.0.1]:42076 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZAhS-0006Bf-T7
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 08:44:07 -0400
Received: from heytings.org ([95.142.160.155]:44274)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gregory@HIDDEN>) id 1oZAhQ-0006BT-01
 for 57849 <at> debbugs.gnu.org; Fri, 16 Sep 2022 08:44:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org;
 s=20220101; t=1663332242;
 bh=UmqQs+GpU8cXZE/8yvobyMiNVHLhOs6kLs/2flS3ymg=;
 h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From;
 b=rq1yBtd5y9iqXlmZyZWeWXXjnUbSejVE3TbJWc61t79Jz8tnLLtSDqtLKUTczi4jh
 aM4xooNyVHBAz23r3t6/OlQ9hZ8oD0kESAu/eltdY+hPgmDrt1PoE1u0O2E68jp/B1
 PioP0CLXo1QHtFbXa2l48bS1+uYF0hNNcit5s2Ox9FmYNeBMr0MgFSxm1Vu7Yftq9E
 jxvmNaoidhOe/1RVrEheSCg9XthxTs7Vm4f2DsKaPBZR2VJARJ6vL7gGuzAqpNn6rs
 b5J3Y1wjFaBX0Qpxz8abTqCnWw/cYAA+cP/Axbim4j7EJ7HiqPMc2HRiwIVZlto3Ae
 /gxwR9SQuenfQ==
Date: Fri, 16 Sep 2022 12:44:02 +0000
From: Gregory Heytings <gregory@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
In-Reply-To: <871qsbwq0u.fsf@HIDDEN>
Message-ID: <84acc36e7ec1e6784956@HIDDEN>
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset=us-ascii
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57849
Cc: =?UTF-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>,
 57849 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


>> I cannot find anything at all about the warning on the web.
>
> There's:
>
> https://githublab.com/profile/kateinoigakukun
>
> But er where's the actual link to the patch?  Confusing interface.
>

There's no patch AFAICS, but the discussion is here: 
https://githublab.com/repository/issues/chef/ffi-yajl/114

See another similar discussion here: 
https://github.com/ruby/ruby/pull/6193

Apparently the solution is to use the -bundle_loader option.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 16 Sep 2022 12:40:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 08:40:09 2022
Received: from localhost ([127.0.0.1]:42071 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZAdd-00064x-By
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 08:40:09 -0400
Received: from quimby.gnus.org ([95.216.78.240]:45674)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1oZAdb-00064S-7R
 for 57849 <at> debbugs.gnu.org; Fri, 16 Sep 2022 08:40:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=AvpWm+XHunC6ZjFPPOTAeEucoAS1QzWi/G7eVcJY4n0=; b=VD56Lje2+lxFisuL2aNf9zOpTU
 lOTS6po9/S2USciZgpqFQUsSZAVOu6htk+d12V1t7CXy+gIZf76NI1QgKpfHNRYIxa7X+PfhopMtY
 l5SzXq5W6mP9T+T0NZAu+UGlr48vVx+pGWhpwxiNr4nIRgrojpvbxT9/O7mJsjn202MI=;
Received: from [84.212.220.105] (helo=joga)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1oZAdS-00042g-LY; Fri, 16 Sep 2022 14:40:00 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
In-Reply-To: <m2sfkrlcq6.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Fri, 16 Sep 2022 14:34:25 +0200")
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
 <m2sfkrlcq6.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUoJSQjHx4hHR2f
 iXaJd2hbUEnWxK3///8K34IbAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YJEAwFM5p9C+YAAAGiSURB
 VDjLdZPBcoQgDIaDLT2jM70vTvcJUM5OV/dMK3jujG7e/xEKgQXdbeMB4eNPAiEA/xoDIf5ar/eW
 dzB2BBEJGh9BWnoC2TyQ8ech3H2WYj6BnE0BjCJRngd3sMu/O2XS1LA7V1ecwQGofBWQAC1YM+X4
 AlgBFzAlsaikOUc352sVghQU4g2tnkxCEF3RZEGNHTeHepDiuiJu7lgoGjXibZ3V5EZTFPyiFXpX
 uOCGa2+yYsZg18BIREB6gcJoq8ZtVl1MrpXAvZPgKIi2eVURyBped+C2qAKsJi/hIPgTAAVpBcya
 NmuNgx6Uj0HAH8+SGxW+DcZxdHfgVPR/wX5478bJGUPnAG47f2yLIw4s3lYEgknv7Yd3Vn9CJesM
 Wla37bKi43b9ivdk0pXIunnBDeT55utXQONBfbr2Po8qPhFRFIx99N/ATqk4CZD87Crwf6W57hXk
 w2m3un8lQ3naD+C5OUvuByDro+8CWvlAYte2wXZN5TNmYYiglfu+rOw4TgkkVQL+FW0FNFlXXUIp
 M5BeJKn9Gu6sKSDpUuuxX1tac6VJAgipAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA5LTE2VDEy
 OjA1OjUxKzAwOjAw3VUKoQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOS0xNlQxMjowNTo1MSsw
 MDowMKwIsh0AAAAASUVORK5CYII=
X-Now-Playing: Billie Eilish's _When we all fall asleep where do we go?_:
 "Everything I Wanted"
Date: Fri, 16 Sep 2022 14:39:56 +0200
Message-ID: <87h7178pcz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Gerd Möllmann <gerd.moellmann@HIDDEN> writes: > Maybe
   it's a libgccjit thing? It seems to pass that to ld. > > /opt/homebrew/opt/
    > strings > /opt/homebrew/Cellar/libgccjit/12.2.0/lib/gcc/current/libgccjit.0.dylib|grep
    > dynamic_lookup > -Wl,-und [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57849
Cc: 57849 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> Maybe it's a libgccjit thing?  It seems to pass that to ld.
>
> /opt/homebrew/opt/ > strings
> /opt/homebrew/Cellar/libgccjit/12.2.0/lib/gcc/current/libgccjit.0.dylib|g=
rep
> dynamic_lookup
> -Wl,-undefined,dynamic_lookup

They mention "-bundle_loader", but since I can't find the link to the
actual patch, I'm not sure what, if anything, they're talking about...




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 16 Sep 2022 12:34:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 08:34:35 2022
Received: from localhost ([127.0.0.1]:42049 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZAYF-0005vD-L7
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 08:34:35 -0400
Received: from mail-ed1-f43.google.com ([209.85.208.43]:44587)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZAYD-0005uv-Q4
 for 57849 <at> debbugs.gnu.org; Fri, 16 Sep 2022 08:34:34 -0400
Received: by mail-ed1-f43.google.com with SMTP id x94so13978008ede.11
 for <57849 <at> debbugs.gnu.org>; Fri, 16 Sep 2022 05:34:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date;
 bh=LtgViZNCJijdCKilIqrylH7JdWRYBGnJgL6Klg2JO4U=;
 b=mp8baeiRpmIO6hDi3tAJ99EksJfaIe3pL4Q6eS1AqWducYvNDalMSLkQTlQ6sWlibU
 2PTm8Tat2XAvn/u5AZd6bkXV0M/8A+9eK0Uj84rAHyPZhqte/xu/ahOz9oT0aUPhsLr3
 BBgZMvBGoP7U7wUDTe/Q4D1XgEd6UZppL9T2xH8KtlxJMUAdkH4Hrp7tHEQSeEQixQxU
 UPEKassy/94DiyBlEBf4SeC/5AoToH7/99l+zeAXUaIBzcVE6rTRuQHgYIRgXQ02HSGl
 Nl5fza9WF1b1aStc80K8iOMajVCweNvTox1WBOq2kzlV/JdFREDMuDZtmQwZrzc9dq32
 UTCQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date;
 bh=LtgViZNCJijdCKilIqrylH7JdWRYBGnJgL6Klg2JO4U=;
 b=wBYe64vpR2bNDJtgOKP3oyHsjZt5CTsM+fmwspBLkbiJqT3WbtGx6ZOnD6xys/iC8i
 XHrwRsw8uYNv23I8zNC3NeQLV4CUo2/P+WWbxx0+4JZZffOIJszWc3VkB0d9R1DSF0am
 2D+bVeR0IBT/vTvMGnD26z7lAWsLKCed1GUmLoa201e+DQADwUnmd//W6Vo0j6jlMxLT
 SwZ+Au6z+fEkceDLibkrA3r19RKpGVEzLYHEH9RtoVZsT9a7tpR0x4RZe4F2semsFn+p
 SrBKvlsRh3EU5d3FAw5BoMXsvo82Udrm3P7E/Q/p0QA1iOHaPMT4Igwp3kDH94KFPBtF
 d8ug==
X-Gm-Message-State: ACrzQf1ukbQCSdRPqFJN12FItr36h02yoLCIrJXvLIs8hEegqPEbgVVe
 oivpGcrV/8MzLayjnTvYPv2VD9ewhcusSw==
X-Google-Smtp-Source: AMsMyM61mwWcCrmvf/FwfujhFkmCxfFzPHirvdPzTb2m9shkbpYu4sqi5sh6s7kc4R5wZWPynvKSfg==
X-Received: by 2002:a05:6402:240d:b0:442:b0c4:9e02 with SMTP id
 t13-20020a056402240d00b00442b0c49e02mr3812043eda.210.1663331667325; 
 Fri, 16 Sep 2022 05:34:27 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36af3.dip0.t-ipconnect.de.
 [217.227.106.243]) by smtp.gmail.com with ESMTPSA id
 la10-20020a170907780a00b0077fc47605b4sm5780194ejc.217.2022.09.16.05.34.25
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 16 Sep 2022 05:34:26 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
In-Reply-To: <871qsbwq0u.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Fri,
 16 Sep 2022 12:51:45 +0200")
References: <m25yhnna3g.fsf@HIDDEN> <871qsbwq0u.fsf@HIDDEN>
Date: Fri, 16 Sep 2022 14:34:25 +0200
Message-ID: <m2sfkrlcq6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57849
Cc: 57849 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:
>
>> I cannot find anything at all about the warning on the web.
>
> There's:
>
> https://githublab.com/profile/kateinoigakukun
>
> But er where's the actual link to the patch?  Confusing interface.

Maybe it's a libgccjit thing?  It seems to pass that to ld.

/opt/homebrew/opt/ > strings /opt/homebrew/Cellar/libgccjit/12.2.0/lib/gcc/=
current/libgccjit.0.dylib|grep dynamic_lookup
-Wl,-undefined,dynamic_lookup




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at 57849 <at> debbugs.gnu.org:


Received: (at 57849) by debbugs.gnu.org; 16 Sep 2022 10:52:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 06:52:11 2022
Received: from localhost ([127.0.0.1]:41888 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZ8x8-0000r1-KR
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 06:52:11 -0400
Received: from quimby.gnus.org ([95.216.78.240]:44598)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1oZ8wt-0000qD-6j
 for 57849 <at> debbugs.gnu.org; Fri, 16 Sep 2022 06:52:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=GMGq71ipc/bonIVjCLHJ+z/aN/7z9Uoy/iyNT1xpb+M=; b=mzxRgi3JX7+RtQvV84sznwepau
 1HdcmuoBEWK8j/7aNCBNx96EYS8yvjgSAHSoeqbhE3BqgyOGXP30pqKsPUKyAZAv3tI6NnWsNvykP
 eKGSz1naqOtGa+rxf8klvj0v884zBsqcwwfF1EHH8AtzVjt2LRSzD6jEYi4a3YOPNHdE=;
Received: from [84.212.220.105] (helo=joga)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1oZ8wk-0003Go-57; Fri, 16 Sep 2022 12:51:48 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#57849: 29.0.50; MacOS ld warning from native compilation
In-Reply-To: <m25yhnna3g.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Fri, 16 Sep 2022 07:48:19 +0200")
References: <m25yhnna3g.fsf@HIDDEN>
X-Now-Playing: The Cure's _Bloodflowers_: "Out of This World"
Date: Fri, 16 Sep 2022 12:51:45 +0200
Message-ID: <871qsbwq0u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Gerd Möllmann <gerd.moellmann@HIDDEN> writes: > I cannot
    find anything at all about the warning on the web. There's: 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57849
Cc: 57849 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> I cannot find anything at all about the warning on the web.

There's:

https://githublab.com/profile/kateinoigakukun

But er where's the actual link to the patch?  Confusing interface.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Sep 2022 05:48:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 01:48:28 2022
Received: from localhost ([127.0.0.1]:41236 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oZ4DE-0000ky-Hy
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 01:48:28 -0400
Received: from lists.gnu.org ([209.51.188.17]:35048)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1oZ4DB-0000kp-F5
 for submit <at> debbugs.gnu.org; Fri, 16 Sep 2022 01:48:27 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:40974)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1oZ4DB-0001nr-9T
 for bug-gnu-emacs@HIDDEN; Fri, 16 Sep 2022 01:48:25 -0400
Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]:41513)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1oZ4D9-00018H-4p
 for bug-gnu-emacs@HIDDEN; Fri, 16 Sep 2022 01:48:25 -0400
Received: by mail-ej1-x62d.google.com with SMTP id kr11so889086ejc.8
 for <bug-gnu-emacs@HIDDEN>; Thu, 15 Sep 2022 22:48:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date; bh=SZ6fuMArMwmReY6pQcUgVQe1TM+eyI+kcuhl30F7Fos=;
 b=g2rMtbPkfEzf9axYfPGTu3b0vDqeHY6B2/9mFmVlZPyfwGXTk0CPS6ru+WvO9IXqV7
 MCfaMW35zl3OHuH6lOtUd/sYIdv3kNuF9RFNUw4z+jL0Oz1i2zeNhueJN8RRKnBuII4S
 VrsnTylRnBjpeRNBcEWjgrM7wsBpFTBV52dYH5tkfJovJlwF/dB9FRIv6Aq8UTG+RCX0
 I3N41FMxn/hA6XObBqpa9khlZjBsASQ1kldl7C4CoiIHYX+UzWOE31GTJtckxstVS3zi
 hPJepOd+/v0fvx3poz6GJo5M4SkdoBRh6A9CT3aiP3zgphnXI3wxlk+d1ENwWhPUG/wO
 +h9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date;
 bh=SZ6fuMArMwmReY6pQcUgVQe1TM+eyI+kcuhl30F7Fos=;
 b=txXQgImn9DXxO5mslUFDOO2NwMc3+CUFK8cTXGmpTbZhpogV5KIUndz9/zkn/QfoqZ
 mODg9MH8tq4lJCv0nQlaXou8HfQJKx6GgV3LZebAZGpUe5WAIIwh9nSOYj1qIIF0V+Kj
 gNqnG6ANUllUzby5iThlddEueXK5TBTJBFtNrtojNtfsHxedt8rwlOpDQ0Pa53PVOzCN
 5uaMePiNP3LRGLqfye1DFMEC7OrRj8ozVjVVElFshO+77g8x0XR1+CJvMl5ws//9C4tk
 Q/8jD+AIOQd3V8SRnVnftuBLP9dGM3wB/cgOO2MwjkjRtDKkyqUFAihMv0ZFZ7fEi31l
 0aKQ==
X-Gm-Message-State: ACrzQf1BQiWmuaKKJfJ5V6LJVR7P77cBMNmYijT1sgFmYpvrXC9nUNwE
 xXvxXnAzaQZD31oEDP/MaGpZjNlGliQ=
X-Google-Smtp-Source: AMsMyM7h24DTRhlsqwd7WfdTBWZiQT6R+tNqIdNxxB2q36I8cK5twBd/NSEJd3JTFG6jv6HCcXk0WA==
X-Received: by 2002:a17:906:cc0e:b0:77c:d77:576d with SMTP id
 ml14-20020a170906cc0e00b0077c0d77576dmr2403855ejb.658.1663307300473; 
 Thu, 15 Sep 2022 22:48:20 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36af3.dip0.t-ipconnect.de.
 [217.227.106.243]) by smtp.gmail.com with ESMTPSA id
 dc17-20020a170906c7d100b0073de0506745sm961645ejb.197.2022.09.15.22.48.19
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 15 Sep 2022 22:48:19 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.0.50; MacOS ld warning from native compilation
Date: Fri, 16 Sep 2022 07:48:19 +0200
Message-ID: <m25yhnna3g.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::62d;
 envelope-from=gerd.moellmann@HIDDEN; helo=mail-ej1-x62d.google.com
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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.6.0, NS
 appkit-2113.60 Version 12.6 (Build 21G115)) of 2022-09-15 built on
 Mini.fritz.box
Repository revision: 70e4388c59a030f0c1bec9bfcf3e94cc6d80dd1f
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2113
System Description:  macOS 12.6

Configured using:
 'configure --cache-file /Users/gerd/tmp/config.cache.master
 --with-native-compilation'

After upgrading to Xcode 14.0 (14A309) tonight, native compilation
now emits lots of warnings

ld: warning: -undefined dynamic_lookup may not work with chained fixups

~/emacs/master/src/ > ld -v
@(#)PROGRAM:ld  PROJECT:ld64-819.6
BUILD 14:58:44 Aug  5 2022
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
LTO support using: LLVM version 14.0.0, (clang-1400.0.29.102) (static support for 29, runtime is 29)
TAPI support using: Apple TAPI version 14.0.0 (tapi-1400.0.11)

I cannot find anything at all about the warning on the web.




Acknowledgement sent to Gerd Möllmann <gerd.moellmann@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#57849; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 13 Oct 2022 14:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.