Skip to content

clang-18: -ffat-lto-objects gives multiple definition of `.str.llvm.0' #84167

@stsp

Description

@stsp

I made the bug reproducer.
Please do the following:

  1. git clone https://github.com/dosemu2/fdpp.git
  2. cd fdpp
  3. git checkout lto-bug
  4. ./bug.sh

Build process ending with:

/usr/bin/ld: /tmp/lto-llvm-00e3b8.o:(.rodata.str1.1+0x70): multiple definition of `.str.2.llvm.0'; /tmp/lto-llvm-98e51f.o:(.rodata.str1.1+0x5b): first defined here

Removing -ffat-lto-objects avoids the
problem, but unfortunately rpmbuild
in fedora forces this option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions