prima icon indicating copy to clipboard operation
prima copied to clipboard

cobyla fails CMake test with flang family compilers

Open zaikunzhang opened this issue 2 years ago • 1 comments

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.

  1. nvfortran: cobyla_data_c and cobyla_data_c_with_gdb encounter "Invalid data".

  2. flang: example_cobyla_c, cobyla_data_c, example_cobyla_c_with_gdb, cobyla_data_c_with_gdb encounter 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)
  1. AOCC flang and armflang encounters precisely the same errors as flang.

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.

zaikunzhang avatar Feb 20 '24 05:02 zaikunzhang

Update 20240316: This is not unique to Raspberry Pi. It happens on Ubuntu 22.04 with AMD64 chip as well.

zaikunzhang avatar Mar 16 '24 12:03 zaikunzhang