Skip to content

C++ / libunwind pulls in stderr reference #525

@nolange

Description

@nolange

Using C++ will pull in the unwind library. Apparently this is a debug build, adding assertions and outputting to stderr.

the basic libraries should not have these dependencies, its possibly to get along without using stdio in small projects

ld.lld: error: undefined symbol: stderr
>>> referenced by UnwindLevel1-gcc-ext.c
>>>               UnwindLevel1-gcc-ext.c.obj:(_Unwind_Backtrace) in archive /opt/arm-clang/lib/clang-runtimes/arm-none-eabi/armv5te_exn_rtti/lib/libc++.a
>>> referenced by UnwindLevel1-gcc-ext.c
>>>               UnwindLevel1-gcc-ext.c.obj:(_Unwind_GetIPInfo) in archive /opt/arm-clang/lib/clang-runtimes/arm-none-eabi/armv5te_exn_rtti/lib/libc++.a
>>> referenced by libunwind.cpp
>>>               libunwind.cpp.obj:(__unw_init_local) in archive /opt/arm-clang/lib/clang-runtimes/arm-none-eabi/armv5te_exn_rtti/lib/libc++.a

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