Bug #89400 8.0.4rc Compile error: /usr/bin/ld.gold: error: cannot find -lzlib

Submitted: 25 Jan 2018 10:26 Modified: 25 Jan 2018 10:43
Reporter: Roel Van de Paar Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:8.0.4rc OS:Any
Assigned to: CPU Architecture:Any
Tags: regression

[25 Jan 2018 10:26] Roel Van de Paar
Description:
Scanning dependencies of target lot0lot
[ 87%] Building CXX object unittest/gunit/innodb/lob/CMakeFiles/lot0lot.dir/lot0lot.cc.o
[ 87%] Building CXX object unittest/gunit/innodb/lob/CMakeFiles/lot0lot.dir/lot0buf.cc.o
[ 87%] Building CXX object unittest/gunit/innodb/lob/CMakeFiles/lot0lot.dir/lot0dat.cc.o
[ 87%] Building CXX object unittest/gunit/innodb/lob/CMakeFiles/lot0lot.dir/lot0lob.cc.o
[ 87%] Building CXX object unittest/gunit/innodb/lob/CMakeFiles/lot0lot.dir/fut0lst.cc.o
[ 87%] Building CXX object unittest/gunit/innodb/lob/CMakeFiles/lot0lot.dir/fil0fil.cc.o
[ 87%] Building CXX object unittest/gunit/innodb/lob/CMakeFiles/lot0lot.dir/mtr0log.cc.o
[ 87%] Building CXX object unittest/gunit/innodb/lob/CMakeFiles/lot0lot.dir/ut0dbg.cc.o
[ 87%] Building CXX object unittest/gunit/innodb/lob/CMakeFiles/lot0lot.dir/lob0int.cc.o
[ 87%] Linking CXX executable lot0lot
/usr/bin/ld.gold: error: cannot find -lzlib
collect2: error: ld returned 1 exit status
make[2]: *** [unittest/gunit/innodb/lob/lot0lot] Error 1
unittest/gunit/innodb/lob/CMakeFiles/lot0lot.dir/build.make:319: recipe for target 'unittest/gunit/innodb/lob/lot0lot' failed
make[1]: *** [unittest/gunit/innodb/lob/CMakeFiles/lot0lot.dir/all] Error 2
CMakeFiles/Makefile2:15802: recipe for target 'unittest/gunit/innodb/lob/CMakeFiles/lot0lot.dir/all' failed
make: *** [all] Error 2

How to repeat:
Centos 7.4.1708 x64, gcc 5.5, binutils 2.29.1 - not sure if it matters

git clone --recursive --depth=1 https://github.com/mysql/mysql-server.git -b 8.0 MS-8.0.4rc 
cp -R MS-8.0.4rc MS-8.0.4rc_dbg
cd MS-8.0.4rc_dbg
mkdir /tmp/boost1
cmake . -DCMAKE_BUILD_TYPE=Debug -DWITH_SSL=system -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DDEBUG_EXTNAME=OFF -DENABLE_DOWNLOADS=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/tmp/boost1 -DENABLE_DTRACE=0 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DWITH_ZLIB=system
[25 Jan 2018 10:26] Roel Van de Paar
-bash-4.2$ yum info zlib
Loaded plugins: auto-update-debuginfo, fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.optus.net
 * epel: mirror.optus.net
 * epel-debuginfo: mirror.optus.net
 * extras: mirror.ventraip.net.au
 * updates: mirror.ventraip.net.au
Installed Packages
Name        : zlib
Arch        : x86_64
Version     : 1.2.7
Release     : 17.el7
Size        : 181 k
Repo        : installed
From repo   : base
Summary     : The compression and decompression library
URL         : http://www.zlib.net/
License     : zlib and Boost
Description : Zlib is a general-purpose, patent-free, lossless data compression
            : library which is used by many different programs.

Available Packages
Name        : zlib
Arch        : i686
Version     : 1.2.7
Release     : 17.el7
Size        : 91 k
Repo        : base/7/x86_64
Summary     : The compression and decompression library
URL         : http://www.zlib.net/
License     : zlib and Boost
Description : Zlib is a general-purpose, patent-free, lossless data compression
            : library which is used by many different programs.

-bash-4.2$ rpm -ql zlib
/usr/lib64/libz.so.1
/usr/lib64/libz.so.1.2.7
/usr/share/doc/zlib-1.2.7
/usr/share/doc/zlib-1.2.7/ChangeLog
/usr/share/doc/zlib-1.2.7/FAQ
/usr/share/doc/zlib-1.2.7/README
[25 Jan 2018 10:27] Roel Van de Paar
Happens on Ubuntu 17.10 x64 also.
[25 Jan 2018 10:27] Roel Van de Paar
Looks like a new regression
[25 Jan 2018 10:31] Roel Van de Paar
Would be great to get input on this one quickly as it prevents building 8.0.4rc for testing.
[25 Jan 2018 10:35] Laurynas Biveinis
Duplicate of bug 89373
[25 Jan 2018 10:43] MySQL Verification Team
Hello Roel,

Thank you for the report.
As Laurynas pointed, this is duplicate of Bug #89373.

Thanks,
Umesh

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.044 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.