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

Cannot build libsoup-3.6.0 #6

Open
Erriez opened this issue Oct 27, 2024 · 7 comments
Open

Cannot build libsoup-3.6.0 #6

Erriez opened this issue Oct 27, 2024 · 7 comments

Comments

@Erriez
Copy link
Contributor

Erriez commented Oct 27, 2024

Building libsoup-3.6.0 with Meson v1.6.0 results in: meson: error: unrecognized arguments: --fhead #pragma once.

Started from Visual Studio 2022 x64 Native Tools Command Prompt on Windows 11:

cd C:\data\projects\strawberry\strawberry-msvc 

git log
commit ea0c4c786691ffd410cd98e248e84f2ba75e7ac5 (HEAD -> master, origin/master, origin/HEAD)
Date:   Sun Oct 27 01:33:33 2024 +0200

git status
no changes

Build started from empty directories:
- C:\strawberry_msvc_x86_64_release
- C:\data\projects\strawberry\msvc_\build_release

.\build.bat release
...
c:\data\projects\strawberry\msvc_\build_release>if not exist "libsoup-3.6.0" 7z x "c:\data\projects\strawberry\msvc_\downloads\libsoup-3.6.0.tar.xz" -so   | 7z x -aoa -si"libsoup-3.6.0.tar"   || goto end

7-Zip 22.01 (x64) : Copyright (c) 1999-2022 Igor Pavlov : 2022-07-15


Extracting archive: libsoup-3.6.0.tar
--
Path = libsoup-3.6.0.tar
Type = tar
Code Page = UTF-8
Characteristics = ASCII

Everything is Ok

Folders: 27
Files: 395
Size:       5201985
Compressed: 654336

c:\data\projects\strawberry\msvc_\build_release>cd "libsoup-3.6.0"   || goto end

c:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0>if not exist "build\build.ninja" meson setup --buildtype="release" --default-library=shared --prefix="c:/strawberry_msvc_x86_64_release" --pkg-config-path="c:/strawberry_msvc_x86_64_release/lib/pkgconfig" --wrap-mode=nodownload -Dtests=false -Dvapi=disabled -Dgssapi=disabled -Dintrospection=disabled -Dtests=false -Dsysprof=disabled -Dtls_check=false build   || goto end
The Meson build system
Version: 1.6.0
Source dir: C:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0
Build dir: C:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0\build
Build type: native build
Project name: libsoup
Project version: 3.6.0
DEPRECATION: None of the values ['gnu99'] are supported by the c compiler.
However, the deprecated gnu99 std currently falls back to c99.
This will be an error in meson 2.0.
If the project supports both GNU and MSVC compilers, a value such as
"c_std=gnu11,c11" specifies that GNU is preferred but it can safely fallback to plain c11.
C compiler for the host machine: cl (msvc 19.41.34123 "Microsoft (R) C/C++ Optimizing Compiler Version 19.41.34123 for x64")
C linker for the host machine: link link 14.41.34123.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments /utf-8: YES
Found pkg-config: YES (c:\strawberry_msvc_x86_64_release\bin\pkg-config.EXE) 2.3.0
Run-time dependency glib-2.0 found: YES 2.82.2
Run-time dependency gmodule-no-export-2.0 found: YES 2.82.2
Run-time dependency gobject-2.0 found: YES 2.82.2
Run-time dependency gio-2.0 found: YES 2.82.2
Run-time dependency libnghttp2 found: YES 1.64.0
Run-time dependency sqlite3 found: YES 3.38.1
Run-time dependency libbrotlidec found: YES 1.1.0
Found CMake: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE (3.29.5)
Run-time dependency gio-unix-2.0 found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency gio-unix-2.0
Neither a subproject directory nor a glib.wrap file was found.
Subproject  glib is buildable: NO (disabling)
Dependency gio-unix-2.0 from subproject glib found: NO (subproject failed to configure)
Library ws2_32 found: YES
Run-time dependency libpsl found: YES 0.21.5
Checking for function "gmtime_r" : NO
Dependency sysprof-capture-4 skipped: feature sysprof disabled
Run-time dependency zlib found: YES 1.3.1
Program apachectl /sbin/apachectl /usr/sbin/apachectl found: NO
Program httpd2 httpd apache2 apache /sbin/httpd2 /sbin/httpd /sbin/apache2 /sbin/apache /usr/sbin/httpd2 /usr/sbin/httpd /usr/sbin/apache2 /usr/sbin/apache found: NO
Run-time dependency gnutls found: YES 3.8.7
meson.build:296: WARNING: Some regression tests will not be compiled due to missing libraries or modules. Please check the logs for more details.
Library gssapi64 skipped: feature gssapi disabled
Program g-ir-scanner skipped: feature introspection disabled
Compiler for language vala skipped: feature vapi disabled
Configuring config.h using configuration
Program generate-version-header.py found: YES (C:\Program Files\Meson\meson.exe runpython C:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0\libsoup\generate-version-header.py)
Configuring soup-version.h with command
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program c:/strawberry_msvc_x86_64_release/bin/glib-mkenums found: YES (C:\Program Files\Meson\meson.exe c:/strawberry_msvc_x86_64_release/bin\glib-mkenums)
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program c:/strawberry_msvc_x86_64_release/bin/glib-mkenums found: YES (C:\Program Files\Meson\meson.exe c:/strawberry_msvc_x86_64_release/bin\glib-mkenums)
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program c:/strawberry_msvc_x86_64_release/bin/glib-mkenums found: YES (C:\Program Files\Meson\meson.exe c:/strawberry_msvc_x86_64_release/bin\glib-mkenums)
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program c:/strawberry_msvc_x86_64_release/bin/glib-mkenums found: YES (C:\Program Files\Meson\meson.exe c:/strawberry_msvc_x86_64_release/bin\glib-mkenums)
Program xgettext found: NO
Compiler for C supports arguments -fsanitize=fuzzer,address,undefined: NO
Found CMake: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE (3.29.5)
Build-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency gi-docgen
Automatic wrap-based subproject downloading is disabled
Subproject  gi-docgen is buildable: NO (disabling)
Dependency gi-docgen from subproject gi-docgen found: NO (subproject failed to configure)
docs\reference\meson.build:23: WARNING: Documentation will not be built as introspection was disabled
Build targets in project: 9

