Skip to content

Bug in meson scripts when building on HPE systems #308

@jonvin73

Description

@jonvin73

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions