Skip to content

[<glib>] build failure for x64 macos #51171

@poasungoh

Description

@poasungoh

Operating system

macos x64

Compiler

No response

Steps to reproduce the behavior

./vcpkg/vcpkg install glib:x64-osx-dynamic

Failure logs

Command line: `/usr/bin/c++ -fPIC -g -O3 -DNDEBUG -arch x86_64 -I/Users/admin/builds/xxx/vcpkg/installed/x64-osx-dynamic/include /Users/admin/builds/xxx/vcpkg/buildtrees/glib/x64-osx-dynamic-rel/meson-private/tmpdk2rvnk6/testfile.cpp -o /Users/admin/builds/xxx/vcpkg/buildtrees/glib/x64-osx-dynamic-rel/meson-private/tmpdk2rvnk6/output.obj -c -fPIC -g -O3 -DNDEBUG -arch x86_64 -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c++latest` -> 1
stderr:
error: invalid value 'c++latest' in '-std=c++latest'
note: use 'c++98' or 'c++03' for 'ISO C++ 1998 with amendments' standard
note: use 'gnu++98' or 'gnu++03' for 'ISO C++ 1998 with amendments and GNU extensions' standard
note: use 'c++11' for 'ISO C++ 2011 with amendments' standard
note: use 'gnu++11' for 'ISO C++ 2011 with amendments and GNU extensions' standard
note: use 'c++14' for 'ISO C++ 2014 with amendments' standard
note: use 'gnu++14' for 'ISO C++ 2014 with amendments and GNU extensions' standard
note: use 'c++17' for 'ISO C++ 2017 with amendments' standard
note: use 'gnu++17' for 'ISO C++ 2017 with amendments and GNU extensions' standard
note: use 'c++20' for 'ISO C++ 2020 DIS' standard
note: use 'gnu++20' for 'ISO C++ 2020 DIS with GNU extensions' standard
note: use 'c++23' for 'ISO C++ 2023 DIS' standard
note: use 'gnu++23' for 'ISO C++ 2023 DIS with GNU extensions' standard
note: use 'c++2c' or 'c++26' for 'Working draft for C++2c' standard
note: use 'gnu++2c' or 'gnu++26' for 'Working draft for C++2c with GNU extensions' standard
-----------
Compiler for C++ supports arguments -std=c++latest: NO 

../src/glib-2-1485d04273.clean/meson.build:84:27: ERROR: Subsystem not defined or could not be autodetected.

Additional context

After upgrade glib to using 2.88, seems like caused some issue when trying to build for x64-osx.

can we add subsystem = "macos" for [host_mahice] in vcpkg_configure_meson.cmake?

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:port-bugThe issue is with a library, which is something the port should already support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions