From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by sourceware.org (Postfix) with ESMTPS id BB5C43857C52 for ; Sun, 23 May 2021 11:50:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BB5C43857C52 Received: by mail-pg1-x52b.google.com with SMTP id j12so17997600pgh.7 for ; Sun, 23 May 2021 04:50:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:in-reply-to:references :message-id:mime-version:content-transfer-encoding; bh=ZgCRiZbsSF7VovDoIOphAk/jWlvCp/cV577S10VGO7A=; b=NgAFYCnoumo7goetl0O8YTLTmHoISTdsvgFORVrVXjHeRJrDuVn9INvBSK4HIGSmeV GSmv9csJJ+rQ+zKeVEkXJ9E3AIhY5rCL68UmCsCpRSvj35hZgALkHJzL6jsjecJcrjlf ACsFCN+c60YJ4+WQQ9rUMxwop4vqrDvk+2XcDXH5tKKRgI3I7fVxyR7bcyt4378NfzjG SC93MxUX+MIYAo40vVLGVkIRY91JPVilEuK+8ChbhTiABShRNpgMmJKChcujyARHZ1OZ 4CR04qv6Fcp1l4U/7Cmweg2PHmV5QOmagHuYGPQQtNIGDNTZTmnB7me89JyN26EqBFNc 7HSg== X-Gm-Message-State: AOAM532MOhVUkMJ4E/pdWMtI7ILIBGNPW+etLmzLEcRd8M01NdxoU8QB Hq58+bYVk2+AzSX0ryMGsQUslZ2RPRg= X-Google-Smtp-Source: ABdhPJwYxANvPRdqjnNH0y33+xOgcFal+zM+qzvYVktoGwGq99Jwyiofi8FGxlckMHmZEZ3iSGo6kg== X-Received: by 2002:a65:624b:: with SMTP id q11mr8197198pgv.375.1621770644830; Sun, 23 May 2021 04:50:44 -0700 (PDT) Received: from [172.21.0.1] ([2400:2411:aa20:4300:1920:3592:efb3:a15a]) by smtp.gmail.com with ESMTPSA id n11sm9162596pff.96.2021.05.23.04.50.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 May 2021 04:50:44 -0700 (PDT) Date: Sun, 23 May 2021 20:50:44 +0900 From: Lemures Lemniscati To: cygwin-apps@cygwin.com Subject: Re: g-ir-scanner fails with python-3.8 In-Reply-To: <1ecfeafa-52f8-7673-c166-6c386fd5ca51@SystematicSw.ab.ca> References: <20210523084421.9873.50F79699@gmail.com> <1ecfeafa-52f8-7673-c166-6c386fd5ca51@SystematicSw.ab.ca> Message-Id: <20210523205042.875C.50F79699@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: Becky! ver. 2.75.04 [ja] X-Antivirus: Avast (VPS 210523-0, 2021/05/23), Outbound message X-Antivirus-Status: Clean X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin-apps@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin package maintainer discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 May 2021 11:50:47 -0000 On Sun, 23 May 2021 00:00:25 -0600, Brian Inglis > On 2021-05-22 17:44, Lemures Lemniscati via Cygwin-apps wrote: > > On Wed, 19 May 2021 22:09:59 +0100, Jon Turney > >> On 19/05/2021 20:32, Ken Brown via Cygwin-apps wrote: > >>> Trying to build harfbuzz, I get the following python failure with > >>> python-3.8 > >>> > >>> Traceback (most recent call last): > > .... > >>>   File "/usr/lib/gobject-introspection/giscanner/xmlwriter.py", line > >>> 46, in > >>>     from giscanner._giscanner import collect_attributes > >>> ImportError: dynamic module does not define module export function > >>> (PyInit__giscanner) > >> > >> This a problem with the gobject-introspection package. > >> > >> _giscanner.dll is linked with python2, but the shbang names 'python', which is now python3. > >> > >> I have been working on rebuilding this package, but not quite there yet. > >> > >> You can work around this by fixing the shebang in /usr/bin/g-ir-scanner to explicitly name python3. > > > > > > Here are patches... > > > > * 0002-gobject-introspection-1.54.1-4.patch: > > python3.8 is used explicitly. > > Shebangs of g-ir-doc-tool and g-ir-scanner are '/usr/bin/env python3.8' > > _giscanner.dll is linked with libpython3.8.dll > > > > * 0001-Fix-a-patch-for-giscanner-shlibs.py-to-pass-a-pep8-c.patch: > > This has no effect while building. > > But needed in order to avoid an error in a test > > cygport gobject-introspection.cygport test > > > > And with them, following build and test by cygport has succeeded > > both in x86_64 and i686, on my local machine. > > > > cygport gobject-introspection.cygport download finish all test > > > > > > But on scallywag, only x86_64 build is successful: > > https://cygwin.com/cgi-bin2/jobs.cgi?id=2841 > > I question the definition successful when both logs contain GICOMP syntax errors > which appear non-fatal and non-terminal: > > i686: > > GICOMP /cygdrive/c/projects/playground/gobject-introspection-1.54.1-4.i686/src/gobject-introspection-1.54.1/gir/GL-1.0.gir > /usr/lib/gcc/i686-pc-cygwin/10/include/stddef.h:424: syntax error, unexpected identifier in ' __float128 __max_align_f128 __attribute__((__aligned__(__alignof(__float128))));' at '__float128' > > x86_64: > > GISCAN GModule-2.0.gir > /usr/include/glib-2.0/gobject/gobject-autocleanups.h:24: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GClosure *GClosure_autoptr;' at 'GClosure_autoptr' > /usr/include/glib-2.0/gobject/gobject-autocleanups.h:25: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GObject *GObject_autoptr;' at 'GObject_autoptr' > /usr/include/glib-2.0/gobject/gobject-autocleanups.h:26: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GInitiallyUnowned *GInitiallyUnowned_autoptr;' at 'GInitiallyUnowned_autoptr' > g-ir-scanner: GModule: warning: 2 warnings suppressed (use --warn-all to see them) > GICOMP GModule-2.0.gir > g-ir-scanner: GObject: warning: 19 warnings suppressed (use --warn-all to see them) > GICOMP /cygdrive/c/projects/playground/gobject-introspection-1.54.1-4.x86_64/src/gobject-introspection-1.54.1/gir/DBusGLib-1.0.gir > GISCAN Gio-2.0.gir > GISCAN GIRepository-2.0.gir > GICOMP GObject-2.0.gir > /usr/include/glib-2.0/gio/gio-autocleanups.h:24: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GAction *GAction_autoptr;' at 'GAction_autoptr' > /usr/include/glib-2.0/gio/gio-autocleanups.h:25: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GActionMap *GActionMap_autoptr;' at 'GActionMap_autoptr' > /usr/include/glib-2.0/gio/gio-autocleanups.h:26: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GAppInfo *GAppInfo_autoptr;' at 'GAppInfo_autoptr' > /usr/include/glib-2.0/gio/gio-autocleanups.h:27: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GAppLaunchContext *GAppLaunchContext_autoptr;' at 'GAppLaunchContext_autoptr' > /usr/include/glib-2.0/gio/gio-autocleanups.h:28: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GAppInfoMonitor *GAppInfoMonitor_autoptr;' at 'GAppInfoMonitor_autoptr' > /usr/include/glib-2.0/gio/gio-autocleanups.h:29: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GApplicationCommandLine *GApplicationCommandLine_autoptr;' at 'GApplicationCommandLine_autoptr' > ... > > totalling 130 instances - includes/definitions missing? > > -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada Oh, I overlooked them. I looked into a log corresponding to the current version 1.54.1-3 [1]. [1]: https://cygwin.com/cgi-bin2/jobs.cgi?srcpkg=gobject-introspection&id=2763 * i686: No syntax error related to '__float128' [2] at gobject-introspection-1.54.1/gir/GL-1.0.gir. So, it is newly introduced [2]: https://ci.appveyor.com/project/cygwin/scallywag/builds/39168275/job/11sd0x8ywqfe3v2c#L1456 * x86_64: There are similar errors ('unexpected typedef-name') already [3]. [3]: https://ci.appveyor.com/project/cygwin/scallywag/builds/39168275/job/4637hbqdc6b6htvj#L1476 But I've no idea... Lem