Opened 7 months ago

Closed 6 months ago

#68453 closed update (fixed)

gcc10-bootstrap: update to gcc 10.5

Reported by: barracuda156 Owned by: catap (Kirill A. Korinsky)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: gcc10-bootstrap

Description

gcc 10.5 has been released back in July. Will be great to update to it.

Change History (8)

comment:1 Changed 6 months ago by barracuda156

Fails on Sonoma still:

:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/diagnostic.h:24:
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/pretty-print.h:430:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
:info:build   pp_scalar (pp, HOST_WIDE_INT_PRINT_DEC, i);
:info:build   ^
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/pretty-print.h:329:7: note: expanded from macro 'pp_scalar'
:info:build       sprintf (pp_buffer (PP)->digit_buffer, FORMAT, SCALAR); \
:info:build       ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
:info:build __deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
:info:build ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
:info:build         #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
:info:build                                                       ^
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/config/darwin.c:39:
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/output.h:129:6: warning: '__format__' attribute argument not supported: asm_fprintf [-Wignored-attributes]
:info:build      ATTRIBUTE_ASM_FPRINTF(2, 3);
:info:build      ^
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/output.h:119:53: note: expanded from macro 'ATTRIBUTE_ASM_FPRINTF'
:info:build #define ATTRIBUTE_ASM_FPRINTF(m, n) __attribute__ ((__format__ (__asm_fprintf__, m, n))) ATTRIBUTE_NONNULL(m)
:info:build                                                     ^
:info:build clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
:info:build warning: unknown warning option '-Werror=format-diag' [-Wunknown-warning-option]
:info:build 3 warnings generated.
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/bins/g++ -std=c++11 -fno-PIE -c   -g -DIN_GCC    -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/. -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/../include -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/../libcpp/include -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/build/./gmp -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gmp -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/build/./mpfr/src -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/mpfr/src -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/mpc/src  -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/../libdecnumber -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/../libbacktrace -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/build/./isl/include -I/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/isl/include  -o opts-common.o -MT opts-common.o -MMD -MP -MF ./.deps/opts-common.TPo /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/opts-common.c
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/prefix.c:68:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/coretypes.h:461:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/hash-table.h:248:
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/vec.h:543:13: warning: 'constexpr' non-static member function will not be implicitly 'const' in C++14; add 'const' to avoid a change in behavior [-Wconstexpr-not-const]
:info:build   CONSTEXPR operator vec<T, A, L> () { return vec<T, A, L>(); }
:info:build             ^
:info:build                                      const
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.5.0/gcc/config/darwin.c:383:9: error: use of undeclared identifier 'UNSPEC_MACHOPIC_OFFSET'
:info:build                              UNSPEC_MACHOPIC_OFFSET);
:info:build                              ^

comment:2 Changed 6 months ago by kencu (Ken)

IMHO, there's no good reason for someone to spend the time to try to make gcc10-bootstrap build on Sonoma, even if with sufficient efforts such a thing might be possible.

It's a port used for bootstrapping newer gccs on older systems, and bootstrapping clang-11-bootstrap.

It should just be marked as unbuildable on whatever newer systems it doesn't currently build on, and move on to spend your time on something more fruitful

comment:3 Changed 6 months ago by barracuda156

This is fixed by Kirill today. Now it works beautifully on Sonoma.

comment:4 in reply to:  2 ; Changed 6 months ago by barracuda156

Replying to kencu:

IMHO, there's no good reason for someone to spend the time to try to make gcc10-bootstrap build on Sonoma, even if with sufficient efforts such a thing might be possible.

Bypass all mad zoo of clangs, for example :)

comment:5 in reply to:  3 Changed 6 months ago by kencu (Ken)

Replying to barracuda156:

This is fixed by Kirill today. Now it works beautifully on Sonoma.

pointless, but good to hear I guess

comment:6 in reply to:  4 ; Changed 6 months ago by kencu (Ken)

Replying to barracuda156:

Replying to kencu:

IMHO, there's no good reason for someone to spend the time to try to make gcc10-bootstrap build on Sonoma, even if with sufficient efforts such a thing might be possible.

Bypass all mad zoo of clangs, for example :)

I don’t really understand this comment.

comment:7 in reply to:  6 Changed 6 months ago by barracuda156

Replying to kencu:

Replying to barracuda156:

Replying to kencu:

IMHO, there's no good reason for someone to spend the time to try to make gcc10-bootstrap build on Sonoma, even if with sufficient efforts such a thing might be possible.

Bypass all mad zoo of clangs, for example :)

I don’t really understand this comment.

You are right, I was thinking by habit about older Intel systems, where building clangs is insane, and numerous versions are required – so switching to gcc altogether would make life easier. On Sonoma there is no zoo of clangs, of course :) (Yet, if someone wanted to avoid clang on Sonoma, going via gcc10-bootstrap would still be sensible.)

comment:8 Changed 6 months ago by catap (Kirill A. Korinsky)

Resolution: fixed
Status: assignedclosed

In 93ca60596ba2a7a610b8b7b0987183cf109c7409/macports-ports (master):

gcc10-bootstrap: update to 10.5.0

Closes: #68453
Closes: #68457

Note: See TracTickets for help on using tickets.