Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3624972pxa; Sun, 9 Aug 2020 06:26:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykDuFE/hFa6CMwph7AcZJxH/hcWSdbhVwpErCLhIXQxWs79U1rOiOvkooF3c6S1LL4KcAe X-Received: by 2002:a50:99cf:: with SMTP id n15mr16501314edb.352.1596979618773; Sun, 09 Aug 2020 06:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596979618; cv=none; d=google.com; s=arc-20160816; b=DWDEgJQ61aXG5x9TYT30qR/ED/vWgdvLOx/vfB47j2KwKNgQJO26m+HQ+p6a+SZ8jv ov4Qs/zS7VWq0z4NICs9wHPIsNGI/gZVeKMw2Bvn9dISABHpVcbN4Uz/zTx8p+MrQDDD tXsAr4CGXVbhZs+G5oh0rGUE/YqGmN2UTG7mGLkd283QrvkCSvO97eead0D23hJu724Y C6XuwOD7dJu5EU3yaXBlxVGQiEAIaEX7uqIia5WY2bNEkONNd77G1H43dU+s1dwOdmz2 GuWAEbEtHJu49mRCga7t8hPbHuMXSjp7qhE/edk+AmO9ogBZ+E2qJX3c+fkZRo/Q9NEi ktTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=mxMscfuXuobUmy56FdXlbUpvqiI08kAsY5msIXsz5Sw=; b=Ekfj3eePy5njvpMqexDvc+8hJVyCM9Zf1JDLTI4CpkU9H76JII0lRw8UgP9JAnkWN5 e8rFW6ImA56Lu5T4hUR5TRN9ZSyZGsdShs02Dh6yVF374IGKOPj8TgZCq/xjMCK/D84W Sty4hctQctdGevRolH3Tw5JHRneSstsKzjvAGami+uEo8FVWfubz7eaChCsnngZim8bB 503oydc5q3roQd+bCCltofsOseVfFkpKcLxS70mELT7E95V3ceAGmU0gLd3SAFshw7gB +YJjxyYhXY6qjanjs3tDfs62Pd4NHLf2qV+Xl+3I2UVXkIll1w96AqwC9fz7GX1D5Gu7 d8jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Vql8XQd+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q22si8935658ejn.410.2020.08.09.06.26.36; Sun, 09 Aug 2020 06:26:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Vql8XQd+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726393AbgHINXe (ORCPT + 99 others); Sun, 9 Aug 2020 09:23:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbgHINXc (ORCPT ); Sun, 9 Aug 2020 09:23:32 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78446C061756; Sun, 9 Aug 2020 06:23:30 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id f18so11770835wmc.0; Sun, 09 Aug 2020 06:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=mxMscfuXuobUmy56FdXlbUpvqiI08kAsY5msIXsz5Sw=; b=Vql8XQd+S3jie+Kt82kw40pkO+vrxECY05AQZrEBkMYK15ZkIrjXV1F7eEmoqRdHn1 lD33nhNGSyPicrLb5SCl+wBceKvqIAtIKmlt3TGNVbj7ZkyVWbIKa9aUXdl1VeWaXQOT UngpvwNhJ/ctEywfppmBQ9APfuqiojyTPG6zaL1FCTBg/LZ9rlL1QnKm7aIeIpXztJiG 0qkQaqA5Z6xj3YJKEI745573NetMX8xVkuZjqdxEZPthym4dXV6HlX/b3Q0IwxpdTFnz +lq3MyAFanyt5AVfF7s3zMv8hvLU2wp3bkMUqvnDLfoHM5kjBPuov9D9aFyB33ImO2c2 1gcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=mxMscfuXuobUmy56FdXlbUpvqiI08kAsY5msIXsz5Sw=; b=rvEfvuCEBOtPsmmn12L09P4dJ1Kfzgm8za/HgvW56Z3MnGe5vR2DaZJ/dhk3UHTtLp PhtEOSj5O2oJCjZKt8Zf/DvEghwyob+3A8SMg5gOMi0BFhwyY4dAqni85vfMR7rASccc uGKG4EhPWYORlcTHJOP31FlogWMW68B5EKA2pjoGmA0P6au+S90gQ8c1G9xslRRnQ9xG 5hqQkMhz+PYLmRvEGwIL20f7kGaGwGkug9cQ9FJ2OagTiBNkBF9YJb5koKkopnS6cUiG WM+7FgWXu1fjAJBDKYNDBYOT4mE7htMTdhME7+3bzEg80e6/Za6e/q7Pk+HAXdIYVLSi ZkLw== X-Gm-Message-State: AOAM531G3NKtDn80Inx7kGjXXZZrYt2pJDpBOk/TxaB8lhtU2CAmCRH0 Eo2cTVmUP0DW4EHUhUVuXXbpc6cRuoI= X-Received: by 2002:a1c:2b04:: with SMTP id r4mr20000224wmr.76.1596979408960; Sun, 09 Aug 2020 06:23:28 -0700 (PDT) Received: from eldamar (80-218-24-251.dclient.hispeed.ch. [80.218.24.251]) by smtp.gmail.com with ESMTPSA id z66sm17579993wme.16.2020.08.09.06.23.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Aug 2020 06:23:27 -0700 (PDT) Date: Sun, 9 Aug 2020 15:23:27 +0200 From: Salvatore Bonaccorso To: Jonathan Corbet Cc: Bhaskar Chowdhury , LinuxKernel , linux-doc@vger.kernel.org Subject: Documentation: build failure with sphinx >= 3.0.0: exception: cannot import name 'c_funcptr_sig_re' from 'sphinx.domains.c' (was: Re: Kernel build failed ...SPHINX extension error) Message-ID: <20200809132327.GA145573@eldamar.local> References: <20200408113705.GB1924@ArchLinux> <20200408132505.52e595bc@lwn.net> <20200408233450.GA14923@debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200408233450.GA14923@debian> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On Thu, Apr 09, 2020 at 05:04:54AM +0530, Bhaskar Chowdhury wrote: > On 13:25 Wed 08 Apr 2020, Jonathan Corbet wrote: > > On Wed, 8 Apr 2020 17:07:05 +0530 > > Bhaskar Chowdhury wrote: > > > > > Extension error: > > > Could not import extension cdomain (exception: cannot import name > > > 'c_funcptr_sig_re' from 'sphinx.domains.c' > > > (/usr/lib/python3.8/site-packages/sphinx/domains/c.py)) > > > Apr 08 16:48:46 enabling CJK for LaTeX builder > > > Apr 08 16:48:46 CC kernel/power/poweroff.o > > > make[1]: *** [Documentation/Makefile:81: htmldocs] Error 2 > > > make: *** [Makefile:1549: htmldocs] Error 2 > > > make: *** Waiting for unfinished jobs.... > > > > This is weird, to say the least. But I think the "python3.8" in the > > message above says everything you need to know. If you're running with > > an unreleased version of Python, it's not entirely surprising that you > > might run into trouble with a complex package. > > > > jon > > Thank you Jon...will investigate more and keep your suggestion in mind. The problem is actually related to changes happening in Sphinx 3.0.0. There is the followign issue filled upstream: https://github.com/sphinx-doc/sphinx/issues/7421 'c_funcptr_sig_re' was removed upstream in sphinx v3.0.0b1 and so the kernel documentation build fails. This is reproducible with a recent sphinx version (in attached case it is 3.2.0): $ make PYTHON=python3 xmldocs SPHINX xmldocs --> file:///home/build/linux/Documentation/output/xml make[2]: Nothing to be done for 'xml'. Running Sphinx v3.2.0 Extension error: Could not import extension cdomain (exception: cannot import name 'c_funcptr_sig_re' from 'sphinx.domains.c' (/usr/lib/python3/dist-packages/sphinx/domains/c.py)) make[1]: *** [Documentation/Makefile:115: xmldocs] Error 2 make: *** [Makefile:1655: xmldocs] Error 2 Distribution reports related to this issue: https://bugs.debian.org/963636 https://bugs.archlinux.org/task/66178 https://bugs.archlinux.org/task/66156 Regards, Salvatore