Bug 1393606 - [mingw32-msys2] Error compiling libvirt-glib
Summary: [mingw32-msys2] Error compiling libvirt-glib
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt-glib
Version: unspecified
Hardware: x86_64
OS: Windows
unspecified
high
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-10 00:19 UTC by a.letterer
Modified: 2020-04-16 17:34 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-16 17:34:52 UTC


Attachments (Terms of Use)
Logfile compiling (18.37 KB, text/plain)
2016-11-10 00:19 UTC, a.letterer
no flags Details

Description a.letterer 2016-11-10 00:19:13 UTC
Created attachment 1219116 [details]
Logfile compiling

Description of problem:
Libvirt-glib does not compile here under Windows with MinGW32 MSYS2 environment. Libvirt itself compiles. It always gets stuck at GIR Task
GISCAN   LibvirtGLib-1.0.gir


Version-Release number of selected component (if applicable):
1.0.0

How reproducible:
I could reproduce it on my side

Steps to Reproduce:
1. install libvirt
2. make package with makepkg
3. get error message

Actual results:
Fatal error: can't create tmp-introspectkjaw8g/download/portablexdr/MINGW-packages/mingw-w64-libvirt-glib/src/build-x86_64-w64-mingw32/libvirt-glib/tmp-introspectkjaw8g/LibvirtGLib-1.0.o: No such file or directory
D:/download/portablexdr/MINGW-packages/mingw-w64-libvirt-glib/src/build-x86_64-w64-mingw32/libvirt-glib/tmp-introspectkjaw8g/LibvirtGLib-1.0.c:616:1: fatal error: error writing to -: Invalid argument
 }
 ^
compilation terminated.
Traceback (most recent call last):
  File "C:/msys64/mingw64/bin/g-ir-scanner", line 66, in <module>                                                           sys.exit(scanner_main(sys.argv))

Problem is here, that path could not be found:
tmp-introspectkjaw8g/download/portablexdr/MINGW-packages/mingw-w64-libvirt-glib...

Expected results:

From my point of view path should be:
/d/download/portablexdr/MINGW-packages/mingw-w64-libvirt-glib...



Additional info:
So question is how to fix that.
Issue is in following component
/mingw64/share/gobject-introspection-1.0/Makefile.introspection

Could you please help how I could change LibvirtGLib-1.0.gir.files or how is the interaction with gobject-introspection? Thank you in advance

Comment 1 a.letterer 2016-11-10 00:29:09 UTC
That seems to be the place
$(_gir_silent_compiler) $(INTROSPECTION_COMPILER) $(INTROSPECTION_COMPILER_ARGS) --includedir=. $(1) -o $(2)

Comment 2 Daniel Berrangé 2020-04-16 17:34:52 UTC
Closing old bug, since I see sucessful builds of libvirt-glib in the msys project that post-date this.


Note You need to log in before you can comment on or make changes to this bug.