-
Notifications
You must be signed in to change notification settings - Fork 61
Bug in meson scripts when building on HPE systems #308
Copy link
Copy link
Closed
Description
Describe the bug
config/meson.build
and
subprojects/multicharge/config/meson.build
on line 110 have
libs = get_option('custom_libraries')
- if libs[0].startswith('-L')
There is no check here on the size of the libs array. on HPE/Cray systems generally the relevant libraries are handled by the cc/ftn wrapper scripts rather than given explicitly on the command line, so the size of libs can be zero.
This results in the if statement attempting to access element 0 of a size zero array, and the meson script fails.
To Reproduce
Attempt to build using meson where libs would be size 0
Expected behaviour
Meson does not give an error and the build proceeds
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels