MySQL Forums
Forum List  »  Source, Builds, Binaries

source file changes are not compiled
Posted by: yx jiang
Date: December 27, 2016 01:25AM

If I do 'make' after 'make clean', it will compile normally.

version:5.6.17
OS :CentOS7
cmake instruction:
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/jiangyx/work/mysql/mysql-5.7.17 -DWITH_BOOST=/home/jiangyx/ops/mysql/mysql-5.7.17/boost

Real process
Modify log_event.cc with grammar error like below.
=====
ev= new Update_rows_log_event((const char*) ptr, size, &fd_evt);
asasdwerwer = asdwer;
print(abcd);
=====
then type make. It will compile without error reporting.

I have tried to remove building object in build directory like below.But not work
=====
find . -name 'log_event*' | xargs rm
find . -name 'mysqlbinlog' | xargs rm
find . -name '*.a' | xargs rm
find . -name '*.so' | xargs rm
=====

It seems that building tools always use the old version source file.

Options: ReplyQuote


Subject
Views
Written By
Posted
source file changes are not compiled
477
December 27, 2016 01:25AM
259
December 27, 2016 01:36AM
240
December 27, 2016 02:42AM
210
December 27, 2016 03:02AM
199
December 27, 2016 09:46PM


Sorry, you can't reply to this topic. It has been closed.

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.