libsoup 3.6.0

  Directories
    prefix                : c:/strawberry_msvc_x86_64_release
    libdir                : lib
    datadir               : share

  Features
    GSSAPI                : false
    NTLM                  : false
    Brotli                : true
    Translations          : false
    GIR                   : false
    VAPI                  : false
    Documentation         : false

  Testing
    All tests             : false
    Tests requiring Apache: false
    Documentation tests   : false
    Fuzzing tests         : false
    Autobahn tests        : false
    PKCS #11 tests        : true
    Install tests         : false
    Unix sockets          : false

  Subprojects
    gi-docgen             : NO Automatic wrap-based subproject downloading is disabled
    glib                  : NO Neither a subproject directory nor a glib.wrap file was found.

  User defined options
    buildtype             : release
    default_library       : shared
    gssapi                : disabled
    introspection         : disabled
    pkg_config_path       : c:/strawberry_msvc_x86_64_release/lib/pkgconfig
    prefix                : c:/strawberry_msvc_x86_64_release
    sysprof               : disabled
    tests                 : false
    tls_check             : false
    vapi                  : disabled
    wrap_mode             : nodownload

Found ninja-1.12.1 at "C:\Program Files\Meson\ninja.EXE"

c:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0>cd build   || goto end

c:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0\build>ninja   || goto end
[1/171] Generating GObject enum file libsoup/soup-private-...eson because command contains newlines, to capture output)
FAILED: libsoup/soup-private-enum-types.h
"C:\Program Files\Meson\meson.exe" "--internal" "exe" "--unpickle" "C:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0\build\meson-private\meson_exe_Program_847ec9fbfd621fcc3fd76209f575ef01a84a4876.dat"
while executing ['C:\\Program', 'Files/Meson/meson.exe', 'c:/strawberry_msvc_x86_64_release/bin/glib-mkenums', '--fhead', '#pragma once\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n', '--fprod', '\n/* enumerations from "@basename@" */\n', '--vhead', '\nGType @enum_name@_get_type (void);\n#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type())', '--ftail', '\nG_END_DECLS', 'C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-connection.h']
--- stderr ---
usage: meson [-h]
             {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,reprotest,format,fmt,help} ...
meson: error: unrecognized arguments: --fhead #pragma once

#include <glib-object.h>

G_BEGIN_DECLS
 --fprod
/* enumerations from "@basename@" */
 --vhead
GType @enum_name@_get_type (void);
#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type()) --ftail
G_END_DECLS C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-connection.h

