-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
#27 doesn't build on macOS. It reports this error.
error: failed to run custom build command for `wasmtime-execute v0.0.0 (/Users/pepyakin/dev/etc/wasmtime/lib/execute)`
process didn't exit successfully: `/Users/pepyakin/dev/etc/wasmtime/target/debug/build/wasmtime-execute-60442602e4da687b/build-script-build` (exit code: 101)
--- stdout
running: "cmake" "/Users/pepyakin/dev/etc/wasmtime/lib/execute/signalhandlers" "-DCMAKE_INSTALL_PREFIX=/Users/pepyakin/dev/etc/wasmtime/target/debug/build/wasmtime-execute-bf7593e5d6264f14/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUILD_TYPE=Debug"
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/pepyakin/dev/etc/wasmtime/target/debug/build/wasmtime-execute-bf7593e5d6264f14/out/build
running: "cmake" "--build" "." "--target" "install" "--config" "Debug" "--"
Scanning dependencies of target SignalHandlers
[ 50%] Building CXX object CMakeFiles/SignalHandlers.dir/SignalHandlers.cpp.o
--- stderr
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_C_COMPILER
CMAKE_C_FLAGS
/Users/pepyakin/dev/etc/wasmtime/lib/execute/signalhandlers/SignalHandlers.cpp:332:40: error: unknown type name 'greg_t'
PC_sig(context) = reinterpret_cast<greg_t>(pc);
^
/Users/pepyakin/dev/etc/wasmtime/lib/execute/signalhandlers/SignalHandlers.cpp:332:48: error: assigning to '__uint64_t' (aka 'unsigned long long') from incompatible type 'const uint8_t *' (aka 'const unsigned char *')
PC_sig(context) = reinterpret_cast<greg_t>(pc);
^~
/Users/pepyakin/dev/etc/wasmtime/lib/execute/signalhandlers/SignalHandlers.cpp:523:9: error: unknown type name 'AutoNoteSingleThreadedRegion'
AutoNoteSingleThreadedRegion anstr;
^
/Users/pepyakin/dev/etc/wasmtime/lib/execute/signalhandlers/SignalHandlers.cpp:747:13: error: use of undeclared identifier 'pthread_attr_init'
int r = pthread_attr_init(&handlerThreadAttr);
^
/Users/pepyakin/dev/etc/wasmtime/lib/execute/signalhandlers/SignalHandlers.cpp:767:5: error: unknown type name 'pthread_t'; did you mean 'thread_t'?
pthread_t handlerThread;
^~~~~~~~~
thread_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/mach/mach_types.h:122:22: note: 'thread_t' declared here
typedef mach_port_t thread_t;
^
/Users/pepyakin/dev/etc/wasmtime/lib/execute/signalhandlers/SignalHandlers.cpp:768:9: error: use of undeclared identifier 'pthread_create'
r = pthread_create(&handlerThread, &handlerThreadAttr, MachExceptionHandlerThread, nullptr);
^
/Users/pepyakin/dev/etc/wasmtime/lib/execute/signalhandlers/SignalHandlers.cpp:772:9: error: use of undeclared identifier 'pthread_detach'
r = pthread_detach(&handlerThread);
^
/Users/pepyakin/dev/etc/wasmtime/lib/execute/signalhandlers/SignalHandlers.cpp:784:19: error: redefinition of 'kret'
kern_return_t kret = thread_set_exception_ports(thisThread,
^
/Users/pepyakin/dev/etc/wasmtime/lib/execute/signalhandlers/SignalHandlers.cpp:753:19: note: previous definition is here
kern_return_t kret;
^
8 errors generated.
make[2]: *** [CMakeFiles/SignalHandlers.dir/SignalHandlers.cpp.o] Error 1
make[1]: *** [CMakeFiles/SignalHandlers.dir/all] Error 2
make: *** [all] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit code: 2
build script failed, must exit now', /Users/pepyakin/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.35/src/lib.rs:778:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
warning: build failed, waiting for other jobs to finish...
error: build failed
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels