cobyla fails CMake test with flang family compilers
See Ubuntu 22.04: https://github.com/libprima/prima/actions/runs/8307540642 Raspberry Pi: https://github.com/equipez/prima/actions/runs/7974981157
The tests with nvfortran, flang, AOCC flang (Ubuntu) and armflang (Raspberry Pi) all fail.
-
nvfortran:cobyla_data_candcobyla_data_c_with_gdbencounter "Invalid data". -
flang:example_cobyla_c,cobyla_data_c,example_cobyla_c_with_gdb,cobyla_data_c_with_gdbencounter segfaults at line 191 of cobyla_c.f90:
! Call the C objective function
call objcon_ptr(x_sub_loc, f_sub_loc, constr_sub_loc, data_ptr)
- AOCC
flangandarmflangencounters precisely the same errors asflang.
N.B. For flang , AOCC flang, and armflang, example_cobyla_c_with_gdb and cobyla_data_c_with_gdb claim "Passed" despite the segfaults, which seems to be a bug of the test system.
Update 20240316: This is not unique to Raspberry Pi. It happens on Ubuntu 22.04 with AMD64 chip as well.