I was alerted to a probable coding error in gamess/ddi/src/ddi_signals.c by the Clang compiler.
This was my first attempt to compile the C-language parts of GAMESS with Clang.
A Clang warning suggested Line 147 was wrong. Here are lines 146 and 147 of the ddi_signals.c source file:
/ Clean up semaphores associated with shared-memory segments /
while(smp_data = (SMP_Data *) SMP_find_end()) {
I think that should be:
while(smp_data == (SMP_Data *) SMP_find_end()) {
The compiler is an internal Cray Clang C-language compiler based on LLVM 8.0.0svn. It seems to have newer and different language parser that allowed it notice this issue.
Make sure these boxes are checked before submitting your issue - thank you!
[X ] Summary of the issue and expected results.
[X ] Description of the run environment:
operating system : SLES12 SP3
compiler: see above
math library: Cray libsci
communication library: Cray MPT 7.4 based on ANL MPICH 3.2
I was alerted to a probable coding error in gamess/ddi/src/ddi_signals.c by the Clang compiler. This was my first attempt to compile the C-language parts of GAMESS with Clang.
A Clang warning suggested Line 147 was wrong. Here are lines 146 and 147 of the ddi_signals.c source file:
/ Clean up semaphores associated with shared-memory segments / while(smp_data = (SMP_Data *) SMP_find_end()) {
I think that should be:
while(smp_data == (SMP_Data *) SMP_find_end()) {
The compiler is an internal Cray Clang C-language compiler based on LLVM 8.0.0svn. It seems to have newer and different language parser that allowed it notice this issue.
Make sure these boxes are checked before submitting your issue - thank you!