Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 621272

Summary: dev-db/mariadb-10.0.30 - CMake Error: Your current linker does not support VERSION command
Product: Gentoo Linux Reporter: Alex <bechkov>
Component: Current packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: CMakeError.log
output of `emerge --info '=dev-db/mariadb-10.0.30::gentoo'`
output of `emerge -pqv '=dev-db/mariadb-10.0.30::gentoo'`
complete build log
The ebuild environment file

Description Alex 2017-06-09 09:57:48 UTC
Created attachment 475696 [details]
CMakeError.log

Can't emerge dev-db/mariadb, i've tried some versions and use flags(-openssl +yassl), result is the same. Emerge output gives: 

-- Performing Test SUPPORTS_VERSION_IN_LINK_SCRIPT
-- Performing Test SUPPORTS_VERSION_IN_LINK_SCRIPT - Failed
CMake Error at libmysql/CMakeLists.txt:289 (MESSAGE):
  Your current linker does not support VERSION command in linker scripts like
  a GNU ld or any compatible linker should.  Perhaps you're using gold?
  Either switch to GNU ld compatible linker or run cmake with
  -DDISABLE_LIBMYSQLCLIENT_SYMBOL_VERSIONING=TRUE to be able to complete the
  build

and in /var/tmp/portage/dev-db/mariadb-10.0.30/work/mysql-abi_x86_32.x86/CMakeFiles/CMakeError.log i get large number of errors
Comment 1 Alex 2017-06-09 10:00:14 UTC
Created attachment 475698 [details]
output of `emerge --info '=dev-db/mariadb-10.0.30::gentoo'`
Comment 2 Alex 2017-06-09 10:00:42 UTC
Created attachment 475700 [details]
output of `emerge -pqv '=dev-db/mariadb-10.0.30::gentoo'`
Comment 3 Alex 2017-06-09 10:02:25 UTC
Created attachment 475702 [details]
complete build log
Comment 4 Alex 2017-06-09 10:03:03 UTC
Created attachment 475704 [details]
The ebuild environment file
Comment 5 Alex 2017-06-09 10:06:52 UTC
please help, for few months can't update the system
Comment 6 Alex 2017-06-09 10:56:06 UTC
Probably the key is "undefined reference to `mbscmp'", but i don't know how to fix it
Comment 7 Brian Evans (RETIRED) gentoo-dev 2017-06-09 12:38:41 UTC
Please make sure that binutils-config has the latest version selected.

In addition, try 10.0.31 which is in portage if that does not help
Comment 8 Alex 2017-06-10 06:59:04 UTC
Hi, Brian, thank you
I have last version of binutils-config

# equery l binutils-config
 * Searching for binutils-config ...
[IP-] [  ] sys-devel/binutils-config-5-r3:0

And as i noted, i've tried different versions, even 10.1.24.
Of cause i tried again 10.0.31, but the result was expected: 

 * ERROR: dev-db/mariadb-10.0.31::gentoo failed (configure phase):
 *   cmake failed
Comment 9 Alex 2017-06-10 07:04:42 UTC
Sorry, Brian, for my stupid answer)
Switching to i686-pc-linux-gnu-2.26.1 helped.
Thank you!