From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id Ziq6NHB08GB8gAAAgWs5BA (envelope-from ) for ; Thu, 15 Jul 2021 19:46:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sBEBLnB08GD1ZAAA1q6Kng (envelope-from ) for ; Thu, 15 Jul 2021 17:46:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3E99B12328 for ; Thu, 15 Jul 2021 19:46:24 +0200 (CEST) Received: from localhost ([::1]:52672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m45RG-0005ww-4E for larch@yhetil.org; Thu, 15 Jul 2021 13:46:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m45Qd-0005wG-3o for emacs-orgmode@gnu.org; Thu, 15 Jul 2021 13:45:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]:33985) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m45QY-0004Z3-Up for emacs-orgmode@gnu.org; Thu, 15 Jul 2021 13:45:42 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 9A750240026 for ; Thu, 15 Jul 2021 19:45:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1626371134; bh=LO2XiWZXyqfDMg6KwNh5rlxEkfmqBI4pZpIoZY1dwVs=; h=To:From:Subject:Date:From; b=i1wBHbzv1ulpWmKinTu1aF+MR1g1u4BiOK7hnP3cUOAMm4wsjlmc8KBl5xcsc85eG wcTiEEkCDeuqq78KDRzvRcMm8Weg4YAjxiamfHLvEccTw/PMHa2oi+2mOqYMbSf28p rJX/2CdkNP/pvVwNDCLxBbYMFr4B2UgkCVojruXR8AVRLstzD+CnlzZb55kboFOx2C INEKH5HcJZa1rZY5MmNcB+ozzzCWDaDmL8KAEhRQLKzinuMAHMP+BvZhaG7swGm9X5 99ZI57SLcLAgsunPTWEdViMI1V6u2My+V2sciFg6IFF3/CR9jQP0xOUlfcwtcDTbw5 ajCYcnYTNodgQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GQhbx2PxNz9rxD for ; Thu, 15 Jul 2021 19:45:33 +0200 (CEST) To: emacs-orgmode From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= Subject: [BUG] Async pdf export broken with native-comp Message-ID: <1b08067b-5203-39e3-1c8e-4af61522d011@posteo.eu> Date: Thu, 15 Jul 2021 17:45:32 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr Received-SPF: pass client-ip=185.67.36.65; envelope-from=sebastien.miquel@posteo.eu; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sebastien.miquel@posteo.eu Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626371184; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CZCuxW5z/iruXxIvDkXYGG4MaYSZrJLIe/DM59Sh6DU=; b=Jk+VA41YJKSroCZIAOuR8JjZtjjuFZ4bKxuK4jP7hkjghoUJN7y+CaTbVH85wXzbofpKO8 YrkHmgl2SlCw4aYfxtfOLARYYd/xyInN6HACA/su338920CXhmNRpECXOwDJfUNAXqoR5W g5CcsSBZ3WjDySvsMhSi8DUXqdT1jZyyJBpQbTaHssDmC5SOd02qWkWVULyo5Uxv8XMs7z lXYw4ouqMnJVjCqJ+9ZxggOessaP1KetYJO+ABIcx8HhIdsn9I9pQI/RPRl2Sw55qd4fk/ HlmkdNAipR3leIzpiqE7RnLmq3Eru7Iqw6EJkx+VmDRrLwsYUQEKTHp1Qb8UEQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626371184; a=rsa-sha256; cv=none; b=Fh20Wl/zWBnnGneuxOIGMrKJR8LJiqzy1grhKOHhE8iy5GAm1cWwUQiKK6FtE0bNRbOsZr Ny5MLeuqYc57ItQ7IY1eOJkHklDNVzYOpWjd3uItxSTiTjulDYYQXmrL0LnqpaUrKjKJ5w Q6TJlHaVGgjsmzpvbY/AhYkTXeoF31EvWsxGfMmungiHDtL89dasRbSeMkrzbdoW9Yky0x CJaHLhaW4NJ7jAZFpEmZ7e6Hn/saZtnGt4Agw/apeV18GmgKVcQTA5oyxD1MdI2Ouawigg Uru0gEEwCp6IqJwirtTgiS4flUTbBq31hBDNjN8upGXYm6gMXPFnQhMmmK3+2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=i1wBHbzv; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=i1wBHbzv; dmarc=pass (policy=none) header.from=posteo.eu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 3E99B12328 X-Spam-Score: -3.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7OMAXUDU5NuP Hi, The async pdf export functionality appears to be broken with latest org and a recent emacs version compiled with native-comp enabled (I have not tested without native-comp). To reproduce:  - use `emacs -q` and an empty init.el file (your init file gets picked up by    the async emacs instance)  - (setq org-export-async-debug t)  - find any org file and hit =C-c C-e C-a C-l C-p= to export as pdf file. The async process will exit abnormaly. The issue stems from this line in `org-export-to-file`  :       (ignore-errors (funcall ',post-process ,file)) In `org-latex-export-to-pdf`, this `post-process` is set to  :       (lambda (file) (org-latex-compile file)) I think native-comp compiles this lambda, which messes things up. As a fix, you can quote the lambda in `org-latex-export-to-pdf`  :       '(lambda (file) (org-latex-compile file)) The same applies to other backends but I don't know if it's the right thing to do. Regards, -- Sébastien Miquel