Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libpanel fails with --enable-gi #1463

Open
danyeaw opened this issue Oct 19, 2024 · 0 comments
Open

libpanel fails with --enable-gi #1463

danyeaw opened this issue Oct 19, 2024 · 0 comments

Comments

@danyeaw
Copy link
Member

danyeaw commented Oct 19, 2024

Could be related to: mesonbuild/meson#12850

gvsbuild --enable-gi libpanel

2024-10-19 09:45:15 Building project libpanel (1.8.1) ...
2024-10-19 09:45:15 running ninja install, cwd=C:\gtk-build\build\x64\release\libpanel_gvsbuild-meson, path+=None
[1/3] Generating src/Panel-1.gir with a custom command (wrapped by meson to set PATH, to set env)
FAILED: src/Panel-1.gir
"C:\Users\dan\AppData\Local\pypoetry\Cache\virtualenvs\gvsbuild-JHVV56Cc-py3.12\Scripts\python.exe" "C:\gtk-build\tools\meson-1.5.2\meson.py" "--internal" "exe" "--unpickle" "C:\gtk-build\build\x64\release\libpanel_gvsbuild-meson\meson-private\meson_exe_python.exe_d94fe315b906d3d4e351be23acd4f45f1f6bd0a5.dat"
while executing ['C:\Users\dan\AppData\Local\pypoetry\Cache\virtualenvs\gvsbuild-JHVV56Cc-py3.12\Scripts\python.exe', 'C:/gtk-build/gtk/x64/release/bin/../bin/g-ir-scanner', '--quiet', '--no-libtool', '--namespace=Panel', '--nsversion=1', '--warn-all', '--output', 'src/Panel-1.gir', '--c-include=libpanel.h', '-IC:/gtk-build/build/x64/release/libpanel/src', '-IC:/gtk-build/build/x64/release/libpanel/_gvsbuild-meson/src', '--filelist=C:/gtk-build/build/x64/release/libpanel/_gvsbuild-meson/src/panel-1-1.dll.p/Panel_1_gir_filelist', '-LC:/gtk-build/build/x64/release/libpanel/_gvsbuild-meson/src', '-LC:/gtk-build/gtk/x64/release/bin/../lib', '--extra-library=panel-1', '--include=Gtk-4.0', '--include=Adw-1', '--symbol-prefix=panel', '--identifier-prefix=Panel', '--pkg-export=libpanel-1', '--cflags-begin', '-DLIBPANEL_COMPILATION', '-DG_LOG_DOMAIN="libpanel"', '-IC:/gtk-build/gtk/x64/release/bin/../include', '-IC:/gtk-build/gtk/x64/release/bin/../include/glib-2.0', '-IC:/gtk-build/gtk/x64/release/bin/../lib/glib-2.0/include', '-IC:/gtk-build/gtk/x64/release/bin/../include/gtk-4.0', '-IC:/gtk-build/gtk/x64/release/bin/../include/pango-1.0', '-IC:/gtk-build/gtk/x64/release/bin/../include/fribidi', '-IC:/gtk-build/gtk/x64/release/bin/../include/gdk-pixbuf-2.0', '-IC:/gtk-build/gtk/x64/release/bin/../include/cairo', '-IC:/gtk-build/gtk/x64/release/bin/../include/freetype2', '-IC:/gtk-build/gtk/x64/release/bin/../include/libpng16', '-IC:/gtk-build/gtk/x64/release/bin/../include/harfbuzz', '-IC:/gtk-build/gtk/x64/release/bin/../include/pixman-1', '-IC:/gtk-build/gtk/x64/release/bin/../include/graphene-1.0', '-IC:/gtk-build/gtk/x64/release/bin/../lib/graphene-1.0/include', '-IC:/gtk-build/gtk/x64/release/bin/../include/libadwaita-1', '-IC:/gtk-build/gtk/x64/release/bin/../include/gobject-introspection-1.0', '--cflags-end', '-IC:/gtk-build/build/x64/release/libpanel/src/.', '-IC:/gtk-build/build/x64/release/libpanel/_gvsbuild-meson/src/.', '--add-include-path=C:/gtk-build/gtk/x64/release/bin/../share/gir-1.0', '--add-include-path=C:/gtk-build/build/x64/release/libpanel/src/.', '--add-include-path=C:/gtk-build/build/x64/release/libpanel/_gvsbuild-meson/src/.', '-LC:/gtk-build/build/x64/release/libpanel/_gvsbuild-meson/src', '--library', 'panel-1', '-LC:/gtk-build/gtk/x64/release/bin/../lib', '-LC:/gtk-build/gtk/x64/release/bin/../lib', '--extra-library=gio-2.0', '--extra-library=gobject-2.0', '--extra-library=glib-2.0', '--extra-library=intl', '--extra-library=gtk-4', '--extra-library=pangocairo-1.0', '--extra-library=pangowin32-1.0', '--extra-library=pango-1.0', '--extra-library=gdk_pixbuf-2.0', '--extra-library=cairo-gobject', '--extra-library=cairo', '--extra-library=harfbuzz', '--extra-library=graphene-1.0', '--extra-library=adwaita-1', '--extra-library=girepository-1.0', '--sources-top-dirs', 'C:/gtk-build/build/x64/release/libpanel/', '--sources-top-dirs', 'C:/gtk-build/build/x64/release/libpanel/_gvsbuild-meson/']
--- stdout ---
Panel-1.c
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(804): error C2017: illegal escape sequence
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(804): error C2015: too many characters in constant
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(804): error C2143: syntax error: missing ')' before 'constant'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(804): error C2198: 'void g_assertion_message(const char *,const char *,int,const char *,const char *)': too few arguments for call
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(804): error C2001: newline in constant
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(807): error C2017: illegal escape sequence
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(807): error C2015: too many characters in constant
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(807): error C2143: syntax error: missing ')' before 'constant'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(807): error C2198: 'void g_assertion_message(const char *,const char *,int,const char ,const char )': too few arguments for call
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(807): error C2001: newline in constant
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(841): error C2065: 'weak_pointer_location': undeclared identifier
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(841): warning C4022: 'g_object_remove_weak_pointer': pointer mismatch for actual parameter 2
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(842): error C2065: 'weak_pointer_location': undeclared identifier
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(842): error C2100: you cannot dereference an operand of type 'int'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(842): warning C4047: '=': 'int' differs in levels of indirection from 'void '
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(889): error C2059: syntax error: 'type'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(900): error C2065: 'old_object': undeclared identifier
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(900): error C2065: 'new_object': undeclared identifier
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(901): warning C4098: 'g_assert_finalize_object': 'void' function returning a value
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(903): error C2065: 'old_object': undeclared identifier
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(903): warning C4047: '!=': 'int' differs in levels of indirection from 'void '
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(904): error C2065: 'old_object': undeclared identifier
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(904): warning C4047: 'function': 'GObject ' differs in levels of indirection from 'int'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(904): warning C4024: 'g_object_remove_weak_pointer': different types for formal and actual parameter 1
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(904): error C2065: 'weak_pointer_location': undeclared identifier
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(904): warning C4022: 'g_object_remove_weak_pointer': pointer mismatch for actual parameter 2
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(906): error C2065: 'weak_pointer_location': undeclared identifier
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(906): error C2100: you cannot dereference an operand of type 'int'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(906): error C2065: 'new_object': undeclared identifier
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(908): error C2065: 'new_object': undeclared identifier
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(908): warning C4047: '!=': 'int' differs in levels of indirection from 'void '
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(909): error C2065: 'new_object': undeclared identifier
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(909): warning C4047: 'function': 'GObject ' differs in levels of indirection from 'int'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(909): warning C4024: 'g_object_add_weak_pointer': different types for formal and actual parameter 1
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(909): error C2065: 'weak_pointer_location': undeclared identifier
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(909): warning C4022: 'g_object_add_weak_pointer': pointer mismatch for actual parameter 2
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(911): warning C4098: 'g_assert_finalize_object': 'void' function returning a value
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(920): warning C4116: unnamed type definition in parentheses
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(920): error C2059: syntax error: ''
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(922): warning C4116: unnamed type definition in parentheses
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(923): error C2059: syntax error: '}'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(926): error C2143: syntax error: missing ')' before '
'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(926): error C2143: syntax error: missing '{' before '
'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(927): error C2040: 'gpointer': 'int' differs in levels of indirection from 'void '
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(927): error C2146: syntax error: missing ';' before identifier 'object'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(927): error C2059: syntax error: ')'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(929): error C2143: syntax error: missing ')' before '
'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(929): error C2143: syntax error: missing '{' before '
'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(929): error C2059: syntax error: ')'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(931): error C2143: syntax error: missing ')' before '
'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(931): error C2143: syntax error: missing '{' before '
'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(931): error C2059: syntax error: ')'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(933): error C2143: syntax error: missing ')' before '
'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(933): error C2143: syntax error: missing '{' before '
'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(934): error C2040: 'gpointer': 'int' differs in levels of indirection from 'void *'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(934): error C2146: syntax error: missing ';' before identifier 'object'
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject/gobject.h(934): error C2059: syntax error: ')'
C:\gtk-build\build\x64\release\libpanel_gvsbuild-meson\tmp-introspectd3z192wh\Panel-1.c(123): error C2017: illegal escape sequence
C:\gtk-build\build\x64\release\libpanel_gvsbuild-meson\tmp-introspectd3z192wh\Panel-1.c(123): error C2001: newline in constant
C:\gtk-build\build\x64\release\libpanel_gvsbuild-meson\tmp-introspectd3z192wh\Panel-1.c(124): error C2146: syntax error: missing ')' before identifier 'g_clear_error'
C:\gtk-build\build\x64\release\libpanel_gvsbuild-meson\tmp-introspectd3z192wh\Panel-1.c(123): error C2198: 'void g_log(const gchar *,GLogLevelFlags,const gchar *,...)': too few arguments for call
C:\gtk-build\build\x64\release\libpanel_gvsbuild-meson\tmp-introspectd3z192wh\Panel-1.c(138): error C2017: illegal escape sequence
C:\gtk-build\build\x64\release\libpanel_gvsbuild-meson\tmp-introspectd3z192wh\Panel-1.c(138): error C2001: newline in constant
C:\gtk-build\build\x64\release\libpanel_gvsbuild-meson\tmp-introspectd3z192wh\Panel-1.c(139): error C2146: syntax error: missing ')' before identifier 'g_clear_error'
C:\gtk-build\build\x64\release\libpanel_gvsbuild-meson\tmp-introspectd3z192wh\Panel-1.c(138): error C2198: 'void g_log(const gchar *,GLogLevelFlags,const gchar *,...)': too few arguments for call
--- stderr ---
Microsoft (R) C/C++ Optimizing Compiler Version 19.41.34120 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
g-ir-cpp-_8hc5si6.c
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject\gobject.h:804: unexpected character \' C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject\gobject.h:804: syntax error, unexpected CHARACTER, expecting ')' or ',' in ' do { if ((((g_type_check_instance_is_fundamentally_a ((GTypeInstance*) ((weak_pointer)), (((GType) ((20) << (2))))))))) ; else g_assertion_message (\"libpanel\", __FILE__, __LINE__, G_STRFUNC, "'" �� "' should be (!(0))"); } G_STMT_END;' at ''" �� "'' C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject\gobject.h:804: unexpected character '
C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject\gobject.h:804: unexpected character \' C:\gtk-build\gtk\x64\release\include\glib-2.0\gobject\gobject.h:804: unexpected character '
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant