[package] pkgconf/1.7.4: can't build with clang on windows
See original GitHub issuePackage and Environment Details (include every applicable attribute)
- Package Name/Version: pkgconf/1.7.4
- Operating System+version: windows 10
- Compiler+version: clang 12
- Conan version: conan 1.46.0
Conan profile (output of conan profile show default
or conan profile show <profile>
if custom profile is in use)
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=clang
compiler.version=12
os=Windows
os_build=Windows
[options]
*:with_embree=False
[build_requires]
[env]
CC=clang-cl
CONAN_CMAKE_GENERATOR=Ninja
CXX=clang-cl
Steps to reproduce (Include if Applicable)
conan install pkgconf/1.7.4@ --build missing -pr clang
Logs (Include/Attach if Applicable)
Click to expand log
pkgconf/1.7.4: Applying build-requirement: meson/0.60.2
pkgconf/1.7.4: Applying build-requirement: ninja/1.10.2
pkgconf/1.7.4: WARN: Build folder is dirty, removing it: D:\.conan\storage\pkgconf\1.7.4\_\_\build\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc
pkgconf/1.7.4: Copying sources to build folder
pkgconf/1.7.4: Building your package in D:\.conan\storage\pkgconf\1.7.4\_\_\build\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc
pkgconf/1.7.4: Generator txt created conanbuildinfo.txt
pkgconf/1.7.4: Aggregating env generators
pkgconf/1.7.4: Calling build()
----Running------
> meson "D:\.conan\storage\pkgconf\1.7.4\_\_\build\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc\source_subfolder" "D:\.conan\storage\pkgconf\1.7.4\_\_\build\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc\build_subfolder" --backend=ninja -Dprefix="D:\.conan\storage\pkgconf\1.7.4\_\_\package\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc" -Dlibdir="lib" -Dbindir="bin" -Dsbindir="bin" -Dlibexecdir="bin" -Dincludedir="include" -Ddefault_library="static" -Dtests="False" -Dsharedstatedir="D:\.conan\storage\pkgconf\1.7.4\_\_\package\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc\bin\share" --buildtype=release
-----------------
The Meson build system
Version: 0.60.2
Source dir: D:\.conan\storage\pkgconf\1.7.4\_\_\build\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc\source_subfolder
Build dir: D:\.conan\storage\pkgconf\1.7.4\_\_\build\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc\build_subfolder
Build type: native build
Project name: pkgconf
Project version: 1.7.4
C compiler for the host machine: clang-cl (clang-cl 13.0.1)
C linker for the host machine: lld-link lld-link 13.0.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Configuring config.h using configuration
Build targets in project: 2
pkgconf 1.7.4
User defined options
backend : ninja
bindir : bin
buildtype : release
default_library: static
includedir : include
libdir : lib
libexecdir : bin
prefix : D:\.conan\storage\pkgconf\1.7.4\_\_\package\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc
sbindir : bin
sharedstatedir : D:\.conan\storage\pkgconf\1.7.4\_\_\package\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc\bin\share
tests : False
Found ninja-1.10.2 at D:\.conan\storage\ninja\1.10.2\_\_\package\0a420ff5c47119e668867cdb51baff0eca1fdb68\bin\ninja.EXE
----Running------
> ninja -C "D:\.conan\storage\pkgconf\1.7.4\_\_\build\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc\build_subfolder"
-----------------
ninja: Entering directory `D:\.conan\storage\pkgconf\1.7.4\_\_\build\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc\build_subfolder'
[1/19] Compiling C object libpkgconf.a.p/libpkgconf_audit.c.obj
clang-cl: warning: argument unused during compilation: '-O3' [-Wunused-command-line-argument]
[2/19] Compiling C object libpkgconf.a.p/libpkgconf_bsdstubs.c.obj
clang-cl: warning: argument unused during compilation: '-O3' [-Wunused-command-line-argument]
[3/19] Compiling C object pkgconf.exe.p/cli_getopt_long.c.obj
clang-cl: warning: argument unused during compilation: '-O3' [-Wunused-command-line-argument]
../source_subfolder/cli/getopt_long.c(385,21): warning: 'getenv' is deprecated: This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
posixly_correct = (getenv("POSIXLY_CORRECT") != NULL);
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h(1183,20): note: 'getenv' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
1 warning generated.
[4/19] Compiling C object libpkgconf.a.p/libpkgconf_argvsplit.c.obj
clang-cl: warning: argument unused during compilation: '-O3' [-Wunused-command-line-argument]
In file included from ../source_subfolder/libpkgconf/argvsplit.c:16:
In file included from ..\source_subfolder\libpkgconf/stdinc.h:48:
../source_subfolder/libpkgconf/win-dirent.h(436,1): warning: unused function '_wreaddir' [-Wunused-function]
_wreaddir(
^
../source_subfolder/libpkgconf/win-dirent.h(613,1): warning: unused function 'opendir' [-Wunused-function]
opendir(
^
../source_subfolder/libpkgconf/win-dirent.h(683,1): warning: unused function 'readdir' [-Wunused-function]
readdir(
^
../source_subfolder/libpkgconf/win-dirent.h(766,1): warning: unused function 'closedir' [-Wunused-function]
closedir(
^
../source_subfolder/libpkgconf/win-dirent.h(793,1): warning: unused function 'rewinddir' [-Wunused-function]
rewinddir(
^
5 warnings generated.
[5/19] Compiling C object pkgconf.exe.p/cli_renderer-msvc.c.obj
clang-cl: warning: argument unused during compilation: '-O3' [-Wunused-command-line-argument]
[6/19] Compiling C object libpkgconf.a.p/libpkgconf_dependency.c.obj
clang-cl: warning: argument unused during compilation: '-O3' [-Wunused-command-line-argument]
In file included from ../source_subfolder/libpkgconf/dependency.c:16:
In file included from ..\source_subfolder\libpkgconf/stdinc.h:48:
../source_subfolder/libpkgconf/win-dirent.h(436,1): warning: unused function '_wreaddir' [-Wunused-function]
_wreaddir(
^
../source_subfolder/libpkgconf/win-dirent.h(613,1): warning: unused function 'opendir' [-Wunused-function]
opendir(
^
../source_subfolder/libpkgconf/win-dirent.h(683,1): warning: unused function 'readdir' [-Wunused-function]
readdir(
^
../source_subfolder/libpkgconf/win-dirent.h(766,1): warning: unused function 'closedir' [-Wunused-function]
closedir(
^
../source_subfolder/libpkgconf/win-dirent.h(793,1): warning: unused function 'rewinddir' [-Wunused-function]
rewinddir(
^
5 warnings generated.
[7/19] Compiling C object libpkgconf.a.p/libpkgconf_cache.c.obj
clang-cl: warning: argument unused during compilation: '-O3' [-Wunused-command-line-argument]
In file included from ../source_subfolder/libpkgconf/cache.c:16:
In file included from ..\source_subfolder\libpkgconf/stdinc.h:48:
../source_subfolder/libpkgconf/win-dirent.h(436,1): warning: unused function '_wreaddir' [-Wunused-function]
_wreaddir(
^
../source_subfolder/libpkgconf/win-dirent.h(613,1): warning: unused function 'opendir' [-Wunused-function]
opendir(
^
../source_subfolder/libpkgconf/win-dirent.h(683,1): warning: unused function 'readdir' [-Wunused-function]
readdir(
^
../source_subfolder/libpkgconf/win-dirent.h(766,1): warning: unused function 'closedir' [-Wunused-function]
closedir(
^
../source_subfolder/libpkgconf/win-dirent.h(793,1): warning: unused function 'rewinddir' [-Wunused-function]
rewinddir(
^
5 warnings generated.
[8/19] Compiling C object libpkgconf.a.p/libpkgconf_fileio.c.obj
clang-cl: warning: argument unused during compilation: '-O3' [-Wunused-command-line-argument]
In file included from ../source_subfolder/libpkgconf/fileio.c:16:
In file included from ..\source_subfolder\libpkgconf/stdinc.h:48:
../source_subfolder/libpkgconf/win-dirent.h(436,1): warning: unused function '_wreaddir' [-Wunused-function]
_wreaddir(
^
../source_subfolder/libpkgconf/win-dirent.h(613,1): warning: unused function 'opendir' [-Wunused-function]
opendir(
^
../source_subfolder/libpkgconf/win-dirent.h(683,1): warning: unused function 'readdir' [-Wunused-function]
readdir(
^
../source_subfolder/libpkgconf/win-dirent.h(766,1): warning: unused function 'closedir' [-Wunused-function]
closedir(
^
../source_subfolder/libpkgconf/win-dirent.h(793,1): warning: unused function 'rewinddir' [-Wunused-function]
rewinddir(
^
5 warnings generated.
[9/19] Compiling C object libpkgconf.a.p/libpkgconf_queue.c.obj
clang-cl: warning: argument unused during compilation: '-O3' [-Wunused-command-line-argument]
../source_subfolder/libpkgconf/queue.c(53,18): warning: 'strdup' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [-Wdeprecated-declarations]
pkgq->package = strdup(package);
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\string.h(531,20): note: 'strdup' has been explicitly marked deprecated here
_Check_return_ _CRT_NONSTDC_DEPRECATE(_strdup)
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h(428,50): note: expanded from macro '_CRT_NONSTDC_DEPRECATE'
#define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
In file included from ../source_subfolder/libpkgconf/queue.c:16:
In file included from ..\source_subfolder\libpkgconf/stdinc.h:48:
../source_subfolder/libpkgconf/win-dirent.h(436,1): warning: unused function '_wreaddir' [-Wunused-function]
_wreaddir(
^
../source_subfolder/libpkgconf/win-dirent.h(613,1): warning: unused function 'opendir' [-Wunused-function]
opendir(
^
../source_subfolder/libpkgconf/win-dirent.h(683,1): warning: unused function 'readdir' [-Wunused-function]
readdir(
^
../source_subfolder/libpkgconf/win-dirent.h(766,1): warning: unused function 'closedir' [-Wunused-function]
closedir(
^
../source_subfolder/libpkgconf/win-dirent.h(793,1): warning: unused function 'rewinddir' [-Wunused-function]
rewinddir(
^
6 warnings generated.
[10/19] Compiling C object libpkgconf.a.p/libpkgconf_fragment.c.obj
clang-cl: warning: argument unused during compilation: '-O3' [-Wunused-command-line-argument]
../source_subfolder/libpkgconf/fragment.c(117,9): warning: 'strdup' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [-Wdeprecated-declarations]
return strdup(mungebuf);
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\string.h(531,20): note: 'strdup' has been explicitly marked deprecated here
_Check_return_ _CRT_NONSTDC_DEPRECATE(_strdup)
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h(428,50): note: expanded from macro '_CRT_NONSTDC_DEPRECATE'
#define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/libpkgconf/fragment.c(194,16): warning: 'strdup' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details. [-Wdeprecated-declarations]
frag->data = strdup(string);
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\string.h(531,20): note: 'strdup' has been explicitly marked deprecated here
_Check_return_ _CRT_NONSTDC_DEPRECATE(_strdup)
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt.h(428,50): note: expanded from macro '_CRT_NONSTDC_DEPRECATE'
#define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT( \
...
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(989,6): warning: 'getenv' is deprecated: This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
if (getenv("PKG_CONFIG_DONT_RELOCATE_PATHS"))
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h(1183,20): note: 'getenv' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(1018,6): warning: 'getenv' is deprecated: This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
if (getenv("PKG_CONFIG_FDO_SYSROOT_RULES"))
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h(1183,20): note: 'getenv' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(1031,18): warning: 'fopen' is deprecated: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
error_msgout = fopen(PATH_DEV_NULL, "w");
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdio.h(212,20): note: 'fopen' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(fopen_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(1033,69): warning: 'getenv' is deprecated: This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
if ((want_flags & PKG_IGNORE_CONFLICTS) == PKG_IGNORE_CONFLICTS || getenv("PKG_CONFIG_IGNORE_CONFLICTS") != NULL)
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h(1183,20): note: 'getenv' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(1046,45): warning: 'getenv' is deprecated: This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
if ((want_flags & PKG_PURE) == PKG_PURE || getenv("PKG_CONFIG_PURE_DEPGRAPH") != NULL || personality->want_default_pure)
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h(1183,20): note: 'getenv' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(1062,65): warning: 'getenv' is deprecated: This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
if ((want_flags & PKG_NO_UNINSTALLED) == PKG_NO_UNINSTALLED || getenv("PKG_CONFIG_DISABLE_UNINSTALLED") != NULL)
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h(1183,20): note: 'getenv' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(1068,74): warning: 'getenv' is deprecated: This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
if ((want_flags & PKG_DONT_DEFINE_PREFIX) == PKG_DONT_DEFINE_PREFIX || getenv("PKG_CONFIG_DONT_DEFINE_PREFIX") != NULL)
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h(1183,20): note: 'getenv' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(1097,6): warning: 'getenv' is deprecated: This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
if (getenv("PKG_CONFIG_ALLOW_SYSTEM_CFLAGS") != NULL)
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h(1183,20): note: 'getenv' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(1100,6): warning: 'getenv' is deprecated: This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
if (getenv("PKG_CONFIG_ALLOW_SYSTEM_LIBS") != NULL)
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h(1183,20): note: 'getenv' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(1103,18): warning: 'getenv' is deprecated: This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
if ((builddir = getenv("PKG_CONFIG_TOP_BUILD_DIR")) != NULL)
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h(1183,20): note: 'getenv' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(1106,21): warning: 'getenv' is deprecated: This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
if ((sysroot_dir = getenv("PKG_CONFIG_SYSROOT_DIR")) != NULL)
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h(1183,20): note: 'getenv' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(1112,18): warning: 'getenv' is deprecated: This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
if ((destdir = getenv("DESTDIR")) != NULL)
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h(1183,20): note: 'getenv' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(1146,17): warning: 'getenv' is deprecated: This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
logfile_arg = getenv("PKG_CONFIG_LOG");
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdlib.h(1183,20): note: 'getenv' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
../source_subfolder/cli/main.c(1150,17): warning: 'fopen' is deprecated: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
logfile_out = fopen(logfile_arg, "w");
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\stdio.h(212,20): note: 'fopen' has been explicitly marked deprecated here
_Check_return_ _CRT_INSECURE_DEPRECATE(fopen_s)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(320,55): note: expanded from macro '_CRT_INSECURE_DEPRECATE'
#define _CRT_INSECURE_DEPRECATE(_Replacement) _CRT_DEPRECATE_TEXT( \
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,47): note: expanded from macro '_CRT_DEPRECATE_TEXT'
#define _CRT_DEPRECATE_TEXT(_Text) __declspec(deprecated(_Text))
^
In file included from ../source_subfolder/cli/main.c:18:
In file included from ..\source_subfolder\libpkgconf/stdinc.h:48:
..\source_subfolder\libpkgconf/win-dirent.h(436,1): warning: unused function '_wreaddir' [-Wunused-function]
_wreaddir(
^
..\source_subfolder\libpkgconf/win-dirent.h(613,1): warning: unused function 'opendir' [-Wunused-function]
opendir(
^
..\source_subfolder\libpkgconf/win-dirent.h(683,1): warning: unused function 'readdir' [-Wunused-function]
readdir(
^
..\source_subfolder\libpkgconf/win-dirent.h(766,1): warning: unused function 'closedir' [-Wunused-function]
closedir(
^
..\source_subfolder\libpkgconf/win-dirent.h(793,1): warning: unused function 'rewinddir' [-Wunused-function]
rewinddir(
^
25 warnings generated.
[19/19] Linking target pkgconf.exe
FAILED: pkgconf.exe
"lld-link" /MACHINE:x64 /OUT:pkgconf.exe pkgconf.exe.p/cli_main.c.obj pkgconf.exe.p/cli_getopt_long.c.obj pkgconf.exe.p/cli_renderer-msvc.c.obj "/nologo" "/OPT:REF" "-m64" "libpkgconf.a" "/SUBSYSTEM:CONSOLE" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "comdlg32.lib" "advapi32.lib"
lld-link: warning: ignoring unknown argument '-m64'
lld-link: error: could not open 'kernel32.lib': no such file or directory
lld-link: error: could not open 'user32.lib': no such file or directory
lld-link: error: could not open 'gdi32.lib': no such file or directory
lld-link: error: could not open 'winspool.lib': no such file or directory
lld-link: error: could not open 'shell32.lib': no such file or directory
lld-link: error: could not open 'ole32.lib': no such file or directory
lld-link: error: could not open 'oleaut32.lib': no such file or directory
lld-link: error: could not open 'uuid.lib': no such file or directory
lld-link: error: could not open 'comdlg32.lib': no such file or directory
lld-link: error: could not open 'advapi32.lib': no such file or directory
lld-link: error: could not open 'msvcrt.lib': no such file or directory
lld-link: error: could not open 'oldnames.lib': no such file or directory
ninja: build stopped: subcommand failed.
pkgconf/1.7.4:
pkgconf/1.7.4: ERROR: Package 'e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc' build failed
pkgconf/1.7.4: WARN: Build folder D:\.conan\storage\pkgconf\1.7.4\_\_\build\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc
ERROR: pkgconf/1.7.4: Error in build() method, line 91
meson.build()
ConanException: Error 1 while executing ninja -C "D:\.conan\storage\pkgconf\1.7.4\_\_\build\e5dfaa2a6d0ff8915bb91aa1f1e2569e87e2b3dc\build_subfolder"
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
pkg-config Windows · Issue #4029 · mesonbuild/meson - GitHub
Hi, I'm trying for the first time the meson build system. Get it working on linux is easy but on Windows I'm a...
Read more >How can I use `pkg-config` with clangd? - Stack Overflow
The recommended way to configure a project for use with clangd is to generate a compile_commands.json file based on your project's build ......
Read more >Seeing pkg-config: ERROR: - Google Groups
I am trying to build by custom kernel inside chroot , I copied chromeos folder, applied the attached patch also, I end up...
Read more >Documentation: 15: 17.4. Installation Procedure - PostgreSQL
All files will be installed under /usr/local/pgsql by default. You can customize the build and installation process by supplying one or more command...
Read more >Clang/LLVM support in Visual Studio projects - Microsoft Learn
You can use Visual Studio 2019 version 16.2 and later with Clang/LLVM to edit, build, and debug C++ Visual Studio projects (MSBuild) that ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
okay, it confirms my theory, worth checking: https://github.com/mesonbuild/meson/issues/8889 for the record,
_append_vcvars
does nothing, as it is inside_vcvars_needed
check xD anyway, with the following simple patch it builds for me:this issue can be closed