[2/171] Generating GObject enum file libsoup/soup-enum-types.h (wrapped by meson to capture output)
FAILED: libsoup/soup-enum-types.h
"C:\Program Files\Meson\meson.exe" "--internal" "exe" "--capture" "libsoup\soup-enum-types.h" "--" "C:\Program" "Files/Meson/meson.exe" "c:/strawberry_msvc_x86_64_release/bin/glib-mkenums" "--template" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-enum-types.h.template" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/auth/soup-auth.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/auth/soup-auth-manager.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cache/soup-cache.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/content-decoder/soup-content-decoder.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/content-sniffer/soup-content-sniffer.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie-jar.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie-jar-db.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie-jar-text.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/hsts/soup-hsts-enforcer.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/hsts/soup-hsts-enforcer-db.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/hsts/soup-hsts-policy.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-auth-domain.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-auth-domain-basic.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-auth-domain-digest.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-message-body.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-server.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-server-message.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-connection.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-extension.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-extension-deflate.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-extension-manager.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-date-utils.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-form.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-headers.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-logger.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-message.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-message-headers.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-message-metrics.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-method.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-multipart.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-multipart-input-stream.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-session.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-session-feature.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-status.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-tld.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-types.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-uri-utils.h"
--- stderr ---
usage: meson [-h]
             {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,reprotest,format,fmt,help} ...
meson: error: unrecognized arguments: --template C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-enum-types.h.template C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/auth/soup-auth.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/auth/soup-auth-manager.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cache/soup-cache.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/content-decoder/soup-content-decoder.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/content-sniffer/soup-content-sniffer.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie-jar.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie-jar-db.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie-jar-text.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/hsts/soup-hsts-enforcer.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/hsts/soup-hsts-enforcer-db.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/hsts/soup-hsts-policy.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-auth-domain.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-auth-domain-basic.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-auth-domain-digest.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-message-body.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-server.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-server-message.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-connection.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-extension.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-extension-deflate.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-extension-manager.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-date-utils.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-form.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-headers.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-logger.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-message.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-message-headers.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-message-metrics.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-method.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-multipart.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-multipart-input-stream.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-session.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-session-feature.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-status.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-tld.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-types.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-uri-utils.h

[3/171] Generating GObject enum file libsoup/soup-private-...eson because command contains newlines, to capture output)
FAILED: libsoup/soup-private-enum-types.c
"C:\Program Files\Meson\meson.exe" "--internal" "exe" "--unpickle" "C:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0\build\meson-private\meson_exe_Program_7a99bb4880c777dc8a0b10a30f3c9e73f140e426.dat"
while executing ['C:\\Program', 'Files/Meson/meson.exe', 'c:/strawberry_msvc_x86_64_release/bin/glib-mkenums', '--fhead', '#include "soup-private-enum-types.h"\n#include "soup-connection.h"\n\n#define C_ENUM(v) ((gint) v)\n#define C_FLAGS(v) ((guint) v)\n', '--fprod', '\n/* enumerations from "@basename@" */\n', '--vhead', '\nGType\n@enum_name@_get_type (void)\n{\n    static gsize gtype_id = 0;\n    static const G@Type@Value values[] = {', '--vprod', '        { C_@TYPE@ (@VALUENAME@), "@VALUENAME@", "@valuenick@" },', '--vtail', '        { 0, NULL, NULL }\n    };\n    if (g_once_init_enter (&gtype_id)) {\n        GType new_type = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);\n        g_once_init_leave (&gtype_id, new_type);\n    }\n    return (GType) gtype_id;\n}', 'C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-connection.h']
--- stderr ---
usage: meson [-h]
             {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,reprotest,format,fmt,help} ...
meson: error: unrecognized arguments: --fhead #include "soup-private-enum-types.h"
#include "soup-connection.h"

#define C_ENUM(v) ((gint) v)
#define C_FLAGS(v) ((guint) v)
 --fprod
/* enumerations from "@basename@" */
 --vhead
