Skip to content

regression under openbsd: undefined reference to _Unwind_Resume #24108

Closed
@semarie

Description

@semarie

I have noted a regression in make check starting from 263fdfe (found with bisect).

the failing test is one of doc-trpl-no-stdlib. The fail occurs with stage1 and with stage2 (it have help a lot for bisect: only 50 min for 1 step of bisect)

I extract the example to a standalone file, and manually run rustc: the error is a linking error:

original.o(.text._ZN6option15Option$LT$T$GT$8and_then21h10563965396030871015E+0xa0): In function `option::Option$LT$T$GT$::and_then::h10563965396030871015': undefined reference to `_Unwind_Resume'

it seems -lgcc isn't passed by rustc, whereas the symbol _Unwind_Resume was present in option::Option<T>::and_then.

Any help would be appreciate.

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