Hi,
We are setting on conan the definition "POCO_NO_FORK_EXEC" on cmake, but it still using fork.
Do you have any idea why?
self._cmake.definitions["POCO_NO_FORK_EXEC"] = True
Line:
https://github.com/pocoproject/poco/blob/master/Foundation/src/Process_UNIX.cpp#L175
Error:
[ 17%] Building CXX object source_subfolder/Foundation/CMakeFiles/Foundation.dir/src/PurgeStrategy.cpp.o
In file included from /Users/paulo/.conan/data/poco/1.11.0/_/_/build/2ae56ae15d7987b51bce4c8c70bb3f81967d89a7/source_subfolder/Foundation/src/Process.cpp:59:
/Users/paulo/.conan/data/poco/1.11.0/_/_/build/2ae56ae15d7987b51bce4c8c70bb3f81967d89a7/source_subfolder/Foundation/src/Process_UNIX.cpp:195:12: error: 'fork' is unavailable: not available on tvOS
int pid = fork();
^
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS14.5.sdk/usr/include/unistd.h:447:8: note: 'fork' has been explicitly marked unavailable here
pid_t fork(void) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
^
In file included from /Users/paulo/.conan/data/poco/1.11.0/_/_/build/2ae56ae15d7987b51bce4c8c70bb3f81967d89a7/source_subfolder/Foundation/src/Process.cpp:59:
/Users/paulo/.conan/data/poco/1.11.0/_/_/build/2ae56ae15d7987b51bce4c8c70bb3f81967d89a7/source_subfolder/Foundation/src/Process_UNIX.cpp:239:3: error: 'execvp' is unavailable: not available on tvOS
execvp(argv[0], &argv[0]);
^
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS14.5.sdk/usr/include/unistd.h:446:6: note: 'execvp' has been explicitly marked unavailable here
int execvp(const char * __file, char * const * __argv) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
^
2 errors generated.
make[2]: *** [source_subfolder/Foundation/CMakeFiles/Foundation.dir/src/Process.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [source_subfolder/Foundation/CMakeFiles/Foundation.dir/all] Error 2
make: *** [all] Error 2
poco/1.11.0:
poco/1.11.0: ERROR: Package '2ae56ae15d7987b51bce4c8c70bb3f81967d89a7' build failed
poco/1.11.0: WARN: Build folder /Users/paulo/.conan/data/poco/1.11.0/_/_/build/2ae56ae15d7987b51bce4c8c70bb3f81967d89a7
ERROR: poco/1.11.0: Error in build() method, line 223
cmake.build()
ConanException: Error 2 while executing cmake --build 'build_subfolder' '--' '-j4'
paulo ~/Developer/workspaces/cpp/conan-center-index/recipes/poco/all [master] $
Thanks.
Hi,
We are setting on conan the definition "POCO_NO_FORK_EXEC" on cmake, but it still using fork.
Do you have any idea why?
Line:
https://github.com/pocoproject/poco/blob/master/Foundation/src/Process_UNIX.cpp#L175
Error:
Thanks.