https://bugs.llvm.org/show_bug.cgi?id=47353

            Bug ID: 47353
           Summary: Using LTO on PowerPC generates broken binaries
           Product: libraries
           Version: 11.0
          Hardware: Other
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedb...@nondot.org
          Reporter: pku...@anongoth.pl
                CC: llvm-bugs@lists.llvm.org, nemanja.i....@gmail.com

FreeBSD head, LLVM 11.0.0-rc2, powerpc64 elfv2

FreeBSD uses GH BC as its bc implementation. It tries to build using -flto, but
it's disabled for powerpc64, because it generates a broken bc that segfaults at
start.

I also tried to build ffmpeg 4.3.1 with --enable-lto passed to configure. -flto
is passed properly and ffmpeg builds fine. I can also compile software that
links to ffmpeg libraries. However, running such software (e.g. mpv, or just
ffmpeg itself) leads to instant segfault.

Compiling such software with GCC mitigates this issue.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to