So I did a build with the latest SVN and get an error while linking librep.so: === [ 22%] Linking CXX shared library ../../lib/libbrep.so /home/vasco/brlcad/trunk/include/bn/dvec.h:151:21: error: type ‘fastf_t[4]’ violates one definition rule [-Werror=odr] typedef fastf_t mat2d_t[4] VEC_ALIGN; ^ /home/vasco/brlcad/trunk/include/vmath.h:348:17: note: a type with different alignment is defined in another translation unit typedef fastf_t plane_t[ELEMENTS_PER_PLANE]; ^ /home/vasco/brlcad/trunk/include/bn/dvec.h:154:21: error: type ‘fastf_t[2]’ violates one definition rule [-Werror=odr] typedef fastf_t pt2d_t[2] VEC_ALIGN; ^ /home/vasco/brlcad/trunk/include/vmath.h:271:17: note: a type with different alignment is defined in another translation unit typedef fastf_t point2d_t[ELEMENTS_PER_POINT2D]; ^ lto1: all warnings being treated as errors lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status ===
I compiled it like this: $ mkdir build $ cd build $ cmake .. -DBRLCAD_BUNDLED_LIBS=ON -DBRLCAD_ENABLE_OPENCL=ON -DCMAKE_BUILD_TYPE=Release $ make -j42 with: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) -- Vasco Alexandre da Silva Costa PhD in Computer Engineering (Computer Graphics) Instituto Superior Técnico/University of Lisbon, Portugal ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel