<div dir="ltr">I am trying to compile and make check with these compilers:<div>intel 2015.1.13</div><div>and </div><div>gcc 5.1.0 in the path.</div><div><br></div><div>Compiling goes fine and everything seems to link correctly.</div><div>However make check errors out in the CXX test.</div><div><br></div><div>First I get this error message:</div><div><div>./nctst        ./<a href="http://testfile.nc">testfile.nc</a></div><div>terminate called after throwing an instance of 'std::logic_error'</div><div>  what():  basic_string::_M_construct null not valid</div><div>[n-62-12-2:09803] *** Process received signal ***</div><div>[n-62-12-2:09803] Signal: Aborted (6)</div><div>[n-62-12-2:09803] Signal code:  (-6)</div><div>[n-62-12-2:09803] [ 0] /lib64/libpthread.so.0(+0xf710)[0x2aae4ac54710]</div><div>[n-62-12-2:09803] [ 1] /lib64/libc.so.6(gsignal+0x35)[0x2aae4ae94625]</div><div>[n-62-12-2:09803] [ 2] /lib64/libc.so.6(abort+0x175)[0x2aae4ae95e05]</div><div>[n-62-12-2:09803] [ 3] /zdata/groups/common/nicpa/2015-test/generic/gcc/5.1.0/lib64/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x15d)[0x2aae4a7428cd]</div><div>[n-62-12-2:09803] [ 4] /zdata/groups/common/nicpa/2015-test/generic/gcc/5.1.0/lib64/libstdc++.so.6(+0x8c936)[0x2aae4a740936]</div><div>[n-62-12-2:09803] [ 5] /zdata/groups/common/nicpa/2015-test/generic/gcc/5.1.0/lib64/libstdc++.so.6(+0x8c981)[0x2aae4a740981]</div><div>[n-62-12-2:09803] [ 6] /zdata/groups/common/nicpa/2015-test/generic/gcc/5.1.0/lib64/libstdc++.so.6(+0x8cb98)[0x2aae4a740b98]</div><div>[n-62-12-2:09803] [ 7] /zdata/groups/common/nicpa/2015-test/generic/gcc/5.1.0/lib64/libstdc++.so.6(_ZSt19__throw_logic_errorPKc+0x3f)[0x2aae4a767faf]</div><div>[n-62-12-2:09803] [ 8] ./nctst[0x461b42]</div><div>[n-62-12-2:09803] [ 9] ./nctst[0x4644b6]</div><div>[n-62-12-2:09803] [10] ./nctst[0x40c313]</div><div>[n-62-12-2:09803] [11] ./nctst[0x409f60]</div><div>[n-62-12-2:09803] [12] /lib64/libc.so.6(__libc_start_main+0xfd)[0x2aae4ae80d5d]</div><div>[n-62-12-2:09803] [13] ./nctst[0x409cb9]</div><div>[n-62-12-2:09803] *** End of error message ***</div></div><div><br></div><div><br></div><div>Secondly I change in file src/libcxx/ncmpiType.cpp:</div><div>function inq_type has 'return NULL' which cannot be done using returns of string (unless it is a pointer, which it isn't)</div><div>So I change it to an empty string:</div><div>'return ""'</div><div>(I am not sure when this is reached, but the error message changes as can be seen below, hence my suspicion is at that code segment)</div><div><br></div><div>Now I recompile and get this alternate error message:</div><div><div>./nctst        ./<a href="http://testfile.nc">testfile.nc</a></div><div>[n-62-12-2:23419] *** Process received signal ***</div><div>[n-62-12-2:23419] Signal: Segmentation fault (11)</div><div>[n-62-12-2:23419] Signal code: Address not mapped (1)</div><div>[n-62-12-2:23419] Failing at address: 0xffffffffffffffe8</div><div>[n-62-12-2:23419] [ 0] /lib64/libpthread.so.0(+0xf710)[0x2ab6b02fa710]</div><div>[n-62-12-2:23419] [ 1] /zdata/groups/common/nicpa/2015-test/generic/gcc/5.1.0/lib64/libstdc++.so.6(_ZNSo6sentryC2ERSo+0x19)[0x2ab6afe61e79]</div><div>[n-62-12-2:23419] [ 2] /zdata/groups/common/nicpa/2015-test/generic/gcc/5.1.0/lib64/libstdc++.so.6(_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l+0x29)[0x2ab6afe62589]</div><div>[n-62-12-2:23419] [ 3] /zdata/groups/common/nicpa/2015-test/generic/gcc/5.1.0/lib64/libstdc++.so.6(_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc+0x27)[0x2ab6afe629e7]</div><div>[n-62-12-2:23419] [ 4] ./nctst[0x40d4a5]</div><div>[n-62-12-2:23419] [ 5] ./nctst[0x409f60]</div><div>[n-62-12-2:23419] [ 6] /lib64/libc.so.6(__libc_start_main+0xfd)[0x2ab6b0526d5d]</div><div>[n-62-12-2:23419] [ 7] ./nctst[0x409cb9]</div><div>[n-62-12-2:23419] *** End of error message ***</div><div>make[2]: *** [testing] Segmentation fault</div></div><div><br></div><div>There seem to be something fishy with the cxx interface? </div><div>I am no expert in cxx... :( So had troubles debugging further...</div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Kind regards Nick</div></div></div>
</div></div>