[MacPorts] #60894: mysql8: build fails with gcc5

MacPorts noreply at macports.org
Thu Jul 23 03:37:05 UTC 2020


#60894: mysql8: build fails with gcc5
--------------------------+-------------------------
 Reporter:  chrstphrchvz  |      Owner:  herbygillot
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.6.3
 Keywords:                |       Port:  mysql8
--------------------------+-------------------------
 (Ticket 2 of 2) The mysql8 port was set to avoid compiling with gcc5
 initially in [f33623dd62/macports-ports] and refined in [3db241d4f4
 /macports-ports], [93573a70d6/macports-ports]. But I have not found a
 detailed explanation of why this was done. Note that
 [https://dev.mysql.com/doc/refman/8.0/en/source-installation-
 prerequisites.html upstream documentation] only mentions support for
 building on macOS with Xcode 9 or later; the port bypasses this check
 (#58579).

 Using `compiler.whitelist macports-gcc-5` (without tracemode, otherwise it
 errors when configuring: #60893), the build eventually fails:

 {{{
 :info:build [  6%] Linking CXX executable
 ../runtime_output_directory/uca9dump
 :info:build cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_github
 .com_macports_macports-ports_databases_mysql8/mysql8/work/build/strings &&
 /opt/local/bin/cmake -E cmake_link_script CMakeFiles/uca9dump.dir/link.txt
 --verbose=ON
 :info:build /opt/local/bin/g++-mp-5  -std=c++14 -fno-omit-frame-pointer
 -ftls-model=initial-exec -pipe -Os -DNDEBUG -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wall
 -Wextra -Wformat-security -Wvla -Wundef -Wmissing-format-attribute
 -Woverloaded-virtual -Wcast-qual -Wlogical-op -DDBUG_OFF -ffunction-
 sections -fdata-sections -O3 -DNDEBUG -arch x86_64 -isysroot
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -mmacosx-version-
 min=10.15 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -fuse-
 ld=gold -Wl,--gc-sections -L/opt/local/lib
 -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
 CMakeFiles/uca9dump.dir/uca9-dump.cc.o  -o
 ../runtime_output_directory/uca9dump
 :info:build ld: unknown option: --gc-sections
 :info:build collect2: error: ld returned 1 exit status
 :info:build make[2]: *** [runtime_output_directory/uca9dump] Error 1
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_github
 .com_macports_macports-ports_databases_mysql8/mysql8/work/build'
 :info:build make[1]: *** [strings/CMakeFiles/uca9dump.dir/all] Error 2
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/60894>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list