Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cobyla fails CMake test with flang family compilers #165

Open
zaikunzhang opened this issue Feb 20, 2024 · 1 comment
Open

cobyla fails CMake test with flang family compilers #165

zaikunzhang opened this issue Feb 20, 2024 · 1 comment
Labels
c Issues related to the C interface or implementation cmake Issues related to CMake flang Issues related to the Flang family, i.e., Classic Flang, AOCC Flang, Arm Flang, and nvfortran

Comments

@zaikunzhang
Copy link
Member

zaikunzhang commented Feb 20, 2024

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 zaikunzhang added c Issues related to the C interface or implementation cmake Issues related to CMake flang Issues related to the Flang family, i.e., Classic Flang, AOCC Flang, Arm Flang, and nvfortran raspberry-pi Issues related to Raspberry Pi labels Feb 20, 2024
@zaikunzhang zaikunzhang removed the raspberry-pi Issues related to Raspberry Pi label Mar 16, 2024
@zaikunzhang
Copy link
Member Author

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

@zaikunzhang zaikunzhang changed the title CMake test fails on Raspberry Pi cobyla failurs CMake test with flang family compilers Mar 16, 2024
@zaikunzhang zaikunzhang changed the title cobyla failurs CMake test with flang family compilers cobyla fails CMake test with flang family compilers Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c Issues related to the C interface or implementation cmake Issues related to CMake flang Issues related to the Flang family, i.e., Classic Flang, AOCC Flang, Arm Flang, and nvfortran
Projects
None yet
Development

No branches or pull requests

1 participant