Opened 6 years ago

Closed 5 years ago

#57273 closed defect (duplicate)

mysql57 fails to configure on Mojave with ld64 installed without +ld64_xcode

Reported by: danmurray2k Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: ld64 mysql57

Description

I'm trying to install a MAMP environment on my iMac and get stuck on installing the mysql57 port, with the following error at configuration:

--->  Configuring mysql57
Error: Failed to configure mysql57: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql57/mysql57/main.log for details.

I'm attaching the log.

Attachments (1)

main.log (55.8 KB) - added by danmurray2k 6 years ago.

Download all attachments as: .zip

Change History (18)

Changed 6 years ago by danmurray2k

Attachment: main.log added

comment:1 Changed 6 years ago by mf2k (Frank Schima)

The Milestone field is for use by Macports team members only, please do not set it.

comment:2 Changed 6 years ago by mf2k (Frank Schima)

Milestone: MacPorts 2.6.0

comment:3 Changed 6 years ago by mf2k (Frank Schima)

In the future, please fill in the Port field and add the port maintainer(s) to Cc (port info --maintainers mysql57), if any.

comment:4 Changed 6 years ago by mf2k (Frank Schima)

Owner: set to pixilla
Port: mysql57 added
Status: newassigned

comment:5 Changed 6 years ago by mf2k (Frank Schima)

Summary: mysql57-server fails install on macos mojavemysql57 fails install on macos mojave

comment:6 Changed 6 years ago by jmroot (Joshua Root)

Looks like #53784. Do you have ld64 installed? If so, and if it's not installed with the ld64_xcode variant, try reinstalling it with that.

comment:7 Changed 6 years ago by danmurray2k

Hi there

So ‘sudo port install ld64_xcode’ is a prerequisite for ‘sudo port install mysql57-server’?

comment:8 Changed 6 years ago by danmurray2k

Can you clarify what ld64_xcode is ? I've been using macports since leopard and haven't come across it and google's not helping

comment:9 Changed 6 years ago by kencu (Ken)

$ port -v installed | grep ld
  ld64 @3_1+ld64_xcode (active) platform='darwin 18' archs='x86_64' date='2018-09-29T15:50:39-0700'
  ld64-xcode @2_1 (active) platform='darwin 18' archs='x86_64' date='2018-09-29T15:50:37-0700'

comment:10 Changed 6 years ago by kencu (Ken)

Hmmm...

$ sudo port -v install mysql57-server

two or three minutes of activity...

$ port -v installed | grep mysql
  mysql57 @5.7.17_0 (active) platform='darwin 18' archs='x86_64' date='2018-10-07T13:43:33-0700'
  mysql57-server @5.7.17_0 (active) platform='darwin 18' archs='noarch' date='2018-10-07T13:44:52-0700'
  mysql_select @0.1.2_3 (active) platform='darwin 18' archs='noarch' date='2018-10-07T13:43:24-0700'

comment:11 Changed 6 years ago by danmurray2k

Exact same steps...

sudo port -v install mysql57-server

Very quickly then....

--->  Computing dependencies for mysql57-server..
The following dependencies will be installed:  mysql57
Continue? [Y/n]: Y
--->  Configuring mysql57
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql57/mysql57/work/build" && /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX='/opt/local' -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_C_COMPILER="$CC" -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/opt/local;/usr" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -Wno-dev -DCMAKE_INSTALL_NAME_DIR:STRING=/opt/local/lib/mysql57/mysql -DINSTALL_LAYOUT:STRING=MACPORTS -DSYSCONFDIR:PATH=/opt/local/etc/mysql57 -DMYSQL_UNIX_ADDR:PATH=/opt/local/var/run/mysql57/mysqld.sock -DMYSQL_DATADIR:PATH=/opt/local/var/db/mysql57 -DDEFAULT_CHARSET:STRING=utf8 -DDEFAULT_COLLATION:STRING=utf8_general_ci -DWITH_EMBEDDED_SERVER:BOOL=ON -DWITH_ZLIB:STRING=system -DWITH_UNIT_TESTS:BOOL=ON -DENABLE_DOWNLOADS:BOOL=OFF -DENABLE_GCOV:BOOL=OFF -DENABLE_DTRACE:BOOL=OFF -DWITH_LIBWRAP:BOOL=OFF -DWITH_SSL:STRING=bundled -DWITH_INNODB_MEMCACHED=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql57/mysql57/work/mysql-5.7.17/../boost_1_59_0 -DDOWNLOAD_BOOST_TIMEOUT=2400 -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.14" -DCMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql57/mysql57/work/mysql-5.7.17 
-- Running cmake version 3.12.3
-- Configuring with MAX_INDEXES = 64U
-- The C compiler identification is AppleClang 10.0.0.10001145
-- The CXX compiler identification is AppleClang 10.0.0.10001145
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- broken
CMake Error at /opt/local/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "/usr/bin/clang"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql57/mysql57/work/build/CMakeFiles/CMakeTmp
    
    Run Build Command:"/usr/bin/make" "cmTC_f7dab/fast"
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_f7dab.dir/build.make CMakeFiles/cmTC_f7dab.dir/build
    Building C object CMakeFiles/cmTC_f7dab.dir/testCCompiler.c.o
    /usr/bin/clang   -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14   -o CMakeFiles/cmTC_f7dab.dir/testCCompiler.c.o   -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql57/mysql57/work/build/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_f7dab
    /opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f7dab.dir/link.txt --verbose=1
    /usr/bin/clang -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk  CMakeFiles/cmTC_f7dab.dir/testCCompiler.c.o  -o cmTC_f7dab 
    ld: in '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/system/libmacho.tbd', file too small (length=0) for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [cmTC_f7dab] Error 1
    make: *** [cmTC_f7dab/fast] Error 2
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:125 (PROJECT)


