Bug #76785 make fails due to "target pattern contains no `%'"
Submitted: 22 Apr 2015 12:12 Modified: 29 Apr 2015 10:00
Reporter: Karl-Philipp Richter Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:6.3.2-rc OS:Linux (Ubuntu 15.04)
Assigned to: CPU Architecture:Any

[22 Apr 2015 12:12] Karl-Philipp Richter
Description:
After download of source tarball of `mysql-workbench` 6.3.2-rc and invoking `cmake .`, `make` fails with error `target pattern contains no `%'`. The complete relevant output of `make`:

    Checking if we should regenerate mysql.parser files...
    plugins/migration/CMakeFiles/wbcopytables-bin.dir/build.make:161: *** target pattern contains no `%'.  Stop.
    make[1]: *** [plugins/migration/CMakeFiles/wbcopytables-bin.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    Built target sqlide

I can't check a more recent version because http://svn.mysql.com/fisheye/ is unreachable.

How to repeat:
Run `make` again. `make clean && cmake . && make` doesn't fix the failure.
[22 Apr 2015 12:15] Karl-Philipp Richter
Invoking `cmake .` in `plugins/migration` gives output

    CMake Error at CMakeLists.txt:12 (install):
      install PROGRAMS given no DESTINATION!

    CMake Error at CMakeLists.txt:23 (install):
      install TARGETS given no RUNTIME DESTINATION for executable target
      "wbcopytables-bin".

    CMake Error at CMakeLists.txt:66 (install):
      install FILES given no DESTINATION!

    CMake Warning (dev) in CMakeLists.txt:
      No cmake_minimum_required command is present.  A line of code such as

        cmake_minimum_required(VERSION 3.0)

      should be added at the top of the file.  The version specified may be lower
      if you wish to support older CMake versions for this project.  For more
      information run "cmake --help-policy CMP0000".
    This warning is for project developers.  Use -Wno-dev to suppress it.

    -- Configuring incomplete, errors occurred!
    See also "/mnt/DATA/sources/mysql-workbench-community-6.3.2/plugins/migration/CMakeFiles/CMakeOutput.log".

After `make` fails with the same error.
[29 Apr 2015 10:00] MySQL Verification Team
Hello Karl-Philipp Richter,

Thank you for the report.
I couldn't repeat this issue at my end with 6.3.2/6.3.3 src builds.
Could you please try with 6.3.3? Also, make sure you install all required pre-requisites with:

sudo apt-get install build-essential cmake cmake-data autoconf automake pkg-config libtool libzip-dev libxml2-dev \
                          libsigc++-2.0-dev libglade2-dev libgtkmm-2.4-dev libglu1-mesa-dev libgl1-mesa-glx \
                          mesa-common-dev libmysqlclient-dev libmysqlcppconn-dev uuid-dev libpixman-1-dev libpcre3-dev \
                          libgnome2-dev libgnome-keyring-dev libgtk2.0-dev libpango1.0-dev libcairo2-dev python-dev \
                          libboost-dev libctemplate-dev mysql-client python-pysqlite2 libsqlite3-dev libtinyxml-dev \
                          swig libvsqlitepp-dev libgdal-dev libproj0

Joining build log for your reference.

Thanks,
Umesh
[29 Apr 2015 10:01] MySQL Verification Team
Build details

Attachment: 76785.txt (text/plain), 591.26 KiB.