Trying to install Watchman for React Native on a fresh install of Ubuntu 20.04.
I'm using the following steps (but if there's a better way of doing it - or if you can avoid using Watchman altogether I'd be interested to hear) ...
git clone https://github.com/facebook/watchman.git -b v4.9.0 --depth 1
cd watchman/
git checkout
./autogen.sh
./configure --without-python --without-pcre --enable-lenient
make
I get the error shown below during the 'make' step.
I've seen a number of questions related to building watchman but I haven't seen this situation.
tests/integration/cppclient.cpp: In function ‘int main(int, char**)’:
tests/integration/cppclient.cpp:114:12: error: ‘TimedOut’ does not name a type
114 | } catch(TimedOut& e) {
| ^~~~~~~~
tests/integration/cppclient.cpp:120:12: error: ‘TimedOut’ does not name a type
120 | } catch(TimedOut& e) {
| ^~~~~~~~
tests/integration/cppclient.cpp:25:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
25 | system("rm -f hit");
| ~~~~~~^~~~~~~~~~~~~
tests/integration/cppclient.cpp:75:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
75 | system("touch hit");
| ~~~~~~^~~~~~~~~~~~~
tests/integration/cppclient.cpp:88:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
88 | system("rm hit");
| ~~~~~~^~~~~~~~~~
make[1]: *** [Makefile:2766: tests/integration/cppclient_t-cppclient.o] Error 1
make[1]: Leaving directory '/home/rshea/src/watchman'
make: *** [Makefile:1264: all] Error 2