This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can't install vcpkg for pc-ble-driver

I'm having trouble getting the Bluetooth Low Energy desktop library (https://github.com/NordicSemiconductor/pc-ble-driver/tree/v4.1.1) set up on my Mac. My problem is occurring early on when I try to install vcpkg. After ./bootstrap-vcpkg.sh the following error message is displayed:

-- The C compiler identification is AppleClang 10.0.0.10001145
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- 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: /usr/local/bin/g++-8
-- Check for working CXX compiler: /usr/local/bin/g++-8 -- broken
CMake Error at /Downloads/vcpkg/downloads/tools/cmake-3.14.0-osx/cmake-3.14.0-Darwin-x86_64/CMake.app/Contents/share/cmake-3.14/Modules/CMakeTestCXXCompiler.cmake:53 (message):
The C++ compiler

"/usr/local/bin/g++-8"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Downloads/vcpkg/toolsrc/build.rel/CMakeFiles/CMakeTmp

Run Build Command(s):/Downloads/vcpkg/downloads/tools/ninja-1.8.2-osx/ninja cmTC_b7546
[1/2] Building CXX object CMakeFiles/cmTC_b7546.dir/testCXXCompiler.cxx.o
FAILED: CMakeFiles/cmTC_b7546.dir/testCXXCompiler.cxx.o
/usr/local/bin/g++-8 -o CMakeFiles/cmTC_b7546.dir/testCXXCompiler.cxx.o -c testCXXCompiler.cxx
dyld: Library not loaded: /usr/local/opt/isl/lib/libisl.19.dylib
Referenced from: /usr/local/Cellar/gcc/8.3.0/libexec/gcc/x86_64-apple-darwin17.7.0/8.3.0/cc1plus
Reason: image not found
g++-8: internal compiler error: Abort trap: 6 signal terminated program cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See <github.com/.../issues> for instructions.
ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)


-- Configuring incomplete, errors occurred!
See also "/Downloads/vcpkg/toolsrc/build.rel/CMakeFiles/CMakeOutput.log".
See also "/Downloads/vcpkg/toolsrc/build.rel/CMakeFiles/CMakeError.log".

Any advice? I can't find any solutions online. 

EDIT: It seemed to me that the problem was that it wasn't locating gcc6 as the CXX compiler so I deleted /usr/local/bin/g++-8. Even still, it seems like it's not finding that I have gcc6 installed since now I get the error message:

Building the vcpkg tool requires support for the C++ Filesystem TS.

Apple clang versions 10.01 and below do not have support for it.

Please install gcc6 or newer from homebrew (brew install gcc6).

If you would like to try anyway, pass --allowAppleClang to bootstrap.sh.


-- Configuring incomplete, errors occurred!

Related