Vcpkg: [Mac OS 10.14.6] build failure

Created on 17 Nov 2019  路  15Comments  路  Source: microsoft/vcpkg

Host Environment

  • OS: [Mac OS 10.14.6]
  • Compiler: AppleClang 11.0.0.11000033

To Reproduce
Steps to reproduce the behavior:
'run bootstrap-vcpkg.sh in the terminal.'

Failure logs
Last login: Sun Nov 17 07:41:58 on ttys000
MSBDMACL43951:~ hpigott$ /Users/hpigott/Desktop/ProjectM/Source/vcpkg-master/bootstrap-vcpkg.sh
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/local/bin/g++-9
-- Check for working CXX compiler: /usr/local/bin/g++-9 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/hpigott/Desktop/ProjectM/Source/vcpkg-master/toolsrc/build.rel
[0/2] Re-checking globbed directories...
[1/66] Building CXX object CMakeFiles/vcpkglib.dir/src/vcpkg/base/enums.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/enums.cpp.o
/usr/local/bin/g++-9 -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/enums.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/enums.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/enums.cpp.o -c ../src/vcpkg/base/enums.cpp
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/wchar.h:90,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cwchar:44,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/string:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/stdexcept:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/array:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tuple:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/functional:54,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/pstl/glue_algorithm_defs.h:13,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/algorithm:71,
from ../include/pch.h:22,
from ../src/vcpkg/base/enums.cpp:1:
/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/stdio.h:222:7: error: conflicting declaration of 'char* ctermid(char)' with 'C' linkage
222 | char *ctermid(char *);
| ^~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/unistd.h:525,
from ../include/pch.h:19,
from ../src/vcpkg/base/enums.cpp:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/_ctermid.h:26:10: note: previous declaration with 'C++' linkage
26 | char *ctermid(char *);
| ^~~
[2/66] Building CXX object CMakeFiles/...b.dir/src/vcpkg/base/machinetype.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/machinetype.cpp.o
/usr/local/bin/g++-9 -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/machinetype.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/machinetype.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/machinetype.cpp.o -c ../src/vcpkg/base/machinetype.cpp
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/wchar.h:90,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cwchar:44,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/string:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/stdexcept:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/array:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tuple:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/functional:54,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/pstl/glue_algorithm_defs.h:13,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/algorithm:71,
from ../include/pch.h:22,
from ../src/vcpkg/base/machinetype.cpp:1:
/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/stdio.h:222:7: error: conflicting declaration of 'char
ctermid(char)' with 'C' linkage
222 | char *ctermid(char *);
| ^~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/unistd.h:525,
from ../include/pch.h:19,
from ../src/vcpkg/base/machinetype.cpp:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/_ctermid.h:26:10: note: previous declaration with 'C++' linkage
26 | char *ctermid(char *);
| ^~~
[3/66] Building CXX object CMakeFiles/...pkglib.dir/src/vcpkg/base/checks.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/checks.cpp.o
/usr/local/bin/g++-9 -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/checks.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/checks.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/checks.cpp.o -c ../src/vcpkg/base/checks.cpp
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/wchar.h:90,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cwchar:44,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/string:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/stdexcept:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/array:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tuple:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/functional:54,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/pstl/glue_algorithm_defs.h:13,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/algorithm:71,
from ../include/pch.h:22,
from ../src/vcpkg/base/checks.cpp:1:
/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/stdio.h:222:7: error: conflicting declaration of 'char
ctermid(char)' with 'C' linkage
222 | char *ctermid(char *);
| ^~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/unistd.h:525,
from ../include/pch.h:19,
from ../src/vcpkg/base/checks.cpp:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/_ctermid.h:26:10: note: previous declaration with 'C++' linkage
26 | char *ctermid(char *);
| ^~~
[4/66] Building CXX object CMakeFiles/...lib.dir/src/vcpkg/base/downloads.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/downloads.cpp.o
/usr/local/bin/g++-9 -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/downloads.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/downloads.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/downloads.cpp.o -c ../src/vcpkg/base/downloads.cpp
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/wchar.h:90,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cwchar:44,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/string:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/stdexcept:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/array:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tuple:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/functional:54,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/pstl/glue_algorithm_defs.h:13,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/algorithm:71,
from ../include/pch.h:22,
from ../src/vcpkg/base/downloads.cpp:1:
/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/stdio.h:222:7: error: conflicting declaration of 'char
ctermid(char)' with 'C' linkage
222 | char *ctermid(char *);
| ^~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/unistd.h:525,
from ../include/pch.h:19,
from ../src/vcpkg/base/downloads.cpp:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/_ctermid.h:26:10: note: previous declaration with 'C++' linkage
26 | char *ctermid(char *);
| ^~~
[5/66] Building CXX object CMakeFiles/...ir/src/vcpkg/base/cofffilereader.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/cofffilereader.cpp.o
/usr/local/bin/g++-9 -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/cofffilereader.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/cofffilereader.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/cofffilereader.cpp.o -c ../src/vcpkg/base/cofffilereader.cpp
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/wchar.h:90,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cwchar:44,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/string:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/stdexcept:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/array:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tuple:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/functional:54,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/pstl/glue_algorithm_defs.h:13,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/algorithm:71,
from ../include/pch.h:22,
from ../src/vcpkg/base/cofffilereader.cpp:1:
/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/stdio.h:222:7: error: conflicting declaration of 'char
ctermid(char)' with 'C' linkage
222 | char *ctermid(char *);
| ^~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/unistd.h:525,
from ../include/pch.h:19,
from ../src/vcpkg/base/cofffilereader.cpp:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/_ctermid.h:26:10: note: previous declaration with 'C++' linkage
26 | char *ctermid(char *);
| ^~~
[6/66] Building CXX object CMakeFiles/...pkglib.dir/src/vcpkg/base/chrono.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/chrono.cpp.o
/usr/local/bin/g++-9 -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/chrono.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/chrono.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/chrono.cpp.o -c ../src/vcpkg/base/chrono.cpp
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/wchar.h:90,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cwchar:44,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/string:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/stdexcept:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/array:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tuple:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/functional:54,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/pstl/glue_algorithm_defs.h:13,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/algorithm:71,
from ../include/pch.h:22,
from ../src/vcpkg/base/chrono.cpp:1:
/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/stdio.h:222:7: error: conflicting declaration of 'char
ctermid(char)' with 'C' linkage
222 | char *ctermid(char *);
| ^~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/unistd.h:525,
from ../include/pch.h:19,
from ../src/vcpkg/base/chrono.cpp:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/_ctermid.h:26:10: note: previous declaration with 'C++' linkage
26 | char *ctermid(char *);
| ^~~
[7/66] Building CXX object CMakeFiles/vcpkglib.dir/src/vcpkg/base/hash.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/hash.cpp.o
/usr/local/bin/g++-9 -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/hash.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/hash.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/hash.cpp.o -c ../src/vcpkg/base/hash.cpp
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/wchar.h:90,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cwchar:44,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/string:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/stdexcept:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/array:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tuple:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/functional:54,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/pstl/glue_algorithm_defs.h:13,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/algorithm:71,
from ../include/pch.h:22,
from ../src/vcpkg/base/hash.cpp:1:
/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/stdio.h:222:7: error: conflicting declaration of 'char
ctermid(char)' with 'C' linkage
222 | char *ctermid(char *);
| ^~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/unistd.h:525,
from ../include/pch.h:19,
from ../src/vcpkg/base/hash.cpp:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/_ctermid.h:26:10: note: previous declaration with 'C++' linkage
26 | char *ctermid(char *);
| ^~~
[8/66] Building CXX object CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o
FAILED: CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o
/usr/local/bin/g++-9 -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o -MF CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o.d -o CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o -c ../src/vcpkg.cpp
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/wchar.h:90,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cwchar:44,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/string:40,
from ../include/vcpkg/base/cstringview.h:4,
from ../include/vcpkg/base/chrono.h:3,
from ../src/vcpkg.cpp:23:
/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/stdio.h:222:7: error: conflicting declaration of 'char
ctermid(char)' with 'C' linkage
222 | char *ctermid(char *);
| ^~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/unistd.h:525,
from ../src/vcpkg.cpp:20:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/_ctermid.h:26:10: note: previous declaration with 'C++' linkage
26 | char *ctermid(char *);
| ^~~
[9/66] Building CXX object CMakeFiles/vcpkglib.dir/src/vcpkg/archives.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/archives.cpp.o
/usr/local/bin/g++-9 -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/archives.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/archives.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/archives.cpp.o -c ../src/vcpkg/archives.cpp
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/wchar.h:90,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cwchar:44,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/string:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/stdexcept:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/array:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tuple:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/functional:54,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/pstl/glue_algorithm_defs.h:13,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/algorithm:71,
from ../include/pch.h:22,
from ../src/vcpkg/archives.cpp:1:
/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/stdio.h:222:7: error: conflicting declaration of 'char
ctermid(char)' with 'C' linkage
222 | char *ctermid(char *);
| ^~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/unistd.h:525,
from ../include/pch.h:19,
from ../src/vcpkg/archives.cpp:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/_ctermid.h:26:10: note: previous declaration with 'C++' linkage
26 | char *ctermid(char *);
| ^~~
[10/66] Building CXX object CMakeFiles...cpkglib.dir/src/vcpkg/base/files.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/files.cpp.o
/usr/local/bin/g++-9 -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/files.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/files.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/files.cpp.o -c ../src/vcpkg/base/files.cpp
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/wchar.h:90,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cwchar:44,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/string:40,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/stdexcept:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/array:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tuple:39,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/functional:54,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/pstl/glue_algorithm_defs.h:13,
from /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/algorithm:71,
from ../include/pch.h:22,
from ../src/vcpkg/base/files.cpp:1:
/usr/local/Cellar/gcc/9.2.0_1/lib/gcc/9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/stdio.h:222:7: error: conflicting declaration of 'char
ctermid(char*)' with 'C' linkage
222 | char *ctermid(char *);
| ^~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/unistd.h:525,
from ../include/pch.h:19,
from ../src/vcpkg/base/files.cpp:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/_ctermid.h:26:10: note: previous declaration with 'C++' linkage
26 | char *ctermid(char *);
| ^~~
ninja: build stopped: subcommand failed.

