ybelevi I had this error compiling in Ubuntu 17. I fixed it by remedying the "All warnings being treated as errors".
What you need to do is clone the github. Go into your bitnote directory and grep search for "Werror *"
it will show up in 2 or 3 files. You then need to VI into those files (I believe they are all cmaker files) and DELETE any place you see Werror. Save those files, recompile...it will throw the warnings but not stop compilation. In the end, the wallet works. I have been mining since last night and receiving payments.