You are here

Variable unitialized warnings during compilation of Rosetta 3.5

2 posts / 0 new
Last post
Variable unitialized warnings during compilation of Rosetta 3.5
#1

I am getting a lot of "unitialized" warnings during compilation of rosetta 3.5. See examples below (there is a lot more). I am using Ubuntu 14.04 amd64. I have gcc 4.8 and 4.7 installed. I am compiling with ./scons.py -j1 mode=release cxx_ver=4.7 bin.

g++ -o build/src/release/linux/3.13/64/x86/gcc/4.7/default/protocols/enzdes/AddorRemoveCsts.os -c -std=c++98 -isystem external/boost_1_46_1/ -pipe -ffor-scope -Wall -Wextra -pedantic -Wno-long-long -O3 -ffast-math -funroll-loops -finline-functions -finline-limit=20000 -s -Wno-unused-variable -fPIC -DNDEBUG -Isrc -Iexternal/include -Isrc/platform/linux/64/gcc/4.7 -Isrc/platform/linux/64/gcc -Isrc/platform/linux/64 -Isrc/platform/linux -Iexternal/boost_1_46_1 -Iexternal/dbio -I/usr/include -I/usr/local/include src/protocols/enzdes/AddorRemoveCsts.cc
In file included from src/protocols/enzdes/AddorRemoveCsts.cc:23:0:
src/utility/tag/Tag.hh: In member function 'T utility::tag::Tag::getOption(const string&, const T&) const [with T = bool; std::string = std::basic_string<char>]':
src/utility/tag/Tag.hh:81:5: warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized]
T t;
^

g++ -o build/src/release/linux/3.13/64/x86/gcc/4.7/default/protocols/enzdes/EnzdesMovers.os -c -std=c++98 -isystem external/boost_1_46_1/ -pipe -ffor-scope -Wall -Wextra -pedantic -Wno-long-long -O3 -ffast-math -funroll-loops -finline-functions -finline-limit=20000 -s -Wno-unused-variable -fPIC -DNDEBUG -Isrc -Iexternal/include -Isrc/platform/linux/64/gcc/4.7 -Isrc/platform/linux/64/gcc -Isrc/platform/linux/64 -Isrc/platform/linux -Iexternal/boost_1_46_1 -Iexternal/dbio -I/usr/include -I/usr/local/include src/protocols/enzdes/EnzdesMovers.cc
In file included from src/protocols/enzdes/EnzdesMovers.cc:29:0:
src/utility/tag/Tag.hh: In member function 'T utility::tag::Tag::getOption(const string&, const T&) const [with T = double; std::string = std::basic_string<char>]':
src/utility/tag/Tag.hh:81:5: warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized]
T t;
^
src/protocols/enzdes/EnzdesMovers.cc: In member function 'virtual void protocols::enzdes::PredesignPerturbMover::parse_my_tag(utility::tag::TagPtr, protocols::moves::DataMap&, const Filters_map&, const Movers_map&, const core::pose::Pose&)':
src/protocols/enzdes/EnzdesMovers.cc:356:69: warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized]
dock_trials_ = tag -> getOption< core::Size >( "dock_trials", 100 );

