Hi all,
I have built chapel with following environmental variable for the
debugging mode.
if [ "$1" == "debug" ]; then
echo "Debugging mode on"
export CHPL_DEVELOPER=1
export CHPL_COMM_DEBUG=1
export CHPL_GASNET_DEBUG=1
export GASNET_BACKTRACE=1
export CHPL_DEBUG=1
fi
The chapel compiles with no error. The hello world compiles fine. Then when
I try to compile the lulesh from the benchmark directory I get
In file included from /tmp/chpl-xxxxx-29352.deleteme/_main.c:49:0:
/tmp/chpl-xxxxx-29352.deleteme/IO.c: In function ‘open_chpl.constprop’:
/tmp/chpl-xxxxx-29352.deleteme/IO.c:1787:9: error: ‘type_tmp_chpl’ may be
used uninitialized in this function [-Werror=maybe-uninitialized]
fs_chpl = type_tmp_chpl;
^
/tmp/chpl-xxxxx-29352.deleteme/IO.c:2106:15: error:
‘_formal_tmp_error_chpl’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
*(error_chpl) = _formal_tmp_error_chpl;
^
In file included from /tmp/chpl-xxxxx-29352.deleteme/_main.c:19:0:
/tmp/chpl-xxxxx-29352.deleteme/ChapelStandard.c: In function
‘chpl__init_ChapelStandard’:
/tmp/chpl-xxxxx-29352.deleteme/LocaleModel.c:676:24: error:
‘this30.dummyFieldToAvoidWarning’ may be used uninitialized in this
function [-Werror=maybe-uninitialized]
(_args_foron_fn)->_2_b = b;
^
/tmp/chpl-xxxxx-29352.deleteme/LocaleModel.c:532:16: note:
‘this30.dummyFieldToAvoidWarning’ was declared here
localesBarrier this30;
^
cc1: all warnings being treated as errors
make[1]: *** [/tmp/chpl-xxxxx-29352.deleteme/lulesh.tmp] Error 1
error: compiling generated source [mysystem.cpp:43]
make: *** [lulesh] Error 1
Should I turn off the compiler flag -Werror=maybe-uninitialized? If yes
where is this compiler flag set from?
fyi - gcc-4.9.2
-Bibek
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users