Member Site › Forums › Rosetta 3 › Rosetta 3 – Build/Install › build/install difficulty on linux
- This topic has 4 replies, 3 voices, and was last updated 8 years, 3 months ago by Anonymous.
-
AuthorPosts
-
-
September 9, 2016 at 9:44 am #2507Anonymous
I have been triying to install rosetta_src_2016.32.58837_bundle on the Cray XK7 Supercomputer (Titan) at Oak Ridge NL:
cd main/source
./scons.py -j1 mode=release bin &
After appox. 2hr the following error is printed
cc1plus: warnings being treated as errors
/usr/include/c++/4.3/ext/new_allocator.h: In member function ‘std::list<protocols::pockets::spherical_coor_triplet, std::allocator<protocols::pockets::spherical_coor_triplet> > protocols::pockets::NonPlaidFingerprint::convert_cart_to_spherical_and_round(const std::list<numeric::xyzVector<double>, std::allocator<numeric::xyzVector<double> > >&)’:
/usr/include/c++/4.3/ext/new_allocator.h:108: error: ‘ray_triplet.protocols::pockets::spherical_coor_triplet::ori’ may be used uninitialized in this function
src/protocols/pockets/Fingerprint.cc:2634: note: ‘ray_triplet.protocols::pockets::spherical_coor_triplet::ori’ was declared here
scons: *** [build/src/release/linux/3.0/64/x86/gcc/4.3/default/protocols/pockets/Fingerprint.os] Error 1
scons: building terminated because of errors.
I have attached file with last 22 llines displayed during the build up to the error/termination.
If there are any thoughts/suggestions regarding this it would be appreciated.
Thanks
Jasnyderjr
-
September 9, 2016 at 2:36 pm #11845Anonymous
gcc 4.3 is fairly old at this point (last updated 2011, and you may be using an older version than that) – do you have access to a more recent compiler?
I note this is also a warning, not an error; it causes you a problem because we have warnings-as-errors activated. You can comment out the “Werror” lines in tools/build/basic.settings, or construct a YOUR_SERVER_NAME.site.settings file (by comparison to the others) that sets Werror to false for your compiler version. That may allow it to compile past the shallow warnings.
-
September 9, 2016 at 3:43 pm #11848Anonymous
BTW, did you notice and try the prebuilt binaries?
-
September 12, 2016 at 8:46 pm #11851Anonymous
I am working to fix this in the code base, but do not know how soon it would be available for you. You can make the change mentioned above and it should compile. Otherwise, if you feel comfortale changing a couple lines of code, you can implement a small change to the source code yourself to get it to compile immediately. Line 2634 of Rosetta/main/source/src/protocols/pockets/Fingerprint.cc reads “spherical_coor_triplet ray_triplet;” and the next line is a for loop. If you move “spherical_coor_triplet ray_triplet;” to be the first line after the for loop (instead of the line before), and then try to compile, that warning message will go away.
-
September 12, 2016 at 9:47 pm #11852Anonymous
If this user is going to use gcc 4.3, they’ll HAVE to do it manually via your instructions – any code you commit from this point forward will be released after the cxx11 transition, so gcc4.3 won’t compile it anyway.
-
-
AuthorPosts
- You must be logged in to reply to this topic.