GType
@enum_name@_get_type (void)
{
    static gsize gtype_id = 0;
    static const G@Type@Value values[] = { --vprod         { C_@TYPE@ (@VALUENAME@), "@VALUENAME@", "@valuenick@" }, --vtail         { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
} C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-connection.h

ninja: build stopped: subcommand failed.

Any suggestions?

@jonaski
Copy link
Member

jonaski commented Oct 27, 2024

Pretty sure I've run into this one before too, to me it looks like it's splitting the meson path: ['C:\\Program', 'Files/Meson/meson.exe', try uninstalling meson and installing it in c:\meson
From what I remember the old path is cached somewhere in the installed files too so I suspect you need to either start over, or at least rebuild glib too.

@Erriez
Copy link
Contributor Author

Erriez commented Oct 27, 2024

Thanks for your fast reply. I've uninstalled and re-installed into C:\Meson as you suggested and removed directories C:\data\projects\strawberry\ and c:\strawberry_msvc_x86_64_release\, then restarted downloaded.bat and build.bat.

Output errors:

  • meson: error: unrecognized arguments: --fhead #include "soup-private-enum-types.h"
  • meson: error: unrecognized arguments: --fhead #pragma once
.\build.bat release
...
Extracting archive: libsoup-3.6.0.tar
--
Path = libsoup-3.6.0.tar
Type = tar
Code Page = UTF-8
Characteristics = ASCII

Everything is Ok

Folders: 27
Files: 395
Size:       5201985
Compressed: 654336

c:\data\projects\strawberry\msvc_\build_release>cd "libsoup-3.6.0"   || goto end

c:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0>if not exist "build\build.ninja" meson setup --buildtype="release" --default-library=shared --prefix="c:/strawberry_msvc_x86_64_release" --pkg-config-path="c:/strawberry_msvc_x86_64_release/lib/pkgconfig" --wrap-mode=nodownload -Dtests=false -Dvapi=disabled -Dgssapi=disabled -Dintrospection=disabled -Dtests=false -Dsysprof=disabled -Dtls_check=false build   || goto end
The Meson build system
Version: 1.6.0
Source dir: C:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0
Build dir: C:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0\build
Build type: native build
Project name: libsoup
Project version: 3.6.0
DEPRECATION: None of the values ['gnu99'] are supported by the c compiler.
However, the deprecated gnu99 std currently falls back to c99.
This will be an error in meson 2.0.
If the project supports both GNU and MSVC compilers, a value such as
"c_std=gnu11,c11" specifies that GNU is preferred but it can safely fallback to plain c11.
C compiler for the host machine: cl (msvc 19.41.34123 "Microsoft (R) C/C++ Optimizing Compiler Version 19.41.34123 for x64")
C linker for the host machine: link link 14.41.34123.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments /utf-8: YES
Found pkg-config: YES (c:\strawberry_msvc_x86_64_release\bin\pkg-config.EXE) 2.3.0
Run-time dependency glib-2.0 found: YES 2.82.2
Run-time dependency gmodule-no-export-2.0 found: YES 2.82.2
Run-time dependency gobject-2.0 found: YES 2.82.2
Run-time dependency gio-2.0 found: YES 2.82.2
Run-time dependency libnghttp2 found: YES 1.64.0
Run-time dependency sqlite3 found: YES 3.38.1
Found CMake: C:\Program Files\CMake\bin\cmake.EXE (3.30.5)
Run-time dependency libbrotlidec found: NO (tried pkgconfig and cmake)
Run-time dependency gio-unix-2.0 found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency gio-unix-2.0
Neither a subproject directory nor a glib.wrap file was found.
Subproject  glib is buildable: NO (disabling)
Dependency gio-unix-2.0 from subproject glib found: NO (subproject failed to configure)
Library ws2_32 found: YES
Run-time dependency libpsl found: YES 0.21.5
Checking for function "gmtime_r" : NO
Dependency sysprof-capture-4 skipped: feature sysprof disabled
Run-time dependency zlib found: YES 1.3.1
Program apachectl /sbin/apachectl /usr/sbin/apachectl found: NO
Program httpd2 httpd apache2 apache /sbin/httpd2 /sbin/httpd /sbin/apache2 /sbin/apache /usr/sbin/httpd2 /usr/sbin/httpd /usr/sbin/apache2 /usr/sbin/apache found: NO
Run-time dependency gnutls found: NO (tried pkgconfig and cmake)
meson.build:296: WARNING: Some regression tests will not be compiled due to missing libraries or modules. Please check the logs for more details.
Library gssapi64 skipped: feature gssapi disabled
Program g-ir-scanner skipped: feature introspection disabled
Compiler for language vala skipped: feature vapi disabled
Configuring config.h using configuration
Program generate-version-header.py found: YES (C:\Meson\meson.exe runpython C:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0\libsoup\generate-version-header.py)
Configuring soup-version.h with command
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program c:/strawberry_msvc_x86_64_release/bin/glib-mkenums found: YES (C:\Meson\meson.exe c:/strawberry_msvc_x86_64_release/bin\glib-mkenums)
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program c:/strawberry_msvc_x86_64_release/bin/glib-mkenums found: YES (C:\Meson\meson.exe c:/strawberry_msvc_x86_64_release/bin\glib-mkenums)
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program c:/strawberry_msvc_x86_64_release/bin/glib-mkenums found: YES (C:\Meson\meson.exe c:/strawberry_msvc_x86_64_release/bin\glib-mkenums)
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program c:/strawberry_msvc_x86_64_release/bin/glib-mkenums found: YES (C:\Meson\meson.exe c:/strawberry_msvc_x86_64_release/bin\glib-mkenums)
Program xgettext found: NO
Compiler for C supports arguments -fsanitize=fuzzer,address,undefined: NO
Found CMake: C:\Program Files\CMake\bin\cmake.EXE (3.30.5)
Build-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency gi-docgen
Automatic wrap-based subproject downloading is disabled
Subproject  gi-docgen is buildable: NO (disabling)
Dependency gi-docgen from subproject gi-docgen found: NO (subproject failed to configure)
docs\reference\meson.build:23: WARNING: Documentation will not be built as introspection was disabled
Build targets in project: 9

libsoup 3.6.0

  Directories
    prefix                : c:/strawberry_msvc_x86_64_release
    libdir                : lib
    datadir               : share

  Features
    GSSAPI                : false
    NTLM                  : false
    Brotli                : false
    Translations          : false
    GIR                   : false
    VAPI                  : false
    Documentation         : false

  Testing
    All tests             : false
    Tests requiring Apache: false
    Documentation tests   : false
    Fuzzing tests         : false
    Autobahn tests        : false
    PKCS #11 tests        : false
    Install tests         : false
    Unix sockets          : false

  Subprojects
    gi-docgen             : NO Automatic wrap-based subproject downloading is disabled
    glib                  : NO Neither a subproject directory nor a glib.wrap file was found.

  User defined options
    buildtype             : release
    default_library       : shared
    gssapi                : disabled
    introspection         : disabled
    pkg_config_path       : c:/strawberry_msvc_x86_64_release/lib/pkgconfig
    prefix                : c:/strawberry_msvc_x86_64_release
    sysprof               : disabled
    tests                 : false
    tls_check             : false
    vapi                  : disabled
    wrap_mode             : nodownload

Found ninja-1.12.1 at C:\Meson\ninja.EXE

c:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0>cd build   || goto end

c:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0\build>ninja   || goto end
[1/169] Generating GObject enum file libsoup/soup-private-enum-types.c (wrapped by meson because command contains newlines, to capture output)
FAILED: libsoup/soup-private-enum-types.c
"C:\Meson\meson.exe" "--internal" "exe" "--unpickle" "C:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0\build\meson-private\meson_exe_meson.exe_4d4db3eb64b289ef11ae4ab14bb765e44520eb7f.dat"
while executing ['C:\\Meson\\meson.exe', 'c:/strawberry_msvc_x86_64_release/bin/glib-mkenums', '--fhead', '#include "soup-private-enum-types.h"\n#include "soup-connection.h"\n\n#define C_ENUM(v) ((gint) v)\n#define C_FLAGS(v) ((guint) v)\n', '--fprod', '\n/* enumerations from "@basename@" */\n', '--vhead', '\nGType\n@enum_name@_get_type (void)\n{\n    static gsize gtype_id = 0;\n    static const G@Type@Value values[] = {', '--vprod', '        { C_@TYPE@ (@VALUENAME@), "@VALUENAME@", "@valuenick@" },', '--vtail', '        { 0, NULL, NULL }\n    };\n    if (g_once_init_enter (&gtype_id)) {\n        GType new_type = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);\n        g_once_init_leave (&gtype_id, new_type);\n    }\n    return (GType) gtype_id;\n}', 'C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-connection.h']
--- stderr ---
usage: meson [-h]
             {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,reprotest,format,fmt,help} ...
meson: error: unrecognized arguments: --fhead #include "soup-private-enum-types.h"
#include "soup-connection.h"

#define C_ENUM(v) ((gint) v)
#define C_FLAGS(v) ((guint) v)
 --fprod
/* enumerations from "@basename@" */
 --vhead
GType
@enum_name@_get_type (void)
{
    static gsize gtype_id = 0;
    static const G@Type@Value values[] = { --vprod         { C_@TYPE@ (@VALUENAME@), "@VALUENAME@", "@valuenick@" }, --vtail         { 0, NULL, NULL }
    };
    if (g_once_init_enter (&gtype_id)) {
        GType new_type = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
        g_once_init_leave (&gtype_id, new_type);
    }
    return (GType) gtype_id;
} C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-connection.h

[2/169] Generating GObject enum file libsoup/soup-enum-types.h (wrapped by meson to capture output)
FAILED: libsoup/soup-enum-types.h
"C:\Meson\meson.exe" "--internal" "exe" "--capture" "libsoup\soup-enum-types.h" "--" "C:\Meson\meson.exe" "c:/strawberry_msvc_x86_64_release/bin/glib-mkenums" "--template" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-enum-types.h.template" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/auth/soup-auth.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/auth/soup-auth-manager.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cache/soup-cache.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/content-decoder/soup-content-decoder.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/content-sniffer/soup-content-sniffer.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie-jar.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie-jar-db.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie-jar-text.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/hsts/soup-hsts-enforcer.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/hsts/soup-hsts-enforcer-db.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/hsts/soup-hsts-policy.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-auth-domain.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-auth-domain-basic.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-auth-domain-digest.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-message-body.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-server.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-server-message.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-connection.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-extension.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-extension-deflate.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-extension-manager.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-date-utils.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-form.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-headers.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-logger.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-message.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-message-headers.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-message-metrics.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-method.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-multipart.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-multipart-input-stream.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-session.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-session-feature.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-status.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-tld.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-types.h" "C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-uri-utils.h"
--- stderr ---
usage: meson [-h]
             {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,reprotest,format,fmt,help} ...
meson: error: unrecognized arguments: --template C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-enum-types.h.template C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/auth/soup-auth.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/auth/soup-auth-manager.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cache/soup-cache.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/content-decoder/soup-content-decoder.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/content-sniffer/soup-content-sniffer.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie-jar.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie-jar-db.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/cookies/soup-cookie-jar-text.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/hsts/soup-hsts-enforcer.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/hsts/soup-hsts-enforcer-db.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/hsts/soup-hsts-policy.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-auth-domain.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-auth-domain-basic.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-auth-domain-digest.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-message-body.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-server.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/server/soup-server-message.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-connection.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-extension.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-extension-deflate.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/websocket/soup-websocket-extension-manager.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-date-utils.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-form.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-headers.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-logger.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-message.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-message-headers.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-message-metrics.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-method.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-multipart.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-multipart-input-stream.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-session.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-session-feature.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-status.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-tld.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-types.h C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-uri-utils.h

[3/169] Generating GObject enum file libsoup/soup-private-enum-types.h (wrapped by meson because command contains newlines, to capture output)
FAILED: libsoup/soup-private-enum-types.h
"C:\Meson\meson.exe" "--internal" "exe" "--unpickle" "C:\data\projects\strawberry\msvc_\build_release\libsoup-3.6.0\build\meson-private\meson_exe_meson.exe_f6a9f2bb9be7f98e05e5d22dc85c53b16b99e500.dat"
while executing ['C:\\Meson\\meson.exe', 'c:/strawberry_msvc_x86_64_release/bin/glib-mkenums', '--fhead', '#pragma once\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n', '--fprod', '\n/* enumerations from "@basename@" */\n', '--vhead', '\nGType @enum_name@_get_type (void);\n#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type())', '--ftail', '\nG_END_DECLS', 'C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-connection.h']
--- stderr ---
usage: meson [-h]
             {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,reprotest,format,fmt,help} ...
meson: error: unrecognized arguments: --fhead #pragma once

#include <glib-object.h>

G_BEGIN_DECLS
 --fprod
/* enumerations from "@basename@" */
 --vhead
GType @enum_name@_get_type (void);
#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type()) --ftail
G_END_DECLS C:/data/projects/strawberry/msvc_/build_release/libsoup-3.6.0/build/../libsoup/soup-connection.h

ninja: build stopped: subcommand failed.

image

Attached C:\strawberry_msvc_x86_64_release\bin\glib-mkenums as .txt file which contains some notes about --fhead:
- glib-mkenums.txt

@Erriez
Copy link
Contributor Author

Erriez commented Oct 27, 2024

Same problem for harfbuzz-10.0.1:

Extracting archive: harfbuzz-10.0.1.tar
--
Path = harfbuzz-10.0.1.tar
Type = tar
Code Page = UTF-8
Characteristics = ASCII

Everything is Ok

Folders: 148
Files: 3565
Size:       96164758
Compressed: 5712896
The Meson build system
Version: 1.6.0
Source dir: C:\data\projects\strawberry\msvc_\build_release\harfbuzz-10.0.1
Build dir: C:\data\projects\strawberry\msvc_\build_release\harfbuzz-10.0.1\build
Build type: native build
Project name: harfbuzz
Project version: 10.0.1
C compiler for the host machine: cl (msvc 19.41.34123 "Microsoft (R) C/C++ Optimizing Compiler Version 19.41.34123 for x64")
C linker for the host machine: link link 14.41.34123.0
C++ compiler for the host machine: cl (msvc 19.41.34123 "Microsoft (R) C/C++ Optimizing Compiler Version 19.41.34123 for x64")
C++ linker for the host machine: link link 14.41.34123.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C++ supports arguments /utf-8: YES
Compiler for C++ supports link arguments -Bsymbolic-functions: NO
Compiler for C++ supports arguments -fno-exceptions: NO
Compiler for C++ supports arguments -fno-rtti: NO
Compiler for C++ supports arguments -fno-threadsafe-statics: NO
Compiler for C++ supports arguments -fvisibility-inlines-hidden: NO
Compiler for C++ supports arguments -Wa,-mbig-obj: NO
Library m found: NO
Found pkg-config: YES (c:\strawberry_msvc_x86_64_release\bin\pkg-config.EXE) 2.3.0
Run-time dependency freetype2 found: YES 26.2.20
Run-time dependency glib-2.0 found: YES 2.82.2
Run-time dependency gobject-2.0 found: YES 2.82.2
Dependency graphite2 skipped: feature graphite2 disabled
Dependency graphite2 skipped: feature graphite disabled
Library iwasm skipped: feature wasm disabled
Run-time dependency icu-uc found: YES 76.1
Found CMake: C:\Program Files\CMake\bin\cmake.EXE (3.30.5)
Run-time dependency chafa found: NO (tried pkgconfig and cmake)
Compiler for C++ supports arguments -Wno-non-virtual-dtor: NO
Has header "unistd.h" : NO
Has header "sys/mman.h" : NO
Has header "stdbool.h" : YES
Has header "xlocale.h" : NO
Checking for function "atexit" : YES
Checking for function "mprotect" : NO
Checking for function "sysconf" : NO
Checking for function "getpagesize" : NO
Checking for function "mmap" : NO
Checking for function "isatty" : NO
Checking for function "uselocale" : NO
Checking for function "newlocale" : NO
Checking for function "sincosf" : NO
Checking for function "FT_Get_Var_Blend_Coordinates" with dependency freetype2: YES
Checking for function "FT_Set_Var_Blend_Coordinates" with dependency freetype2: YES
Checking for function "FT_Done_MM_Var" with dependency freetype2: YES
Checking for function "FT_Get_Transform" with dependency freetype2: YES
Program gen-hb-version.py found: YES (C:\Meson\meson.exe runpython C:\data\projects\strawberry\msvc_\build_release\harfbuzz-10.0.1\src\gen-hb-version.py)
Configuring hb-version.h with command
Program ragel found: NO
src\meson.build:421: WARNING: You have to install ragel if you are going to develop HarfBuzz itself
Program gen-harfbuzzcc.py found: YES (C:\Meson\meson.exe runpython C:\data\projects\strawberry\msvc_\build_release\harfbuzz-10.0.1\src\gen-harfbuzzcc.py)
Configuring hb-features.h using configuration
Configuring hb-supported-features.h using configuration
Program gen-def.py found: YES (C:\Meson\meson.exe runpython C:\data\projects\strawberry\msvc_\build_release\harfbuzz-10.0.1\src\gen-def.py)
Fetching value of define "_MSC_FULL_VER" : 194134123
Program gen-harfbuzzcc.py found: YES (C:\Meson\meson.exe runpython C:\data\projects\strawberry\msvc_\build_release\harfbuzz-10.0.1\src\gen-harfbuzzcc.py)
src\meson.build:824: WARNING: Project targets '>= 0.55.0' but uses feature introduced in '1.3.0': fs.relative_to.
Configuring harfbuzz-config.cmake using configuration
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program c:/strawberry_msvc_x86_64_release/bin/glib-mkenums found: YES (C:\Meson\meson.exe c:/strawberry_msvc_x86_64_release/bin\glib-mkenums)
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program c:/strawberry_msvc_x86_64_release/bin/glib-mkenums found: YES (C:\Meson\meson.exe c:/strawberry_msvc_x86_64_release/bin\glib-mkenums)
Program fix_get_types.py found: YES (C:\Meson\meson.exe runpython C:\data\projects\strawberry\msvc_\build_release\harfbuzz-10.0.1\src\fix_get_types.py)
Program fix_get_types.py found: YES (C:\Meson\meson.exe runpython C:\data\projects\strawberry\msvc_\build_release\harfbuzz-10.0.1\src\fix_get_types.py)
Program g-ir-scanner found: NO
Configuring config.h using configuration
Build targets in project: 20
WARNING: Project specifies a minimum meson_version '>= 0.55.0' but uses features which were added in newer versions:
 * 1.3.0: {'fs.relative_to'}

harfbuzz 10.0.1

  Directories
    prefix                    : c:/strawberry_msvc_x86_64_release
    bindir                    : bin
    libdir                    : lib
    includedir                : include
    datadir                   : share
    cmakepackagedir           : lib/cmake

  Unicode callbacks (you want at least one)
    Builtin                   : YES
    Glib                      : YES
    ICU                       : YES

  Font callbacks (the more the merrier)
    Builtin                   : YES
    FreeType                  : YES

  Dependencies used for command-line utilities
    Cairo                     : NO
    Chafa                     : NO

  Additional shapers
    Graphite2                 : NO
    WebAssembly (experimental): NO

  Platform shapers (not normally needed)
    CoreText                  : NO
    DirectWrite (experimental): NO
    GDI/Uniscribe             : NO

  Other features
    Documentation             : NO
    GObject bindings          : YES
    Cairo integration         : NO
    Introspection             : NO
    Experimental APIs         : NO

  Testing
    Tests                     : NO
    Benchmark                 : NO

  User defined options
    buildtype                 : release
    cairo                     : disabled
    cpp_std                   : c++17
    default_library           : shared
    docs                      : disabled
    freetype                  : enabled
    icu                       : enabled
    prefix                    : c:/strawberry_msvc_x86_64_release
    tests                     : disabled
    wrap_mode                 : nodownload

Found ninja-1.12.1 at C:\Meson\ninja.EXE
[7/96] Generating GObject enum file src/hb-gobject-enums-tmp.h (wrapped by meson to capture output)
FAILED: src/hb-gobject-enums-tmp.h
"C:\Meson\meson.exe" "--internal" "exe" "--capture" "src\hb-gobject-enums-tmp.h" "--" "C:\Meson\meson.exe" "c:/strawberry_msvc_x86_64_release/bin/glib-mkenums" "--identifier-prefix" "hb_" "--symbol-prefix" "hb_gobject" "--template" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/src/hb-gobject-enums-tmp.h.tmpl" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-aat-layout.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-aat.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-blob.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-buffer.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-common.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-cplusplus.hh" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-deprecated.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-draw.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-paint.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-face.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-font.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-map.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-color.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-deprecated.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-font.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-layout.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-math.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-meta.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-metrics.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-name.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-shape.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-var.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-set.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-shape-plan.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-shape.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-style.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-unicode.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/src/hb-version.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ft.h" "C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-glib.h"
--- stderr ---
usage: meson [-h]
             {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,reprotest,format,fmt,help} ...
meson: error: unrecognized arguments: --identifier-prefix hb_ --symbol-prefix hb_gobject --template C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/src/hb-gobject-enums-tmp.h.tmpl C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-aat-layout.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-aat.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-blob.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-buffer.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-common.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-cplusplus.hh C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-deprecated.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-draw.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-paint.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-face.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-font.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-map.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-color.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-deprecated.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-font.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-layout.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-math.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-meta.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-metrics.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-name.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-shape.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot-var.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ot.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-set.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-shape-plan.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-shape.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-style.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-unicode.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/src/hb-version.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-ft.h C:/data/projects/strawberry/msvc_/build_release/harfbuzz-10.0.1/build/../src/hb-glib.h

[12/96] Compiling C++ object src/harfbuzz.dll.p/hb-aat-layout.cc.obj
ninja: build stopped: subcommand failed.

@jonaski
Copy link
Member

jonaski commented Oct 28, 2024

Looks like a meson issue to me. I tested and I can confirm the issue with Meson 1.6.0 installed through the Meson installer. However, if I install meson through python (pip), everything works. So make sure the python paths are before the meson in the PATH variable, or just uninstall meson and install it through pip instead.

@Erriez
Copy link
Contributor Author

Erriez commented Oct 28, 2024

Thanks for your valuable tip. I can reproduce it: Not working by installing Meson, but works with PIP. That's a different installation than described in README.md and I'll create a PR for this.

Another problem is that install.bat does not install Python correctly. It is recommended to install it manually to configure several options, such as setting including PATH, max file system length and install Py launcher which is required.

@jonaski
Copy link
Member

jonaski commented Oct 29, 2024

I've reported this here: mesonbuild/meson#13834

@Erriez
Copy link
Contributor Author

Erriez commented Oct 29, 2024

Thanks for reporting this issue at Mesonbuild project. I was able to build the Strawberry Windows x64 debug version with Python pip Meson. Let's wait for a reply.

I made many changes, so I have to repeat all steps from a clean Windows installation to fine-tune the README.md. (Also path to NSIS directory is not automatically set for example)

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

2 participants