vcpkg-bug

Most helpful comment

The --allowAppleClang workaround didn't work for me. It just gave the _LIBCPP_TYPE_VIS errors like above for @roaster556.

This is on macOS 10.14.6/Mojave. I also have a home-brew gcc/g++ installed.

I then used the @bricerive workaround and edited the _ctermid.h file. This worked, in that it allowed me to build vcpkg, but it raised other issues when I tried to compile some of the ports and I had to revert the change. That was ok since vcpkg was already built.

However, a cleaner, non-invasive way to build vcpkg when this issue occurs (since I don't think it is fixed) is as follows:

 CXXFLAGS="-D_CTERMID_H_" ./bootstrap-vcpkg.sh

All 15 comments

Hi @roaster556 thanks for posting this issue.
It's duplicated with #8670. Could you please try this again?
Build with ./bootstrap-vcpkg.sh --allowAppleClang until the issue with gcc is fixed in homebrew

Okay I tried that and got this.


Last login: Mon Nov 18 12:18:29 on ttys001
MSBDMACL43951:~ hpigott$ cd vcpkg
MSBDMACL43951:vcpkg hpigott$ ./bootstrap-vcpkg.sh --allowAppleClang
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/clang++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Performing Test USES_LIBSTDCXX
-- Performing Test USES_LIBSTDCXX - Failed
-- Performing Test USES_LIBCXX
-- Performing Test USES_LIBCXX - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/hpigott/vcpkg/toolsrc/build.rel
[0/2] Re-checking globbed directories...
[1/66] Building CXX object CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o
FAILED: CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o
/Library/Developer/CommandLineTools/usr/bin/clang++ -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o -MF CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o.d -o CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o -c ../src/vcpkg.cpp
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:57:41: error: 'file_status' is unavailable: introduced in macOS 10.15
struct file_status : private stdfs::file_status
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:59:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::file_status;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:60:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::permissions;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:61:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::type;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:71:18: error: 'type' is unavailable: introduced in macOS 10.15
return s.type() == file_type::symlink;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:73:59: error: 'type' is unavailable: introduced in macOS 10.15
inline bool is_regular_file(file_status s) { return s.type() == file_type::regular; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:74:56: error: 'type' is unavailable: introduced in macOS 10.15
inline bool is_directory(file_status s) { return s.type() == file_type::directory; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:75:50: error: 'type' is unavailable: introduced in macOS 10.15
inline bool exists(file_status s) { return s.type() != file_type::not_found && s.type() != file_type::none; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:75:86: error: 'type' is unavailable: introduced in macOS 10.15
inline bool exists(file_status s) { return s.type() != file_type::not_found && s.type() != file_type::none; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:87:23: error: 'path' is unavailable: introduced in macOS 10.15
void status(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:88:23: error: 'path' is unavailable: introduced in macOS 10.15
void status(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:89:31: error: 'path' is unavailable: introduced in macOS 10.15
void symlink_status(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:90:31: error: 'path' is unavailable: introduced in macOS 10.15
void symlink_status(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:91:27: error: 'path' is unavailable: introduced in macOS 10.15
void is_symlink(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:92:27: error: 'path' is unavailable: introduced in macOS 10.15
void is_symlink(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:93:32: error: 'path' is unavailable: introduced in macOS 10.15
void is_regular_file(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:94:32: error: 'path' is unavailable: introduced in macOS 10.15
void is_regular_file(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:95:29: error: 'path' is unavailable: introduced in macOS 10.15
void is_directory(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:96:29: error: 'path' is unavailable: introduced in macOS 10.15
void is_directory(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[2/66] Building CXX object CMakeFiles/vcpkglib.dir/src/vcpkg/base/files.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/files.cpp.o
/Library/Developer/CommandLineTools/usr/bin/clang++ -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/files.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/files.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/files.cpp.o -c ../src/vcpkg/base/files.cpp
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:57:41: error: 'file_status' is unavailable: introduced in macOS 10.15
struct file_status : private stdfs::file_status
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:59:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::file_status;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:60:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::permissions;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:61:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::type;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:71:18: error: 'type' is unavailable: introduced in macOS 10.15
return s.type() == file_type::symlink;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:73:59: error: 'type' is unavailable: introduced in macOS 10.15
inline bool is_regular_file(file_status s) { return s.type() == file_type::regular; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:74:56: error: 'type' is unavailable: introduced in macOS 10.15
inline bool is_directory(file_status s) { return s.type() == file_type::directory; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:75:50: error: 'type' is unavailable: introduced in macOS 10.15
inline bool exists(file_status s) { return s.type() != file_type::not_found && s.type() != file_type::none; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:75:86: error: 'type' is unavailable: introduced in macOS 10.15
inline bool exists(file_status s) { return s.type() != file_type::not_found && s.type() != file_type::none; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:87:23: error: 'path' is unavailable: introduced in macOS 10.15
void status(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:88:23: error: 'path' is unavailable: introduced in macOS 10.15
void status(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:89:31: error: 'path' is unavailable: introduced in macOS 10.15
void symlink_status(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:90:31: error: 'path' is unavailable: introduced in macOS 10.15
void symlink_status(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:91:27: error: 'path' is unavailable: introduced in macOS 10.15
void is_symlink(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:92:27: error: 'path' is unavailable: introduced in macOS 10.15
void is_symlink(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:93:32: error: 'path' is unavailable: introduced in macOS 10.15
void is_regular_file(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:94:32: error: 'path' is unavailable: introduced in macOS 10.15
void is_regular_file(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:95:29: error: 'path' is unavailable: introduced in macOS 10.15
void is_directory(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/files.cpp:3:
../include/vcpkg/base/files.h:96:29: error: 'path' is unavailable: introduced in macOS 10.15
void is_directory(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[3/66] Building CXX object CMakeFiles/...lib.dir/src/vcpkg/base/downloads.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/downloads.cpp.o
/Library/Developer/CommandLineTools/usr/bin/clang++ -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/downloads.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/downloads.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/downloads.cpp.o -c ../src/vcpkg/base/downloads.cpp
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:57:41: error: 'file_status' is unavailable: introduced in macOS 10.15
struct file_status : private stdfs::file_status
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:59:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::file_status;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:60:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::permissions;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:61:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::type;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:71:18: error: 'type' is unavailable: introduced in macOS 10.15
return s.type() == file_type::symlink;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:73:59: error: 'type' is unavailable: introduced in macOS 10.15
inline bool is_regular_file(file_status s) { return s.type() == file_type::regular; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:74:56: error: 'type' is unavailable: introduced in macOS 10.15
inline bool is_directory(file_status s) { return s.type() == file_type::directory; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:75:50: error: 'type' is unavailable: introduced in macOS 10.15
inline bool exists(file_status s) { return s.type() != file_type::not_found && s.type() != file_type::none; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:75:86: error: 'type' is unavailable: introduced in macOS 10.15
inline bool exists(file_status s) { return s.type() != file_type::not_found && s.type() != file_type::none; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:87:23: error: 'path' is unavailable: introduced in macOS 10.15
void status(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:88:23: error: 'path' is unavailable: introduced in macOS 10.15
void status(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:89:31: error: 'path' is unavailable: introduced in macOS 10.15
void symlink_status(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:90:31: error: 'path' is unavailable: introduced in macOS 10.15
void symlink_status(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:91:27: error: 'path' is unavailable: introduced in macOS 10.15
void is_symlink(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:92:27: error: 'path' is unavailable: introduced in macOS 10.15
void is_symlink(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:93:32: error: 'path' is unavailable: introduced in macOS 10.15
void is_regular_file(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:94:32: error: 'path' is unavailable: introduced in macOS 10.15
void is_regular_file(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:95:29: error: 'path' is unavailable: introduced in macOS 10.15
void is_directory(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/downloads.cpp:3:
In file included from ../include/vcpkg/base/downloads.h:3:
../include/vcpkg/base/files.h:96:29: error: 'path' is unavailable: introduced in macOS 10.15
void is_directory(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[4/66] Building CXX object CMakeFiles/...ir/src/vcpkg/base/cofffilereader.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/cofffilereader.cpp.o
/Library/Developer/CommandLineTools/usr/bin/clang++ -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/cofffilereader.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/cofffilereader.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/cofffilereader.cpp.o -c ../src/vcpkg/base/cofffilereader.cpp
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:57:41: error: 'file_status' is unavailable: introduced in macOS 10.15
struct file_status : private stdfs::file_status
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:59:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::file_status;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:60:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::permissions;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:61:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::type;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:71:18: error: 'type' is unavailable: introduced in macOS 10.15
return s.type() == file_type::symlink;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:73:59: error: 'type' is unavailable: introduced in macOS 10.15
inline bool is_regular_file(file_status s) { return s.type() == file_type::regular; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:74:56: error: 'type' is unavailable: introduced in macOS 10.15
inline bool is_directory(file_status s) { return s.type() == file_type::directory; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:75:50: error: 'type' is unavailable: introduced in macOS 10.15
inline bool exists(file_status s) { return s.type() != file_type::not_found && s.type() != file_type::none; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:75:86: error: 'type' is unavailable: introduced in macOS 10.15
inline bool exists(file_status s) { return s.type() != file_type::not_found && s.type() != file_type::none; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:87:23: error: 'path' is unavailable: introduced in macOS 10.15
void status(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:88:23: error: 'path' is unavailable: introduced in macOS 10.15
void status(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:89:31: error: 'path' is unavailable: introduced in macOS 10.15
void symlink_status(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:90:31: error: 'path' is unavailable: introduced in macOS 10.15
void symlink_status(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:91:27: error: 'path' is unavailable: introduced in macOS 10.15
void is_symlink(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:92:27: error: 'path' is unavailable: introduced in macOS 10.15
void is_symlink(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:93:32: error: 'path' is unavailable: introduced in macOS 10.15
void is_regular_file(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:94:32: error: 'path' is unavailable: introduced in macOS 10.15
void is_regular_file(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:95:29: error: 'path' is unavailable: introduced in macOS 10.15
void is_directory(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/cofffilereader.cpp:4:
In file included from ../include/vcpkg/base/cofffilereader.h:3:
../include/vcpkg/base/files.h:96:29: error: 'path' is unavailable: introduced in macOS 10.15
void is_directory(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[5/66] Building CXX object CMakeFiles/vcpkglib.dir/src/vcpkg/base/hash.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/hash.cpp.o
/Library/Developer/CommandLineTools/usr/bin/clang++ -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/hash.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/hash.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/hash.cpp.o -c ../src/vcpkg/base/hash.cpp
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:57:41: error: 'file_status' is unavailable: introduced in macOS 10.15
struct file_status : private stdfs::file_status
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:59:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::file_status;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:60:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::permissions;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:61:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::type;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:71:18: error: 'type' is unavailable: introduced in macOS 10.15
return s.type() == file_type::symlink;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:73:59: error: 'type' is unavailable: introduced in macOS 10.15
inline bool is_regular_file(file_status s) { return s.type() == file_type::regular; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:74:56: error: 'type' is unavailable: introduced in macOS 10.15
inline bool is_directory(file_status s) { return s.type() == file_type::directory; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:75:50: error: 'type' is unavailable: introduced in macOS 10.15
inline bool exists(file_status s) { return s.type() != file_type::not_found && s.type() != file_type::none; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:75:86: error: 'type' is unavailable: introduced in macOS 10.15
inline bool exists(file_status s) { return s.type() != file_type::not_found && s.type() != file_type::none; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:87:23: error: 'path' is unavailable: introduced in macOS 10.15
void status(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:88:23: error: 'path' is unavailable: introduced in macOS 10.15
void status(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:89:31: error: 'path' is unavailable: introduced in macOS 10.15
void symlink_status(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:90:31: error: 'path' is unavailable: introduced in macOS 10.15
void symlink_status(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:91:27: error: 'path' is unavailable: introduced in macOS 10.15
void is_symlink(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:92:27: error: 'path' is unavailable: introduced in macOS 10.15
void is_symlink(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:93:32: error: 'path' is unavailable: introduced in macOS 10.15
void is_regular_file(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:94:32: error: 'path' is unavailable: introduced in macOS 10.15
void is_regular_file(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:95:29: error: 'path' is unavailable: introduced in macOS 10.15
void is_directory(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/base/hash.cpp:3:
In file included from ../include/vcpkg/base/hash.h:3:
../include/vcpkg/base/files.h:96:29: error: 'path' is unavailable: introduced in macOS 10.15
void is_directory(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[6/66] Building CXX object CMakeFiles/vcpkglib.dir/src/vcpkg/archives.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/archives.cpp.o
/Library/Developer/CommandLineTools/usr/bin/clang++ -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -std=c++1z -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/archives.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/archives.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/archives.cpp.o -c ../src/vcpkg/archives.cpp
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:57:41: error: 'file_status' is unavailable: introduced in macOS 10.15
struct file_status : private stdfs::file_status
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:59:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::file_status;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:60:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::permissions;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:61:33: error: 'file_status' is unavailable: introduced in macOS 10.15
using stdfs::file_status::type;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:491:24: note: 'file_status' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS file_status {
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:71:18: error: 'type' is unavailable: introduced in macOS 10.15
return s.type() == file_type::symlink;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:73:59: error: 'type' is unavailable: introduced in macOS 10.15
inline bool is_regular_file(file_status s) { return s.type() == file_type::regular; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:74:56: error: 'type' is unavailable: introduced in macOS 10.15
inline bool is_directory(file_status s) { return s.type() == file_type::directory; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:75:50: error: 'type' is unavailable: introduced in macOS 10.15
inline bool exists(file_status s) { return s.type() != file_type::not_found && s.type() != file_type::none; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:75:86: error: 'type' is unavailable: introduced in macOS 10.15
inline bool exists(file_status s) { return s.type() != file_type::not_found && s.type() != file_type::none; }
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:512:13: note: 'type' has been explicitly marked unavailable here
file_type type() const noexcept { return __ft_; }
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:87:23: error: 'path' is unavailable: introduced in macOS 10.15
void status(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:88:23: error: 'path' is unavailable: introduced in macOS 10.15
void status(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:89:31: error: 'path' is unavailable: introduced in macOS 10.15
void symlink_status(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:90:31: error: 'path' is unavailable: introduced in macOS 10.15
void symlink_status(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:91:27: error: 'path' is unavailable: introduced in macOS 10.15
void is_symlink(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:92:27: error: 'path' is unavailable: introduced in macOS 10.15
void is_symlink(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:93:32: error: 'path' is unavailable: introduced in macOS 10.15
void is_regular_file(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:94:32: error: 'path' is unavailable: introduced in macOS 10.15
void is_regular_file(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:95:29: error: 'path' is unavailable: introduced in macOS 10.15
void is_directory(const fs::path& p) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
In file included from ../src/vcpkg/archives.cpp:3:
In file included from ../include/vcpkg/archives.h:3:
../include/vcpkg/base/files.h:96:29: error: 'path' is unavailable: introduced in macOS 10.15
void is_directory(const fs::path& p, std::error_code& ec) = delete;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[10/66] Building CXX object CMakeFiles...pkglib.dir/src/vcpkg/base/chrono.cpp.o
ninja: build stopped: subcommand failed.
MSBDMACL43951:vcpkg hpigott$

Exact same issue for me too.

As a workaround, I manually changed /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/_ctermid.h
from

char *ctermid(char *);

to

extern "C" {
char *ctermid(char *);
}

It worked, thanks for the help.

The --allowAppleClang workaround didn't work for me. It just gave the _LIBCPP_TYPE_VIS errors like above for @roaster556.

This is on macOS 10.14.6/Mojave. I also have a home-brew gcc/g++ installed.

I then used the @bricerive workaround and edited the _ctermid.h file. This worked, in that it allowed me to build vcpkg, but it raised other issues when I tried to compile some of the ports and I had to revert the change. That was ok since vcpkg was already built.

However, a cleaner, non-invasive way to build vcpkg when this issue occurs (since I don't think it is fixed) is as follows:

 CXXFLAGS="-D_CTERMID_H_" ./bootstrap-vcpkg.sh

I'm still getting the "explicitly marked unavailable here" errors on MacOS 10.14.6. File _ctermid.h does not even exist in /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include on MacOS 10.14.6

@nhuyvan On my macOS 10.14.6 the file is at:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_ctermid.h

However, did you try this workaround which avoids having to find or edit the file:

 CXXFLAGS="-D_CTERMID_H_" ./bootstrap-vcpkg.sh

@jmcnamara Thank you for your suggestions, I tried what you suggested, but I still got these errors

In file included from ../src/vcpkg/base/system.cpp:6:
In file included from ../include/vcpkg/base/system.h:3:
../include/vcpkg/base/files.h:95:29: error: 'path' is unavailable: introduced in macOS 10.15
void is_directory(const fs::path& p) = delete;
                            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/filesystem:739:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^

@nhuyvan I get that class _LIBCPP_TYPE_VIS path warning if I use --allowAppleClang but I don't get it if I don't. Are you using it?

@jmcnamara Yeah, I've tried that too, but it still generated those similar errors for me, so weird

These were the beginning outputs when I did ./bootstrap-vcpkg.sh --allowAppleClang

~/vcpkg (master) $ ./bootstrap-vcpkg.sh --allowAppleClang
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Performing Test USES_LIBSTDCXX
-- Performing Test USES_LIBSTDCXX - Failed
-- Performing Test USES_LIBCXX
-- Performing Test USES_LIBCXX - Success
-- Configuring done
-- Generating done
-- Build files have been written to: ~/vcpkg/toolsrc/build.rel
[0/2] Re-checking globbed directories...
[1/67] Building CXX object CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o
FAILED: CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -DDISABLE_METRICS=0 -I../include -O3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.14   -std=c++1z -MD -MT CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o -MF CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o.d -o CMakeFiles/vcpkg.dir/src/vcpkg.cpp.o -c ../src/vcpkg.cpp
In file included from ../src/vcpkg.cpp:24:
../include/vcpkg/base/files.h:57:41: error: 'file_status' is unavailable: introduced in macOS 10.15
    struct file_status : private stdfs::file_status
.
.
.
.

The --allowAppleClang workaround didn't work for me. It just gave the _LIBCPP_TYPE_VIS errors like above for @roaster556.

This is on macOS 10.14.6/Mojave. I also have a home-brew gcc/g++ installed.

I then used the @bricerive workaround and edited the _ctermid.h file. This worked, in that it allowed me to build vcpkg, but it raised other issues when I tried to compile some of the ports and I had to revert the change. That was ok since vcpkg was already built.

However, a cleaner, non-invasive way to build vcpkg when this issue occurs (since I don't think it is fixed) is as follows:

 CXXFLAGS="-D_CTERMID_H_" ./bootstrap-vcpkg.sh

@jmcnamara 's solution worked for me. I'm on macos mojave 10.14.6 (18G2022)

I had the same problem. Setting CXXFLAGS didn't help for me. I worked around it by modifying "scripty/bootstrap.sh", Line 205 and use the previously installed MacPorts gcc compiler:

sudo ports install gcc9
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index 0af6b37ff..788d9e55b 100644
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -205 +205 @@ selectCXX()
-        CXX=g++
+        CXX=g++-mp-9

and then calling CXXFLAGS="-D_CTERMID_H_" ./bootstrap-vcpkg.sh.

Maybe it has something to do with the XCode11 Beta Version (see https://stackoverflow.com/questions/56924853/why-xcode-11-beta-cant-use-c17s-filesystem-header).

@nhuyvan On my macOS 10.14.6 the file is at:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_ctermid.h

However, did you try this workaround which avoids having to find or edit the file:

 CXXFLAGS="-D_CTERMID_H_" ./bootstrap-vcpkg.sh

Same problem
It works on macOS 10.15 Catalina.
Tanks a lot.

Was this page helpful?
0 / 5 - 0 ratings