Closed lichuangcheng closed 3 days ago
I can't reproduce this issue locally, I test this issue on the Linux with GCC 9.4.0 and GCC 13.2.0, and all install succeed.
Thank you for your work!
The problem is on a centos7 server, and according to the compilation error message, it may be related to the header file environment that comes with centos7
The problem occurs with fmt 11 and above, I ended up locking the fmt version to 10.1.1 to get around it.
Package: fmt:x64-linux@11.0.2
Host Environment
To Reproduce
vcpkg install
Failure logs
/home/licc/pkgs/vcpkg/buildtrees/fmt/install-x64-linux-dbg-out.log
``` Change Dir: '/home/licc/pkgs/vcpkg/buildtrees/fmt/x64-linux-dbg' Run Build Command(s): /home/licc/.local/bin/ninja -v -v -j65 install [1/4] /home/licc/pkgs/gcc-13.2.0/bin/g++ -I/home/licc/pkgs/vcpkg/buildtrees/fmt/src/11.0.2-463dc5ff21.clean/include -fPIC -g -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT CMakeFiles/fmt.dir/src/os.cc.o -MF CMakeFiles/fmt.dir/src/os.cc.o.d -o CMakeFiles/fmt.dir/src/os.cc.o -c /home/licc/pkgs/vcpkg/buildtrees/fmt/src/11.0.2-463dc5ff21.clean/src/os.cc FAILED: CMakeFiles/fmt.dir/src/os.cc.o /home/licc/pkgs/gcc-13.2.0/bin/g++ -I/home/licc/pkgs/vcpkg/buildtrees/fmt/src/11.0.2-463dc5ff21.clean/include -fPIC -g -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT CMakeFiles/fmt.dir/src/os.cc.o -MF CMakeFiles/fmt.dir/src/os.cc.o.d -o CMakeFiles/fmt.dir/src/os.cc.o -c /home/licc/pkgs/vcpkg/buildtrees/fmt/src/11.0.2-463dc5ff21.clean/src/os.cc In file included from /home/licc/pkgs/vcpkg/buildtrees/fmt/src/11.0.2-463dc5ff21.clean/include/fmt/os.h:20, from /home/licc/pkgs/vcpkg/buildtrees/fmt/src/11.0.2-463dc5ff21.clean/src/os.cc:13: /usr/include/xlocale.h:27:16: error: redefinition of ‘struct __locale_struct’ 27 | typedef struct __locale_struct | ^~~~~~~~~~~~~~~ In file included from /usr/include/bits/types/locale_t.h:22, from /usr/include/string.h:152, from /home/licc/pkgs/vcpkg/buildtrees/fmt/src/11.0.2-463dc5ff21.clean/include/fmt/base.h:18, from /home/licc/pkgs/vcpkg/buildtrees/fmt/src/11.0.2-463dc5ff21.clean/include/fmt/format.h:41, from /home/licc/pkgs/vcpkg/buildtrees/fmt/src/11.0.2-463dc5ff21.clean/include/fmt/os.h:11: /usr/include/bits/types/__locale_t.h:28:8: note: previous definition of ‘struct __locale_struct’ 28 | struct __locale_struct | ^~~~~~~~~~~~~~~ /usr/include/xlocale.h:39:4: error: conflicting declaration ‘typedef int* __locale_t’ 39 | } *__locale_t; | ^~~~~~~~~~ /usr/include/bits/types/__locale_t.h:42:33: note: previous declaration as ‘typedef struct __locale_struct* __locale_t’ 42 | typedef struct __locale_struct *__locale_t; | ^~~~~~~~~~ [2/4] /home/licc/pkgs/gcc-13.2.0/bin/g++ -I/home/licc/pkgs/vcpkg/buildtrees/fmt/src/11.0.2-463dc5ff21.clean/include -fPIC -g -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT CMakeFiles/fmt.dir/src/format.cc.o -MF CMakeFiles/fmt.dir/src/format.cc.o.d -o CMakeFiles/fmt.dir/src/format.cc.o -c /home/licc/pkgs/vcpkg/buildtrees/fmt/src/11.0.2-463dc5ff21.clean/src/format.cc ninja: build stopped: subcommand failed. ```Additional context
vcpkg.json
``` { "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", "name": "zwrtc", "version": "0.1.0", "dependencies": [ { "name": "ixwebsocket", "default-features": false, "features": [ "mbedtls" ] }, "asio", "spdlog", "doctest", "stb" ] } ```