Watchman: Installation failed on ubuntu 19.10

Created on 21 Mar 2020  Â·  1Comment  Â·  Source: facebook/watchman

Ran this
git clone https://github.com/facebook/watchman.git cd watchman/ git checkout v4.9.0 sudo apt-get install -y autoconf automake build-essential python-dev libssl-dev libtool ./autogen.sh ./configure make sudo make install

Getting this error

Your build configuration:

    CC = gcc
    CPPFLAGS =  -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
    CFLAGS = -g -O2  -Wall -Wextra -Wdeclaration-after-statement -g -gdwarf-2 -fno-omit-frame-pointer
    CXX = g++
    CXXFLAGS = -g -O2 -Wall -Wextra -g -gdwarf-2 -fno-omit-frame-pointer
    LDFLAGS = 
    prefix: /usr/local
    version: 4.9.0
    state directory: /usr/local/var/run/watchman `

`make all-am
make[1]: Entering directory '/home/anirudh/Documents/watchman
[CXX __________________]
scm/Mercurial.cpp: In constructor ‘watchman::Mercurial::infoCache::infoCache(std::string)’:
scm/Mercurial.cpp:16:40: error: ‘void* memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct watchman::FileInformation’; use assignment or value-initialization instead [-Werror=class-memaccess]
16 | memset(&dirstate, 0, sizeof(dirstate));
| ^
In file included from scm/Mercurial.h:10,
from scm/Mercurial.cpp:3:
./FileInformation.h:18:8: note: ‘struct watchman::FileInformation’ declared here
18 | struct FileInformation {
| ^~~~~
cc1plus: all warnings being treated as errors
make[1]:
[Makefile:4446: scm/watchman-Mercurial.o] Error 1
make[1]: Leaving directory '/home/anirudh/Documents/watchman'
make:
[Makefile:1264: all] Error 2
CXX scm/watchman-Mercurial.o
scm/Mercurial.cpp: In constructor ‘watchman::Mercurial::infoCache::infoCache(std::string)’:
scm/Mercurial.cpp:16:40: error: ‘void
memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct watchman::FileInformation’; use assignment or value-initialization instead [-Werror=class-memaccess]
16 | memset(&dirstate, 0, sizeof(dirstate));
| ^
In file included from scm/Mercurial.h:10,
from scm/Mercurial.cpp:3:
./FileInformation.h:18:8: note: ‘struct watchman::FileInformation’ declared here
18 | struct FileInformation {
| ^
~~~~
cc1plus: all warnings being treated as errors
make: *
* [Makefile:4446: scm/watchman-Mercurial.o] Error 1

Most helpful comment

Found solution.

try ./configure --enable-lenient
inseat of ./configure

>All comments

Found solution.

try ./configure --enable-lenient
inseat of ./configure

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cpojer picture cpojer  Â·  7Comments

joseluisq picture joseluisq  Â·  7Comments

the-simian picture the-simian  Â·  5Comments

ideahitme picture ideahitme  Â·  5Comments

export-mike picture export-mike  Â·  4Comments