Skip to content

ld.lld: error: version script assignment of 'global' to symbol 'rtapi_app_exit' failed: symbol not defined #3191

@NTULINUX

Description

@NTULINUX

Here are the steps I follow to reproduce the issue:

  1. Build with Clang/LLD 19
  2. Wait

This is what I expected to happen:

A successful compilation.

This is what happened instead:

ld.lld: error: version script assignment of 'global' to symbol 'rtapi_app_exit' failed: symbol not defined

It worked properly before this:

LLD recently changed their behavior to: --no-undefined-version by default:

https://reviews.llvm.org/D135402

Passing:

LDFLAGS="-Wl,--undefined-version" make works around the problem, however there should be a more proper fix.

Information about my hardware and software:

  • I am using this Linux distribution and version (often, shown by lsb_release -a):
  • I am using this kernel version (shown by uname -a): Linux ntu-gentoo 6.12.1-BUILD SMP Fri Nov 22 18:35:05 CST 2024 x86_64 AMD Ryzen 7 2700X Eight-Core Processor AuthenticAMD GNU/Linux
  • I am running ...
    • A binary version from linuxcnc.org (including buildbot.linuxcnc.org)
    • A binary I built myself
    • A binary version from some other source besides linuxcnc.org
  • I am using this LinuxCNC version (shown in package manager or, for git versions, scripts/get-version-from-git): Latest 2.9 or master checkout

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