From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from re-prd-fep-046.btinternet.com (mailomta26-re.btinternet.com [213.120.69.119]) by sourceware.org (Postfix) with ESMTPS id 03015397241F for ; Thu, 21 May 2020 13:24:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 03015397241F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=jon.turney@dronecode.org.uk Received: from re-prd-rgout-005.btmx-prd.synchronoss.net ([10.2.54.8]) by re-prd-fep-046.btinternet.com with ESMTP id <20200521132437.CKYC4091.re-prd-fep-046.btinternet.com@re-prd-rgout-005.btmx-prd.synchronoss.net>; Thu, 21 May 2020 14:24:37 +0100 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com X-Originating-IP: [31.51.205.116] X-OWM-Source-IP: 31.51.205.116 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeduhedrudduuddgiedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpeeiudegteehfeeutddtjeefheehheeggeffffffvedugefggfeludelvedvgeeitdenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeefuddrhedurddvtdehrdduudeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurdduudejngdpihhnvghtpeefuddrhedurddvtdehrdduudeipdhmrghilhhfrhhomhepoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqecuuefqffgjpeekuefkvffokffogfdprhgtphhtthhopeeotgihghifihhnqdgrphhpshestgihghifihhnrdgtohhmqedprhgtphhtthhopeeokhgsrhhofihnsegtohhrnhgvlhhlrdgvughuqe X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.117] (31.51.205.116) by re-prd-rgout-005.btmx-prd.synchronoss.net (5.8.340) (authenticated as jonturney@btinternet.com) id 5E3A195F11B615F0; Thu, 21 May 2020 14:24:37 +0100 Subject: Re: Help needed with gobject-introspection To: "cygwin-apps@cygwin.com" References: <2c0802e9-e66c-768e-61f2-f2797acc1acb@cornell.edu> <78ad982d-8cab-323d-8bc5-682f3f2bc11f@cornell.edu> From: Jon Turney Message-ID: <7837c562-f96c-3084-40f8-1a52afcebdf5@dronecode.org.uk> Date: Thu, 21 May 2020 14:24:36 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <78ad982d-8cab-323d-8bc5-682f3f2bc11f@cornell.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, FORGED_SPF_HELO, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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: Thu, 21 May 2020 13:24:54 -0000 On 20/05/2020 15:50, Ken Brown via Cygwin-apps wrote: > On 5/19/2020 7:04 PM, Ken Brown via Cygwin-apps wrote: >> I would like to adopt gimp and related packages.  At the moment I'm >> having trouble with babl, which is needed for gegl0.4, which is needed >> for gimp.  The problem involves gobject-introspection. >> >> If I disable introspection, the build works fine.  This would be OK, >> since babl has been built without introspection for several years. >> But then the gegl0.4 build complains about the missing babl >> introspection files, so I would have to disable introspection there >> too, which hasn't been done in the past. >> >> So my preference is to figure out what the problem is and get the babl >> build working with introspection.  I'm attaching my cygport file and >> patch. >> >> Here's the failing command... >> >> /usr/bin/g-ir-scanner -I/usr/include/gobject-introspection-1.0 >> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_REENTRANT >> --no-libtool --namespace=Babl --nsversion=0.1 --warn-all --output >> babl/Babl-0.1.gir --c-include=babl.h >> '--identifier-filter-cmd=/usr/bin/python3 >> /tmp/cygbabl/babl-0.1.74-1.x86_64/src/babl-0.1.74/babl/identfilter.py' >> -DBABL_IS_BEING_COMPILED >> -I/tmp/cygbabl/babl-0.1.74-1.x86_64/src/babl-0.1.74/babl >> -I/tmp/cygbabl/babl-0.1.74-1.x86_64/src/babl-0.1.74/x86_64-pc-cygwin/babl >> -I./. -I../. -I./babl/base/. -I../babl/base/. >> --filelist=/tmp/cygbabl/babl-0.1.74-1.x86_64/src/babl-0.1.74/x86_64-pc-cygwin/babl/4170c83@@babl-0.1@sha/Babl_0.1_gir_filelist >> --cflags-begin -fno-unsafe-math-optimizations >> -Wdeclaration-after-statement -Winit-self -Wmissing-declarations >> -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -mmmx >> -msse -mfpmath=sse -I./. -I../. -I./babl/base/. -I../babl/base/. >> --cflags-end --library babl-0.1 >> -L/tmp/cygbabl/babl-0.1.74-1.x86_64/src/babl-0.1.74/x86_64-pc-cygwin/babl >> --extra-library=m --extra-library=dl --extra-library=lcms2 >> >> ...and the error message: >> >> g-ir-scanner: link: gcc -o >> /tmp/cygbabl/babl-0.1.74-1.x86_64/src/babl-0.1.74/x86_64-pc-cygwin/tmp-introspectCwCaUc/Babl-0.1.exe >> -ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 >> -fstack-protector-strong --param=ssp-buffer-size=4 >> -fdebug-prefix-map=/tmp/cygbabl/babl-0.1.74-1.x86_64/build=/usr/src/debug/babl-0.1.74-1 >> -fdebug-prefix-map=/tmp/cygbabl/babl-0.1.74-1.x86_64/src/babl-0.1.74=/usr/src/debug/babl-0.1.74-1 >> /tmp/cygbabl/babl-0.1.74-1.x86_64/src/babl-0.1.74/x86_64-pc-cygwin/tmp-introspectCwCaUc/Babl-0.1.o >> -L. -lbabl-0.1 -lm -ldl -llcms2 >> -L/tmp/cygbabl/babl-0.1.74-1.x86_64/src/babl-0.1.74/x86_64-pc-cygwin/babl >> -Wl,-rpath,/tmp/cygbabl/babl-0.1.74-1.x86_64/src/babl-0.1.74/x86_64-pc-cygwin/babl >> -lgio-2.0 -lgobject-2.0 -Wl,--export-all-symbols -lgmodule-2.0 >> -lglib-2.0 -lintl >> ERROR: can't resolve libraries to shared libraries: babl-0.1 >> >> I don't understand the error message, because the command line contains >> >> >> -L/tmp/cygbabl/babl-0.1.74-1.x86_64/src/babl-0.1.74/x86_64-pc-cygwin/babl >> >> and that directory contains libbabl-0.1.dll.a and cygbabl-0.1-0.dll. >> I even tried adding that directory to my PATH to make sure the right >> cygbabl-0.1-0.dll would be found, but that didn't help. This might possibly be related to the problem described in the comment for: https://github.com/mesonbuild/meson/pull/2880/commits/8a27c08b05e4537d5061d30ddd8aad9dc52cf1c4 > By the way, in case you're wondering why I disabled the building of > docs, it's because I was getting a build failure there too.  I don't > know if this is related to the introspection failure.  The failing > command there is > > /usr/bin/meson --internal exe --unpickle > /tmp/cygbabl/babl-0.1.74-2.x86_64/src/babl-0.1.74/x86_64-pc-cygwin/meson-private/meson_exe_env_7bf39b99114d34540b83d26a5d8f097e05882836.dat > > cp: target 'docs/index.html.tmp' is not a directory > > I don't know why it's not showing me the actual cp command that fails. I believe it's is an infelicity in meson that it doesn't echo the actual failing command here. Noted here: https://github.com/mesonbuild/meson/pull/3716#issuecomment-395746838 > The corresponding information in docs/meson.build is > > Reference_html = custom_target('Reference.html', >   input : [ >     'Reference-static.html', >     'toc', >     index_html_tmp, >   ], >   output: [ 'Reference.html', ], >   command: [ >     env_bin, >     'cp', '@INPUT0@', '@OUTPUT@', >     '&&', xml_insert, '@OUTPUT@', 'TOC', '@INPUT1@', >     '&&', xml_insert, '@OUTPUT@', 'BablBase', '@INPUT2@', >   ], >   build_by_default: true, > ) > > There are several such custom targets in the file, and for all except > this one, I see the actual cp command in the log.  This is the only one > for which meson generates a 'meson --unpickle' command instead of a cp > command. Yeah, I wasn't expecting it to use this method of executing the command line (storing it in a pickle and then using a python wrapper to execute it) to be used except on Windows, so I'll have to take a more detailed look at why that's happening.