-- Configuring incomplete, errors occurred!
See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql57/mysql57/work/build/CMakeFiles/CMakeOutput.log".
See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql57/mysql57/work/build/CMakeFiles/CMakeError.log".
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql57/mysql57/work/build" && /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX='/opt/local' -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_C_COMPILER="$CC" -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/opt/local;/usr" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -Wno-dev -DCMAKE_INSTALL_NAME_DIR:STRING=/opt/local/lib/mysql57/mysql -DINSTALL_LAYOUT:STRING=MACPORTS -DSYSCONFDIR:PATH=/opt/local/etc/mysql57 -DMYSQL_UNIX_ADDR:PATH=/opt/local/var/run/mysql57/mysqld.sock -DMYSQL_DATADIR:PATH=/opt/local/var/db/mysql57 -DDEFAULT_CHARSET:STRING=utf8 -DDEFAULT_COLLATION:STRING=utf8_general_ci -DWITH_EMBEDDED_SERVER:BOOL=ON -DWITH_ZLIB:STRING=system -DWITH_UNIT_TESTS:BOOL=ON -DENABLE_DOWNLOADS:BOOL=OFF -DENABLE_GCOV:BOOL=OFF -DENABLE_DTRACE:BOOL=OFF -DWITH_LIBWRAP:BOOL=OFF -DWITH_SSL:STRING=bundled -DWITH_INNODB_MEMCACHED=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql57/mysql57/work/mysql-5.7.17/../boost_1_59_0 -DDOWNLOAD_BOOST_TIMEOUT=2400 -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.14" -DCMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql57/mysql57/work/mysql-5.7.17 
Exit code: 1
Error: Failed to configure mysql57: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mysql57/mysql57/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port mysql57-server failed

And perhaps predictably...

 port -v installed | grep mysql

Gives...

  mysql_select @0.1.2_3 (active) platform='darwin 18' archs='noarch' date='2018-10-06T22:31:26+0100'

comment:12 Changed 6 years ago by kencu (Ken)

I would proceed like so:

sudo port clean mysql57
sudo port uninstall ld64
sudo port -v install ld64 +ld64_xcode
sudo port -v install mysql57-server

Please try that, and report back any errors.

Last edited 6 years ago by kencu (Ken) (previous) (diff)

comment:13 Changed 6 years ago by danmurray2k

Smashed it, that fixed it.

Was it just a bad install of MacPorts?

Much obliged.

comment:14 Changed 6 years ago by rlhamil

Same solution worked for me.

Shouldn't the port check for this, and either tell you what to do, or ensure correct prerequisites are installed?

comment:15 Changed 6 years ago by jmroot (Joshua Root)

Port: ld64 added
Summary: mysql57 fails install on macos mojavemysql57 fails to configure on Mojave with ld64 installed without +ld64_xcode

It's not that mysql57 requires ld64 +ld64_xcode, but rather that ld64's other variants are incompatible with recent Xcode versions. New installations of ld64 will use the right variant by default, but if you already had it installed with a different variant, that variant will stay selected.

I guess the right (temporary) solution would be to not offer the other variants when they won't work. It was hoped that #53784 would be resolved sooner, providing a real fix.

comment:16 Changed 6 years ago by mf2k (Frank Schima)

Owner: pixilla deleted

See #57827

comment:17 Changed 5 years ago by kencu (Ken)

Resolution: duplicate
Status: assignedclosed
Note: See TracTickets for help on using tickets.