Opened 5 years ago

Closed 3 years ago

#59464 closed defect (fixed)

building gcc 9 fails

Reported by: lplatter Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: gcc9

Description (last modified by ryandesign (Ryan Carsten Schmidt))

building with

sudo port -v -s install gcc9 

fails

Attachments (2)

main.log.gz (2.0 MB) - added by lplatter 5 years ago.
file is too large to attach directly
main.log.2.gz (2.0 MB) - added by lplatter 5 years ago.
log file for building with 2.6.2

Change History (10)

comment:1 Changed 5 years ago by lplatter

end of log file is

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/gcc-9.2.0/libgcc/libgcov-profiler.c:138:1: warning:
control reaches end of non-void function [-Wreturn-type]
  138 | }
      | ^
make[3]: *** [_gcov_interval_profiler_atomic.o] Error 1
make[3]: *** [_gcov_average_profiler.o] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/build/x86_64-apple-darwi
n18/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/build'
make: *** [bootstrap-lean] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/build" && /usr/bin/make -j12 -w
 bootstrap-lean
Exit code: 2
Error: Failed to build gcc9: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port gcc9 failed

comment:2 Changed 5 years ago by jmroot (Joshua Root)

Keywords: gcc removed

Please attach the full log.

Changed 5 years ago by lplatter

Attachment: main.log.gz added

file is too large to attach directly

comment:3 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

The actual errors in the log are SDK related:

:info:build In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/_stdio.h:69,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/build/gcc/include-fixed/stdio.h:78,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/gcc-9.2.0/libgcc/../gcc/tsystem.h:87,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/gcc-9.2.0/libgcc/libgcov.h:42,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/gcc9/work/gcc-9.2.0/libgcc/libgcov-merge.c:26:
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/stdio.h: In function 'renameat':
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/stdio.h:39:56: error: expected declaration specifiers before '__AVAILABILITY_INTERNAL__MAC_10_10'
:info:build    39 | int     renameat(int, const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
:info:build       |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~

comment:ticket:59133:10 says this was fixed 2 weeks ago. You reported that you're using MacPorts 2.6.1. 2.6.2 was released a few days ago. Please run sudo port selfupdate, then try again.

comment:4 Changed 5 years ago by lplatter

Upgrading to MacPorts 2.6.2 did not solve the problem. I am attaching the new log file

Changed 5 years ago by lplatter

Attachment: main.log.2.gz added

log file for building with 2.6.2

comment:5 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

I see that you're using cctools with the +llvm80 variant. The cctools port only provides the Xcode 10 version. Since you're using Xcode 11, that might not be compatible. Try reinstalling the cctools port with the +xcode variant.

comment:6 Changed 5 years ago by lplatter

That didn't resolve this issue.

comment:7 Changed 5 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:8 Changed 3 years ago by kencu (Ken)

Resolution: fixed
Status: newclosed

gcc 9.4.0 is building without issue for me on 10.14, and on the 10.14 buildbot.

This appears to have been fixed.

please reopen with new information if this is still an issue.

Note: See TracTickets for help on using tickets.