[llvm-bugs] [Bug 37154] New: errors on libmariadb

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Apr 17 11:45:53 PDT 2018


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

            Bug ID: 37154
           Summary: errors on libmariadb
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: claprix at yandex.ru
                CC: llvm-bugs at lists.llvm.org

10.3 branch from https://github.com/MariaDB/server

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 at libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_autocommit at libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_change_user at libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_character_set_name at libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_client_find_plugin at libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_client_register_plugin at libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_close at libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_commit at libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_data_seek at libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_debug at libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_dump_debug_info at libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_embedded at libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_eof at libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_errno at libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_error at libmariadbclient_18" has undefined version libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_escape_string at libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_fetch_field at libmariadbclient_18" has undefined version
libmariadbclient_18"
/home/kevg/bin/ld.lld: error: <internal>: symbol
"mysql_fetch_field_direct at 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
https://github.com/MariaDB/server/commit/f91561bf54f5e2f1f97f3fddcb866898730ae343

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180417/87159ed0/attachment-0001.html>


More information about the llvm-bugs mailing list