You are here

build/install difficulty on linux

5 posts / 0 new
Last post
build/install difficulty on linux

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

./ -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/ 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.



scons_error.txt10.7 KB
Post Situation: 
Fri, 2016-09-09 02:44

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 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.



Fri, 2016-09-09 07:36

BTW, did you notice and try the prebuilt binaries?

Fri, 2016-09-09 08:43

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/ 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.

Mon, 2016-09-12 13:46

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.

Mon, 2016-09-12 14:47