Bug #86376 Failure to perform a dry run of make
Submitted: 18 May 2017 16:46 Modified: 28 Jun 2017 13:17
Reporter: Igor Korot Email Updates:
Status: Verified Impact on me:
None 
Category:Connector / C Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[18 May 2017 16:46] Igor Korot
Description:
After downloading a source code for mySQL Connector/C I successfully configured it with CMake.
However trying to do "make -n" for a dry run fails.

The error is:

[code]
cd /home/igor/mysql-connector/extra && /usr/bin/cc  -DHAVE_CONFIG_H -DMUTEX_EVENT -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/home/igor/mysql-connector/include -I/home/igor/mysql-connector/extra/rapidjson/include -I/home/igor/mysql-connector/zlib  -Wall -Wextra -Wformat-security -Wvla -Wwrite-strings -Wdeclaration-after-statement -Werror -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DENABLED_DEBUG_SYNC -DSAFE_MUTEX   -o CMakeFiles/comp_err.dir/comp_err.c.o   -c /home/igor/mysql-connector/extra/comp_err.c
make[2]: *** No rule to make target 'mysys/libmysys.a', needed by 'extra/comp_err'.  Stop.
CMakeFiles/Makefile2:1085: recipe for target 'extra/CMakeFiles/comp_err.dir/all' failed
make[1]: *** [extra/CMakeFiles/comp_err.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
[/code]

It is on Gentoo Linux with CMkae 3.5.2.

I understand that chances this bug will be fixed is slim, but wanted to report it nevertheless as this failure should not occur.

Running an actual build (just "make") works fine though.

MariaDB is also failing to perform a "dry run" of "make".

How to repeat:
1. Download mySQL Connector/C.
2. Unpack it.
3. Change directory to where you unpack the product.
4. Execute "cmake -G "UnixMakefiles".
5. Execute "make -n".
[18 May 2017 16:47] Igor Korot
Corrected a typo in a bug summary.
[28 Jun 2017 6:50] Chiranjeevi Battula
Hello Igor Korot,

Thank you for the bug report.
Verified this behavior as described.

Thanks,
Chiranjeevi.
[28 Jun 2017 6:53] Chiranjeevi Battula
[sreraman@siv20]/export/home2/tmp/harsha/mysql-connector-c-6.1.10-src: make -n > make_ouput.txt
make[2]: *** No rule to make target 'mysys/libmysys.a', needed by 'extra/comp_err'.  Stop.
CMakeFiles/Makefile2:1085: recipe for target 'extra/CMakeFiles/comp_err.dir/all' failed
make[1]: *** [extra/CMakeFiles/comp_err.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
[28 Jun 2017 6:53] Chiranjeevi Battula
output

Attachment: make_ouput2.txt (text/plain), 17.03 KiB.

[28 Jun 2017 13:17] Igor Korot
Hi, Chiranjeevi,
So are you going to be looking into this? Will this ticket be fixed?

Not a lot of people will need to do a "dry tun", but it still fails nevertheless.