eao197
eao197
@ngrodzitski could you take a look at this? I'm afraid I won't have time in the next two week :(
@ngrodzitski I don't have any objections.
Maybe a separate branch should be created for applying those changes and then this branch will be merged into the main 0.6-dev branch after testing?
Looks like you did: ```sh git clone https://.../restinio restinio cd restinio git checkout 0.6-fix-libatomic-issue-98 ``` and then run CMake without acquiring RESTinio dependencies like SObjectizer. That is why CMake can't...
@petterreinholdtsen A tarball is in the attachment. [restinio-libatomic-issue-98.tar.gz](https://github.com/Stiffstream/restinio/files/4873108/restinio-libatomic-issue-98.tar.gz)
This problem doesn't relate to RESTinio itself, it's a problem with SObjectizer that is used in several tests and examples. Can you disable it by using argument `-DRESTINIO_ALLOW_SOBJECTIZER=OFF` with CMake?
Hm... It seems that we should update our `sample/CMakeLists.txt` and `test/CMakeLists.txt` to exclude some project files if `RESTINIO_ALLOW_SOBJECTIZER` is turned off. I'll upload a new tarball when it will be...
Here is updated tarball. [restinio-libatomic-issue-98-20200720.tar.gz](https://github.com/Stiffstream/restinio/files/4947859/restinio-libatomic-issue-98-20200720.tar.gz) If `RESTINIO_ALLOW_SOBJECTIZER` is set to `OFF` then tests, examples, and benchmarks that require SObjectizer won't be built.
It looks like Debian on MIPS lacks not only `std::atomic` but also `std::thread`. Or there are some specific compiler/linker options for proper linking with the implementation of POSIX threads. Anyway,...
Linking to pthreads is automatically performed for samples and unit-tests because of call of `link_threads_if_necessary` in the corresponding CMake files: https://github.com/Stiffstream/restinio/blob/3d4a2dc82a66bc324abe317d4798824e83f64fba/dev/cmake/unittest.cmake#L15 https://github.com/Stiffstream/restinio/blob/accf6268cdc21e2063eccea8c45746da65aab4bc/dev/cmake/sample.cmake#L14 So I suppose there is some issue with...