<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - "thunk creation not converged" error"
   href="https://bugs.llvm.org/show_bug.cgi?id=44071">44071</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"thunk creation not converged" error
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>ELF
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ruiu@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, peter.smith@linaro.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>It is reported by an internal user of lld that lld prints out "thunk creation
not converged" error when building Chromium Here is the error.

FAILED: libstandalonelibwebviewchromium.so
libstandalonelibwebviewchromium.so.TOC
lib.unstripped/libstandalonelibwebviewchromium.so 
python "../../build/toolchain/gcc_solink_wrapper.py"
--readelf="../../third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-readelf"
--nm="../../third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm"
--strip=../../buildtools/third_party/eu-strip/bin/eu-strip
--sofile="./lib.unstripped/libstandalonelibwebviewchromium.so"
--tocfile="./libstandalonelibwebviewchromium.so.TOC"
--output="./libstandalonelibwebviewchromium.so" --
../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared
-Wl,-soname="libstandalonelibwebviewchromium.so" -Wl,-shared,-Bsymbolic
-Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
-Wl,-z,defs -Wl,--as-needed -fuse-ld=lld -Wl,-z,max-page-size=4096
-Wl,--color-diagnostics -Wl,--no-rosegment -Wl,--exclude-libs=libgcc.a
-Wl,--exclude-libs=libvpx_assembly_arm.a --target=aarch64-linux-android21
-Wl,-mllvm,-enable-machine-outliner=never -Werror -Wl,--warn-shared-textrel
-Wl,-O2 -Wl,--gc-sections -Wl,--strip-debug -nostdlib++
--sysroot=../../third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot
-B../../third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64
-Wl,--warn-shared-textrel -fprofile-instr-generate
-Wl,--version-script=../../build/android/android_only_jni_exports.lst
-Wl,-wrap,calloc -Wl,-wrap,free -Wl,-wrap,malloc -Wl,-wrap,memalign
-Wl,-wrap,posix_memalign -Wl,-wrap,pvalloc -Wl,-wrap,realloc -Wl,-wrap,valloc
-Wl,--dynamic-linker,/system/bin/linker64 -o
"./lib.unstripped/libstandalonelibwebviewchromium.so"
@"./libstandalonelibwebviewchromium.so.rsp"
ld.lld: error: thunk creation not converged
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
 "thunk creation not converged" lld error



Here is a build configuration.

gn args:
ffmpeg_branding = "Chrome"
is_component_build = false
is_debug = false
proprietary_codecs = true
strip_absolute_paths_from_debug_symbols = true
strip_debug_info = true
symbol_level = 1
target_cpu = "arm64"
target_os = "android"
use_goma = true
use_clang_coverage = true

autoninja -C out/Release android_webview/test:libstandalonelibwebviewchromium
or
autoninja -C out/Release webview_instrumentation_apk</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>