Opened 2 years ago
Last modified 6 months ago
#65203 new defect
Failed to build gcc8: command execution failed — at Version 1
Reported by: | manulcaux | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | Cc: | ||
Port: | gcc8 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Hi,
I just installed the new Xcode 13.4 and the associated command-line tools and wanted to update my port installation.
After a successful port selfupdate, I ran sudo port upgrade outdated
to upgrade all my packages and got this error :
(base) [macp2034:~/spectral-cube] caux% sudo port upgrade outdated ---> Computing dependencies for gcc8 ---> Fetching archive for gcc8 ---> Attempting to fetch gcc8-8.5.0_1.darwin_21.x86_64.tbz2 from https://packages.macports.org/gcc8 ---> Attempting to fetch gcc8-8.5.0_1.darwin_21.x86_64.tbz2 from https://nue.de.packages.macports.org/gcc8 ---> Attempting to fetch gcc8-8.5.0_1.darwin_21.x86_64.tbz2 from https://fra.de.packages.macports.org/gcc8 ---> Fetching distfiles for gcc8 ---> Verifying checksums for gcc8 ---> Extracting gcc8 ---> Applying patches to gcc8 ---> Configuring gcc8 Warning: Applying '--without-build-config' workaround to Xcode 13.4 / CLT 13.4.0.0.1.1651278267 Warning: If versions > 12.5 please check if it is still required ---> Building gcc8 Error: Failed to build gcc8: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/main.log for details. Error: Problem while installing gcc8 Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. (base) [macp2034:~/spectral-cube] caux%
Checking the (very very) long file /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/main.log show the following at the end :
:info:build line_maps *m_line_table; :info:build ^ :info:build 4 warnings and 8 errors generated. :info:build make[3]: *** [charset.o] Error 1 :info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build/build-x86_64-apple-darwin21/libcpp' :info:build make[2]: *** [all-build-libcpp] Error 2 :info:build make[2]: *** Waiting for unfinished jobs.... :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/libcpp/charset.c:1341:8: warning: variable 'overflow' set but not used [-Wunused-but-set-variable] :info:build bool overflow = false; :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/libcpp/charset.c:1616:6: error: use of undeclared identifier 'free' :info:build free (tbuf.text); :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/libcpp/charset.c:1679:5: error: use of undeclared identifier 'free' :info:build free (tbuf.text); :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/libcpp/charset.c:1951:5: error: use of undeclared identifier 'free' :info:build free ((void *)str.text); :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/libcpp/charset.c:2050:7: error: use of undeclared identifier 'free' :info:build free (input); :info:build ^ :info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/libcpp/charset.c:22: :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/libcpp/include/cpplib.h:789:14: warning: private field 'm_line_table' is not used [-Wunused-private-field] :info:build line_maps *m_line_table; :info:build ^ :info:build 4 warnings and 8 errors generated. :info:build make[3]: *** [charset.o] Error 1 :info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build/libcpp' :info:build make[2]: *** [all-stage1-libcpp] Error 2 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build' :info:build make[1]: *** [stage1-bubble] Error 2 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build' :info:build make: *** [bootstrap-lean] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build" && /usr/bin/make -j16 -w bootstrap-lean :info:build Exit code: 2 :error:build Failed to build gcc8: command execution failed :debug:build Error code: CHILDSTATUS 30752 2 :debug:build Backtrace: command execution failed :debug:build while executing :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring" :debug:build invoked from within :debug:build "command_exec -callback portprogress::target_progress_callback build" :debug:build (procedure "portbuild::build_main" line 8) :debug:build invoked from within :debug:build "$procedure $targetname" :error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/main.log for details. (base) [macp2034:~/spectral-cube] caux%
I tried uninstalling gcc8, did a port clean gcc8
and ran again the port upgrade outdated
command that ended with the same error...
Change History (1)
comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | failed to build removed |
Note: See
TracTickets for help on using
tickets.
Remember to use WikiFormatting.
While this might be something we could fix, I see that you are on Monterey and are trying to use gcc8, which is old and predates Monterey and may not be suitable for use on Monterey. Do you specifically require this old version of gcc? If not, try the latest released version (gcc11) or the latest development version (gcc-devel).