From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KBBkHZ4Y8GBP5gAAgWs5BA (envelope-from ) for ; Thu, 15 Jul 2021 13:14:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eF9IF54Y8GAnXAAA1q6Kng (envelope-from ) for ; Thu, 15 Jul 2021 11:14:38 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0F0842FC03 for ; Thu, 15 Jul 2021 13:14:38 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2941D2907D; Thu, 15 Jul 2021 07:14:34 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 4AEF52907B for ; Thu, 15 Jul 2021 07:14:31 -0400 (EDT) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id EBA1F1B000FB; Thu, 15 Jul 2021 14:14:28 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1626347669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Tlw2/svMkhSRhZG34n0uIVoE2jcDAEB9dGiJJ6xirbs=; b=U+I7XlZgOOi5i3t/abntWPsHiWay7JvnIXAcHmhw6S0UmRMeLm8hdwlFAN3QRHRc0NPRHU 3wd6PHJcOeysWUBalLFgACzdZ0KNvHOsxQf74/VBPa7n4GSZ4lE8IFN6KKec2v5Wg2yrl5 4O8ADFxNUZYHdfQY1T2DHRbWN24AasFcvaokLTaXEhBQw1IIThwRHGvbR5X9jluM8ztNrv b1dmeRsuIesdhat7DC36pcsoADIB2YsJcPY3y01h+sr7aGFd6OfAxCviv9SvbHtmEZO4y5 Za2sGyRYZ6HhTavalx28gcwatbm4Msb14pKB/Dkz3wlG35zKPQ4beI6Uq3uwrQ== From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: configure checks for python3-notmuch2 module In-Reply-To: <87im1g35ey.fsf@tethera.net> References: <87im1g35ey.fsf@tethera.net> User-Agent: Notmuch/0.32+21~gfdddd4c (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1626347669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Tlw2/svMkhSRhZG34n0uIVoE2jcDAEB9dGiJJ6xirbs=; b=RapJYMORicV/7DJjAYVUM3yYkf3T+q6A38MmBGe6yDaK7Ac+SOUOzCeO/TGxWzFB9Dw4+L Vp0EiEjyokKN3IjSb4E6LVJqO+w6KJU0VxhLpSAEne7tcWBBLXMyBqwPfo3HR4SGlYRghV V2cbTnsOnWPczWzksRe2HQKxJWNGagySQbLfQhOq3fiewwgxlckDWPlxtjLt8luzXr4JoA W0H+0YK78y4vmsolJQXDZ2MahhokXnfQhqYVTpaSkz+jafYlPEA6qWQXm2QmqkI0vKe8jU z3zwngL86NN7Rq77FT2iyOgjHY2Mqt2YOVkk99stikOcMjKxy9uZhnVFLaueHQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1626347669; a=rsa-sha256; cv=none; b=FOaAlTv8twIuofHLUeR0sZ9zJHWkkV1MPgdEkDK6F9m2DKRUjqj0yzDWJ077Q1q7UIOFMh m5JVZ9Z+ij+QA5jqUex4qZty7Ib4kMPPFvA9oPu/Vo2bYFAxCL9zUovGabwsMSXFJPYFuE +F7npBbPBeWLbdSvJ43cqnBaa1AHLHyyiQIM/vuSd06ZVuPkfJwH/bGvQYaqGsQxMRznvr x0mcxGEwHKpbNVE8mmBsTVZ/bgsnS3DvAMkdiqhCUuPOV/8QkANw95Qxt/rzefYxb2q5Ly e6zkpwyBPF7CKc+XvLo5Cd/nzGojFahhFTXCtVS3+AoPALzhOCliIWEJJe8d4g== Message-ID-Hash: LIXXOSLFBMT4PXDNHRLINOEJIPSTZIHY X-Message-ID-Hash: LIXXOSLFBMT4PXDNHRLINOEJIPSTZIHY X-MailFrom: tomi.ollila@iki.fi X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626347678; h=from:from: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=IL4lsPNLHJm6G78zXBAuIDxGhYLmG/Hf7NaYqaEevhA=; b=k/Dic1VEFEJTKkpxA+Wk+BnkJ6zQA2Cq9ESpsMqLm4d0MIfKrh9VQOsVApUn6H6BifAYJ8 Bz3qEeNTr3CmRmGPERwNgMleumLwrBjtglXOFGIKHV9TDj096/cSoH77fkTWp6IgIfZn93 9PZUXGMwUD8xpLrikJvs09j6Btgbl47O6woeRZrxftJ4LDACEp4Pi26qre6PC2SC1XqdVt gpQ0yMkgRK76iduBHgiyfbs/ZokP6UsR6dvdmxm39NkgDTe45M3lreCcC0OZe68a9AY3Jk uN+HufiAHEId4NN05VOXzUY0Yt5SksF522qLeH37uggM/LGHoBshGbM6ydTWoA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1626347678; a=rsa-sha256; cv=fail; b=AvvvLq38SbRiSp0NLyu/awG9mPFk/mkMh6LqYDru9PQY6sWl2ndmabnlASpmWgRIs+dzpt uac9WV/PAP0uUM7wRnZlXPWhXRlyROLbGxcFwZ8ApL+v39rC+gkVc7r61iwHt2fx0uaG2B 2Uc7VoCxh62KNUUQATXbbEuIM1YaoDkMB0YI5YXG+tSB2xSHI5truEI1FmK3c9yX9DlBrW QwAQMjsGNwb1nmyTCbmS9Ur+zky00Re4Dzp7SIaBZugRr/Yk2ZI8nRUjpBjdbgN0X1XjL3 bus9z1f9ZjWr20eQRiDzklHJnTBjK6TGB6bi24FckdFT/BNEDMfSiu6MmxSgcg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=U+I7XlZg; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=U+I7XlZg; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 0F0842FC03 X-Spam-Score: 0.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: /A11z+Ps7Yno On Sun, Jul 11 2021, David Bremner wrote: > It turns out we need pyconfig.h to build the (new) python bindings. I > don't think this is adequately checked for by the configure script, > since I had a Fedora user report a build failure (during make install, > which I found odd) missing pyconfig.h > > On Debian this is on libpython3.x-dev, which is not a dependency of the > python3-cffi package. > > log follows. > ---------------------------------------------------------------------- > > cd bindings/python-cffi && \ > python3 setup.py build --build-lib build/stage && \ > mkdir -p build/stage/tests && cp tests/*.py build/stage/tests > running build > running build_py > running build_ext > generating cffi module 'build/temp.linux-x86_64-3.9/notmuch2._capi.c' > creating build/temp.linux-x86_64-3.9 > building 'notmuch2._capi' extension > creating build/temp.linux-x86_64-3.9/build > creating build/temp.linux-x86_64-3.9/build/temp.linux-x86_64-3.9 > gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I../../lib -I/usr/include/python3.9 -c build/temp.linux-x86_64-3.9/notmuch2._capi.c -o b ui > ld/temp.linux-x86_64-3.9/build/temp.linux-x86_64-3.9/notmuch2._capi.o > build/temp.linux-x86_64-3.9/notmuch2._capi.c:50:14: fatal error: pyconfig.h: No such file or directory > 50 | # include > | ^~~~~~~~~~~~ > compilation terminated. > error: command '/usr/bin/gcc' failed with exit code 1 While me trying (Fedora 34 .. ooh no, 33 (but anyway ;D)): $ ./configure ... Checking for python3 cffi and setuptools... No (will not install CFFI-based python bindings). ... OK, why -- I do have cffi and setuptools python packages installed ..so: $ script -c 'sh -x ./configure' reveals (after trying w/ python 3.9 repl) that cffi.FFI().verify() fails due to missing Python.h... let's hunt (again, I recall solving this like a year ago or so..) ... apparently python3-devel needed. $ sudo dnf install python3-devel $ make distclean $ ./configure --prefix=$PWD/TTT $ make $ make install ... hmm all worked.... pyconfig.h is part of python3-devel package Have to check how all this behaves on Fedora 34 machine when I have access to one (currently away from such machines and from power grid also (laptop battery power, which I have to preserve, mobile devices gets charged by small solar panels so no problem there ;D)) Tomi