g++ -o build/src/release/linux/3.13/64/x86/gcc/4.7/default/protocols/sic_dock/SICFast.os -c -std=c++98 -isystem external/boost_1_46_1/ -pipe -ffor-scope -Wall -Wextra -pedantic -Wno-long-long -O3 -ffast-math -funroll-loops -finline-functions -finline-limit=20000 -s -Wno-unused-variable -fPIC -DNDEBUG -Isrc -Iexternal/include -Isrc/platform/linux/64/gcc/4.7 -Isrc/platform/linux/64/gcc -Isrc/platform/linux/64 -Isrc/platform/linux -Iexternal/boost_1_46_1 -Iexternal/dbio -I/usr/include -I/usr/local/include src/protocols/sic_dock/SICFast.cc
In file included from src/numeric/xyz.functions.hh:24:0,
from src/protocols/sic_dock/types.hh:12,
from src/protocols/sic_dock/xyzStripeHashPose.hh:14,
from src/protocols/sic_dock/SICFast.cc:7:
src/numeric/xyzVector.hh: In member function 'ObjexxFCL::FArray2< <template-parameter-1-1> >& ObjexxFCL::FArray2< <template-parameter-1-1> >::to_default() [with T = numeric::xyzVector<double>]':
src/numeric/xyzVector.hh:175:4: warning: '<anonymous>.numeric::xyzVector<double>::x_' may be used uninitialized in this function [-Wmaybe-uninitialized]
x_ = v.x_;
^
In file included from src/ObjexxFCL/FArray1.hh:20:0,
from src/ObjexxFCL/FArray1D.hh:20,
from src/core/kinematics/FoldTree.hh:30,
from src/core/pose/util.tmpl.hh:110,
from src/core/pose/util.hh:45,
from src/protocols/sic_dock/SICFast.cc:23:
src/ObjexxFCL/FArray.hh:655:53: note: '<anonymous>' was declared here
std::fill_n( array_, size_, Traits::initial_value() );
^
In file included from src/numeric/xyz.functions.hh:24:0,
from src/protocols/sic_dock/types.hh:12,
from src/protocols/sic_dock/xyzStripeHashPose.hh:14,
from src/protocols/sic_dock/SICFast.cc:7:
src/numeric/xyzVector.hh:176:4: warning: '<anonymous>.numeric::xyzVector<double>::y_' may be used uninitialized in this function [-Wmaybe-uninitialized]
y_ = v.y_;
^
In file included from src/ObjexxFCL/FArray1.hh:20:0,
from src/ObjexxFCL/FArray1D.hh:20,
from src/core/kinematics/FoldTree.hh:30,
from src/core/pose/util.tmpl.hh:110,
from src/core/pose/util.hh:45,
from src/protocols/sic_dock/SICFast.cc:23:
src/ObjexxFCL/FArray.hh:655:53: note: '<anonymous>' was declared here
std::fill_n( array_, size_, Traits::initial_value() );
^
In file included from src/numeric/xyz.functions.hh:24:0,
from src/protocols/sic_dock/types.hh:12,
from src/protocols/sic_dock/xyzStripeHashPose.hh:14,
from src/protocols/sic_dock/SICFast.cc:7:
src/numeric/xyzVector.hh:177:4: warning: '<anonymous>.numeric::xyzVector<double>::z_' may be used uninitialized in this function [-Wmaybe-uninitialized]
z_ = v.z_;
^
In file included from src/ObjexxFCL/FArray1.hh:20:0,
from src/ObjexxFCL/FArray1D.hh:20,
from src/core/kinematics/FoldTree.hh:30,
from src/core/pose/util.tmpl.hh:110,
from src/core/pose/util.hh:45,
from src/protocols/sic_dock/SICFast.cc:23:
src/ObjexxFCL/FArray.hh:655:53: note: '<anonymous>' was declared here
std::fill_n( array_, size_, Traits::initial_value() );
^
In file included from src/numeric/xyz.functions.hh:24:0,
from src/protocols/sic_dock/types.hh:12,
from src/protocols/sic_dock/xyzStripeHashPose.hh:14,
from src/protocols/sic_dock/SICFast.cc:7:
src/numeric/xyzVector.hh: In member function 'ObjexxFCL::FArray< <template-parameter-1-1> >& ObjexxFCL::FArray< <template-parameter-1-1> >::to_default() [with T = numeric::xyzVector<double>]':
src/numeric/xyzVector.hh:175:4: warning: '<anonymous>.numeric::xyzVector<double>::x_' may be used uninitialized in this function [-Wmaybe-uninitialized]
x_ = v.x_;
^
In file included from src/ObjexxFCL/FArray1.hh:20:0,
from src/ObjexxFCL/FArray1D.hh:20,
from src/core/kinematics/FoldTree.hh:30,
from src/core/pose/util.tmpl.hh:110,
from src/core/pose/util.hh:45,
from src/protocols/sic_dock/SICFast.cc:23:
src/ObjexxFCL/FArray.hh:655:53: note: '<anonymous>' was declared here
std::fill_n( array_, size_, Traits::initial_value() );
^
In file included from src/numeric/xyz.functions.hh:24:0,
from src/protocols/sic_dock/types.hh:12,
from src/protocols/sic_dock/xyzStripeHashPose.hh:14,
from src/protocols/sic_dock/SICFast.cc:7:
src/numeric/xyzVector.hh:176:4: warning: '<anonymous>.numeric::xyzVector<double>::y_' may be used uninitialized in this function [-Wmaybe-uninitialized]
y_ = v.y_;
^
In file included from src/ObjexxFCL/FArray1.hh:20:0,
from src/ObjexxFCL/FArray1D.hh:20,
from src/core/kinematics/FoldTree.hh:30,
from src/core/pose/util.tmpl.hh:110,
from src/core/pose/util.hh:45,
from src/protocols/sic_dock/SICFast.cc:23:
src/ObjexxFCL/FArray.hh:655:53: note: '<anonymous>' was declared here
std::fill_n( array_, size_, Traits::initial_value() );
^
In file included from src/numeric/xyz.functions.hh:24:0,
from src/protocols/sic_dock/types.hh:12,
from src/protocols/sic_dock/xyzStripeHashPose.hh:14,
from src/protocols/sic_dock/SICFast.cc:7:
src/numeric/xyzVector.hh:177:4: warning: '<anonymous>.numeric::xyzVector<double>::z_' may be used uninitialized in this function [-Wmaybe-uninitialized]
z_ = v.z_;
^
In file included from src/ObjexxFCL/FArray1.hh:20:0,
from src/ObjexxFCL/FArray1D.hh:20,
from src/core/kinematics/FoldTree.hh:30,
from src/core/pose/util.tmpl.hh:110,
from src/core/pose/util.hh:45,
from src/protocols/sic_dock/SICFast.cc:23:
src/ObjexxFCL/FArray.hh:655:53: note: '<anonymous>' was declared here
std::fill_n( array_, size_, Traits::initial_value() );
^

Category: 
Post Situation: 
Mon, 2014-12-01 05:26
cossio

Those shouldn't be a problem, so long as they're just warnings. A good way to check is to re-run the (identical) scons command again after it completes. If you continue to get errors, then there's a problem. If things compiled, you'll get a few brief messages from the scons system, but no compiler commands printed, and no messages about warnings or errors.

Mon, 2014-12-01 07:01
rmoretti