rdkit / rdkit

The official sources for the RDKit library
BSD 3-Clause "New" or "Revised" License
2.51k stars 851 forks source link

RDKIT Build Error #7514

Closed Suganesh-repo closed 2 weeks ago

Suganesh-repo commented 2 weeks ago

Trying to build MinimalLib, Getting error. Unable to generate Minimal js and wasm.

make[1]: *** [CMakeFiles/Makefile2:6904: Code/MinimalLib/CMakeFiles/RDKit_minimal.dir/rule] Error 2
make: *** [Makefile:2214: RDKit_minimal] Error 2
In file included from /Users/sugan/Desktop/rdkit_2/rdkit-temp/src/rdkit/Code/GraphMol/MolInterchange/Parser.cpp:43:
/Users/sugan/Desktop/rdkit_2/rdkit-temp/src/rdkit/External/rapidjson-1.1.0/include/rapidjson/document.h:319:82: error: cannot assign to non-static data member 'length' with const-qualified type 'const SizeType' (aka 'const unsigned int')
  319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
      |                                                                           ~~~~~~ ^
/Users/sugan/Desktop/rdkit_2/rdkit-temp/src/rdkit/External/rapidjson-1.1.0/include/rapidjson/document.h:325:20: note: non-static data member 'length' declared const here
  325 |     const SizeType length; //!< length of the string (excluding the trailing NULL terminator)
      |     ~~~~~~~~~~~~~~~^~~~~~

I am on, MacBook M2 Pro boost 1.72.0 latest RDKit(master)

Suganesh-repo commented 2 weeks ago

It was due to rapidjson lib.