According to the error message. The trouble occurs when compiling jaqlparse
which is a function needed to install the extension jaql. Since I'm not interesting by this extension, I solved the problem by disabling
jaql` extension when configuring monetdb
./configure --diseable-jaql
sudo make
sudo make install