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

            Bug ID: 38046
           Summary: Global is external, but doesn't have external or weak
                    linkage when linking with ThinLTO
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: COFF
          Assignee: unassignedb...@nondot.org
          Reporter: l...@inglorion.net
                CC: llvm-bugs@lists.llvm.org

Error message:
Global is external, but doesn't have external or weak linkage!
[23 x i8]* @"??_C@_0BH@KGIBAJIK@Off?9heap?5backing?5store?$AA@"
LLVM ERROR: Broken module found, compilation aborted!


How to Reproduce:

Configure Chromium with args.gn:
clang_use_chrome_plugins = false
is_clang = true
is_component_build = false
is_debug = false
is_official_build = true
use_lld = true
use_thin_lto = true
symbol_level = 2

Then try to build d8:
ninja -C out/thinlto d8

This will result in the error message shown earlier.

With symbol_level = 0, the error does not occur.

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

Reply via email to