From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.12]) by sourceware.org (Postfix) with ESMTPS id 9714A3857C52 for ; Sun, 23 May 2021 06:00:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9714A3857C52 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=brian.inglis@systematicsw.ab.ca Received: from [192.168.1.104] ([68.147.0.90]) by shaw.ca with ESMTP id khA1ltwUKycp5khA2lHMfx; Sun, 23 May 2021 00:00:26 -0600 X-Authority-Analysis: v=2.4 cv=H864f8Ui c=1 sm=1 tr=0 ts=60a9ef7a a=T+ovY1NZ+FAi/xYICV7Bgg==:117 a=T+ovY1NZ+FAi/xYICV7Bgg==:17 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=srm7gmjjAAAA:8 a=VUn_Jsy4jMUumIPVK2oA:9 a=QEXdDO2ut3YA:10 a=sRI3_1zDfAgwuvI8zelB:22 a=LYwJG3PkshbpebU8YZOc:22 Reply-To: cygwin-apps@cygwin.com To: cygwin-apps@cygwin.com References: <32e99f35-dff1-5374-6410-2c5b34879bfc@dronecode.org.uk> <20210523084421.9873.50F79699@gmail.com> From: Brian Inglis Organization: Systematic Software Subject: Re: g-ir-scanner fails with python-3.8 Message-ID: <1ecfeafa-52f8-7673-c166-6c386fd5ca51@SystematicSw.ab.ca> Date: Sun, 23 May 2021 00:00:25 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <20210523084421.9873.50F79699@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfGbx0cqCmO5cSwOVW4oJxYBzItioG6YrTb9/RK548li/G07NKF8UEbBIthwdEwnjLbVmLUYFpe/s7NwS+rB4CiyiMAob8LV9FwdIn0ICkbwJxPbTkp6l TOmQHDeSSpDwkhp1bR8ewpcBDD/+Ybm/0yol32TxnrL0WQ8F6qfO5/ZG2yiSJRAqznXpzdLkNmuegP0Qj1lb7NcWYCcLbaYxGiE= X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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 06:00:30 -0000 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' /usr/include/glib-2.0/gio/gio-autocleanups.h:30: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GApplication *GApplication_autoptr;' at 'GApplication_autoptr' /usr/include/glib-2.0/gio/gio-autocleanups.h:31: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GAsyncInitable *GAsyncInitable_autoptr;' at 'GAsyncInitable_autoptr' /usr/include/glib-2.0/gio/gio-autocleanups.h:32: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GAsyncResult *GAsyncResult_autoptr;' at 'GAsyncResult_autoptr' /usr/include/glib-2.0/gio/gio-autocleanups.h:33: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GBufferedInputStream *GBufferedInputStream_autoptr;' at 'GBufferedInputStream_autoptr' /usr/include/glib-2.0/gio/gio-autocleanups.h:34: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GBufferedOutputStream *GBufferedOutputStream_autoptr;' at 'GBufferedOutputStream_autoptr' /usr/include/glib-2.0/gio/gio-autocleanups.h:35: syntax error, unexpected typedef-name, expecting identifier or '(' in 'typedef GBytesIcon *GBytesIcon_autoptr;' at 'GBytesIcon_autoptr' ... totalling 130 instances - includes/definitions missing? -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.]