<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 - errors on libmariadb"
   href="https://bugs.llvm.org/show_bug.cgi?id=37154">37154</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>errors on libmariadb
          </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>normal
          </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>claprix@yandex.ru
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>10.3 branch from <a href="https://github.com/MariaDB/server">https://github.com/MariaDB/server</a>

cmake -DWITHOUT_MROONGA_STORAGE_ENGINE=1 -DWITHOUT_ROCKSDB_STORAGE_ENGINE=1
-DWITHOUT_TOKUDB_STORAGE_ENGINE=1 -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld
-DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ../mariadb

-DWITHOUT_*_STORAGE_ENGINE=1 just for a build speed up.

[ 59%] Linking C shared library libmariadb.so
cd /home/kevg/work/tmp/libmariadb/libmariadb && /usr/bin/cmake -E
cmake_link_script CMakeFiles/libmariadb.dir/link.txt --verbose=1
/home/kevg/bin/clang -fPIC -fdiagnostics-color -Wl,-z,relro,-z,now
-fstack-protector --param=ssp-buffer-size=4 -fPIC -g -DENABLED_DEBUG_SYNC
-ggdb3 -DSAFE_MUTEX -DSAFEMALLOC -Wall -Wdeclaration-after-statement -Wextra
-Wformat-security -Wno-init-self -Wno-null-conversion -Wno-unused-parameter
-Wno-unused-private-field -Woverloaded-virtual -Wnon-virtual-dtor -Wvla
-Wwrite-strings -fuse-ld=lld -shared -Wl,-soname,libmariadb.so.3 -o
libmariadb.so.3 CMakeFiles/mariadb_obj.dir/__/plugins/pvio/pvio_socket.c.o
CMakeFiles/mariadb_obj.dir/__/plugins/auth/my_auth.c.o
CMakeFiles/mariadb_obj.dir/__/plugins/auth/old_password.c.o
CMakeFiles/mariadb_obj.dir/ma_array.c.o
CMakeFiles/mariadb_obj.dir/ma_charset.c.o
CMakeFiles/mariadb_obj.dir/ma_hash.c.o CMakeFiles/mariadb_obj.dir/ma_net.c.o
CMakeFiles/mariadb_obj.dir/mariadb_charset.c.o
CMakeFiles/mariadb_obj.dir/ma_time.c.o
CMakeFiles/mariadb_obj.dir/ma_default.c.o
CMakeFiles/mariadb_obj.dir/ma_errmsg.c.o
CMakeFiles/mariadb_obj.dir/mariadb_lib.c.o
CMakeFiles/mariadb_obj.dir/ma_list.c.o CMakeFiles/mariadb_obj.dir/ma_pvio.c.o
CMakeFiles/mariadb_obj.dir/ma_tls.c.o CMakeFiles/mariadb_obj.dir/ma_alloc.c.o
CMakeFiles/mariadb_obj.dir/ma_compress.c.o
CMakeFiles/mariadb_obj.dir/ma_init.c.o
CMakeFiles/mariadb_obj.dir/ma_password.c.o
CMakeFiles/mariadb_obj.dir/ma_ll2str.c.o CMakeFiles/mariadb_obj.dir/ma_sha1.c.o
CMakeFiles/mariadb_obj.dir/mariadb_stmt.c.o
CMakeFiles/mariadb_obj.dir/ma_loaddata.c.o
CMakeFiles/mariadb_obj.dir/ma_stmt_codec.c.o
CMakeFiles/mariadb_obj.dir/ma_string.c.o CMakeFiles/mariadb_obj.dir/ma_dtoa.c.o
CMakeFiles/mariadb_obj.dir/ma_client_plugin.c.o
CMakeFiles/mariadb_obj.dir/ma_io.c.o
CMakeFiles/mariadb_obj.dir/secure/openssl.c.o
CMakeFiles/mariadb_obj.dir/mariadb_dyncol.c.o
CMakeFiles/mariadb_obj.dir/mariadb_async.c.o
CMakeFiles/mariadb_obj.dir/ma_context.c.o -lpthread -lz -ldl -lm -lpthread
-lpthread -ldl -lm -lssl -lcrypto -Wl,--no-undefined mariadbclient.def 
/home/kevg/bin/ld.lld: error: duplicate symbol 'mysql_get_timeout_value' in
version script
/home/kevg/bin/ld.lld: error: duplicate symbol 'mysql_get_timeout_value_ms' in
version script
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_affected_rows@libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_autocommit@libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_change_user@libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_character_set_name@libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_client_find_plugin@libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_client_register_plugin@libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_close@libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_commit@libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_data_seek@libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_debug@libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_dump_debug_info@libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_embedded@libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_eof@libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_errno@libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_error@libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_escape_string@libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_fetch_field@libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_fetch_field_direct@libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: too many errors emitted, stopping now (use
-error-limit=0 to see all errors)
clang-6.0: error: linker command failed with exit code 1 (use -v to see
invocation)

Build works with ld.
Gold complains on incorrect VERSION usage.

I don't know what's correct behaviour but I suspect <internal> is not something
user supposed to see.

This looks like a bit useful information
<a href="https://github.com/MariaDB/server/commit/f91561bf54f5e2f1f97f3fddcb866898730ae343">https://github.com/MariaDB/server/commit/f91561bf54f5e2f1f97f3fddcb866898730ae343</a></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>