|
From: Robert W. <chu...@gm...> - 2025-09-21 01:52:26
|
Hello Hanspeter,
Each of gcc9, gcc11, gcc12 all fail with the following (I’m happy to attempt anyone’s patches they may be working on, but haven’t dug through all the notes yet):
@ROBERTs-Mac-mini ~ % fink list gcc; fink install gcc9; fink install gcc11; fink install gcc12
Information about 16159 packages read in 0 seconds.
avr-gcc 4.9.2-1 GNU GCC for ATMEL AVR micro controllers
broken-gcc 3.3-1 [virtual package representing a broken gcc compiler]
gcc11 11.4.0-1 GNU Compiler Collection Version 11
gcc11-compiler 11.4.0-1 Compiler Binaries for gcc11
gcc11-shlibs 11.4.0-1 Shared libraries for gcc11
gcc12 12.2.0-3 GNU Compiler Collection Version 12
gcc12-compiler 12.2.0-3 Compiler Binaries for gcc12
gcc12-shlibs 12.2.0-3 Shared libraries for gcc12
i gcc14 14.2.0-2 GNU Compiler Collection Version 14
i gcc14-compiler 14.2.0-2 Compiler Binaries for gcc14
i gcc14-shlibs 14.2.0-2 Shared libraries for gcc14
gcc4.2 4.2-0 [virtual package representing the gcc 4.2 compiler]
gcc9 9.5.0-1 GNU Compiler Collection Version 9
gcc9-compiler 9.5.0-1 Compiler Binaries for gcc9
gcc9-shlibs 9.5.0-1 Shared libraries for gcc9
m681x-gcc 3.3.6-3 For Motorola 68hc11/12 micro controllers
msp430-gcc 4.6.3-20120406-2 GNU GCC for for Texas Instruments MSP430 MCU
Building gcc9 (the others follow):
Various types of warnings about mktemp and
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
g++ -std=gnu++98 -I../../gcc-9.5.0/libcpp -I. -I../../gcc-9.5.0/libcpp/../include -I../../gcc-9.5.0/libcpp/include -I/opt/sw/include -g -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -fno-exceptions -fno-rtti -I../../gcc-9.5.0/libcpp -I. -I../../gcc-9.5.0/libcpp/../include -I../../gcc-9.5.0/libcpp/include -I/opt/sw/include -c -o init.o -MT init.o -MMD -MP -MF .deps/init.Tpo ../../gcc-9.5.0/libcpp/init.c
2 warnings generated.
*** Configuration arm-apple-darwin25.0.0 not supported
2 warnings generated.
clang++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
../../gcc-9.5.0/libcpp/lex.c:1718:8: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare]
1718 | BUF_APPEND ("\\", 1);
| ^~~~~~~~~~~~~~~~~~~~
../../gcc-9.5.0/libcpp/lex.c:1688:30: note: expanded from macro 'BUF_APPEND'
1688 | && (const uchar *)(STR) != base \
| ~~~~~~~~~~~~~~~~~~~~ ^
../../gcc-9.5.0/libcpp/lex.c:1727:5: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare]
1727 | BUF_APPEND (" ", 1);
| ^~~~~~~~~~~~~~~~~~~
../../gcc-9.5.0/libcpp/lex.c:1688:30: note: expanded from macro 'BUF_APPEND'
1688 | && (const uchar *)(STR) != base \
| ~~~~~~~~~~~~~~~~~~~~ ^
../../gcc-9.5.0/libcpp/lex.c:1730:8: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare]
1730 | BUF_APPEND ("\n", 1);
| ^~~~~~~~~~~~~~~~~~~~
../../gcc-9.5.0/libcpp/lex.c:1688:30: note: expanded from macro 'BUF_APPEND'
1688 | && (const uchar *)(STR) != base \
| ~~~~~~~~~~~~~~~~~~~~ ^
../../gcc-9.5.0/libcpp/lex.c:1753:5: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare]
1753 | BUF_APPEND ("??", 2);
| ^~~~~~~~~~~~~~~~~~~~
../../gcc-9.5.0/libcpp/lex.c:1688:30: note: expanded from macro 'BUF_APPEND'
1688 | && (const uchar *)(STR) != base \
| ~~~~~~~~~~~~~~~~~~~~ ^
../../gcc-9.5.0/libcpp/lex.c:1762:9: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare]
1762 | BUF_APPEND ("/", 1);
| ^~~~~~~~~~~~~~~~~~~
../../gcc-9.5.0/libcpp/lex.c:1688:30: note: expanded from macro 'BUF_APPEND'
1688 | && (const uchar *)(STR) != base \
| ~~~~~~~~~~~~~~~~~~~~ ^
9 warnings generated.
clang++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
../../gcc-9.5.0/libcpp/lex.c:3519:7: 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]
3519 | sprintf ((char *) result, "#%s ", dir_name);
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:278:1: note: 'sprintf' has been explicitly marked deprecated here
278 | __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.")
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:227:48: note: expanded from macro '__deprecated_msg'
227 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
| ^
clang++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
make[2]: *** [configure-stage1-gcc] Error 1
make[2]: *** Waiting for unfinished jobs....
clang++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
../../gcc-9.5.0/libcpp/charset.c:1341:8: warning: variable 'overflow' set but not used [-Wunused-but-set-variable]
1341 | bool overflow = false;
| ^
../../gcc-9.5.0/libcpp/charset.c:1464:4: 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]
1464 | sprintf(buf, "%03o", (int) c);
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:278:1: note: 'sprintf' has been explicitly marked deprecated here
278 | __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.")
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:227:48: note: expanded from macro '__deprecated_msg'
227 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
| ^
In file included from ../../gcc-9.5.0/libcpp/charset.c:22:
../../gcc-9.5.0/libcpp/include/cpplib.h:897:14: warning: private field 'm_line_table' is not used [-Wunused-private-field]
897 | line_maps *m_line_table;
| ^
In file included from ../../gcc-9.5.0/libcpp/pch.c:19:
../../gcc-9.5.0/libcpp/system.h:439:9: warning: keyword is hidden by macro definition [-Wkeyword-macro]
439 | #define true 1
| ^
../../gcc-9.5.0/libcpp/system.h:440:9: warning: keyword is hidden by macro definition [-Wkeyword-macro]
440 | #define false 0
| ^
In file included from ../../gcc-9.5.0/libcpp/symtab.c:23:
../../gcc-9.5.0/libcpp/system.h:439:9: warning: keyword is hidden by macro definition [-Wkeyword-macro]
439 | #define true 1
| ^
../../gcc-9.5.0/libcpp/system.h:440:9: warning: keyword is hidden by macro definition [-Wkeyword-macro]
440 | #define false 0
| ^
8 warnings generated.
2 warnings generated.
In file included from ../../gcc-9.5.0/libcpp/traditional.c:20:
../../gcc-9.5.0/libcpp/system.h:439:9: warning: keyword is hidden by macro definition [-Wkeyword-macro]
439 | #define true 1
| ^
../../gcc-9.5.0/libcpp/system.h:440:9: warning: keyword is hidden by macro definition [-Wkeyword-macro]
440 | #define false 0
| ^
In file included from ../../gcc-9.5.0/libcpp/init.c:22:
../../gcc-9.5.0/libcpp/system.h:439:9: warning: keyword is hidden by macro definition [-Wkeyword-macro]
439 | #define true 1
| ^
../../gcc-9.5.0/libcpp/system.h:440:9: warning: keyword is hidden by macro definition [-Wkeyword-macro]
440 | #define false 0
| ^
2 warnings generated.
5 warnings generated.
2 warnings generated.
2 warnings generated.
rm -f libcpp.a
ar cru libcpp.a charset.o directives.o directives-only.o errors.o expr.o files.o identifiers.o init.o lex.o line-map.o macro.o mkdeps.o pch.o symtab.o traditional.o
ranlib libcpp.a
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2
### execution of /tmp/fink.QE2yo failed, exit code 2
### execution of /tmp/fink.Cskwm failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/opt/sw/bin/dpkg-lockwait -r fink-buildlock-gcc9-9.5.0-1
Building gcc11:
patching file 'gcc/config/aarch64/aarch64.c'
patch: **** misordered hunks! output would be garbled
### execution of /tmp/fink.wlW3p failed, exit code 2
### execution of /tmp/fink.a7vng failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/opt/sw/bin/dpkg-lockwait -r fink-buildlock-gcc11-11.4.0-1
Building gcc12:
These again:
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
… and the mktemp warnings and a vfork warning…
Here I’ll include what I think is the last g++ line, but I’m happy to provide any amount of output you’d care to review. There are so many other warnings generated earlier but I didn’t include them for brevity.
g++ -std=c++11 -fPIE -c -DIN_GCC_FRONTEND -g -DIN_GCC -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -Icp -I../../gcc-12.2.0/gcc -I../../gcc-12.2.0/gcc/cp -I../../gcc-12.2.0/gcc/../include -I../../gcc-12.2.0/gcc/../libcpp/include -I../../gcc-12.2.0/gcc/../libcody -I/opt/sw/include -I/opt/sw/include -I../../gcc-12.2.0/gcc/../libdecnumber -I../../gcc-12.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-12.2.0/gcc/../libbacktrace -I/opt/sw/include -I/opt/sw/include -o cp/optimize.o -MT cp/optimize.o -MMD -MP -MF cp/.deps/optimize.TPo ../../gcc-12.2.0/gcc/cp/optimize.cc <http://optimize.cc/>
...
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:687:55: error: too many arguments provided to function-like macro invocation
687 | inline _LIBCPP_HIDE_FROM_ABI bool islower(_CharT __c, const locale& __loc) {
| ^
../../gcc-12.2.0/gcc/../include/safe-ctype.h:134:9: note: macro 'islower' defined here
134 | #define islower(c) do_not_use_islower_with_safe_ctype
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from ../../gcc-12.2.0/gcc/cp/method.cc:30:
../../gcc-12.2.0/gcc/cgraph.h:1686:1: warning: 'cgraph_edge' defined as a class here but previously declared as a struct; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]
1686 | class GTY((chain_next ("%h.next_caller"), chain_prev ("%h.prev_caller"),
| ^
../../gcc-12.2.0/gcc/cgraph.h:855:1: note: did you mean class here?
855 | struct cgraph_edge;
| ^~~~~~
| class
../../gcc-12.2.0/gcc/coretypes.h:144:1: note: did you mean class here?
144 | struct cgraph_edge;
| ^~~~~~
| class
In file included from ../../gcc-12.2.0/gcc/cp/method.cc:30:
../../gcc-12.2.0/gcc/cgraph.h:2212:10: warning: struct 'cgraph_edge' was previously declared as a class; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]
2212 | friend struct cgraph_edge;
| ^
../../gcc-12.2.0/gcc/cgraph.h:1687:16: note: previous use is here
1687 | for_user)) cgraph_edge
| ^
../../gcc-12.2.0/gcc/cgraph.h:2212:10: note: did you mean class here?
2212 | friend struct cgraph_edge;
| ^~~~~~
| class
../../gcc-12.2.0/gcc/cgraph.h:2623:32: warning: struct 'cgraph_edge' was previously declared as a class; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]
2623 | void initialize_inline_failed (struct cgraph_edge *);
| ^
../../gcc-12.2.0/gcc/cgraph.h:1687:16: note: previous use is here
1687 | for_user)) cgraph_edge
| ^
../../gcc-12.2.0/gcc/cgraph.h:2623:32: note: did you mean class here?
2623 | void initialize_inline_failed (struct cgraph_edge *);
| ^~~~~~
| class
../../gcc-12.2.0/gcc/cgraph.h:2624:28: warning: struct 'cgraph_edge' was previously declared as a class; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]
2624 | bool speculation_useful_p (struct cgraph_edge *e, bool anticipate_inlining);
| ^
../../gcc-12.2.0/gcc/cgraph.h:1687:16: note: previous use is here
1687 | for_user)) cgraph_edge
| ^
../../gcc-12.2.0/gcc/cgraph.h:2624:28: note: did you mean class here?
2624 | bool speculation_useful_p (struct cgraph_edge *e, bool anticipate_inlining);
| ^~~~~~
| class
20 errors generated.
In file included from ../../gcc-12.2.0/gcc/cp/logic.cc:41:
In file included from ../../gcc-12.2.0/gcc/cp/cp-tree.h:40:
In file included from ../../gcc-12.2.0/gcc/c-family/c-common.h:24:
../../gcc-12.2.0/gcc/../libcpp/include/cpplib.h:1507:1: warning: 'cpp_char_column_policy' defined as a struct here but previously declared as a class; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]
1507 | struct cpp_char_column_policy
| ^
../../gcc-12.2.0/gcc/input.h:64:1: note: did you mean struct here?
64 | class cpp_char_column_policy;
| ^~~~~
| struct
make[3]: *** [cp/mapper-client.o] Error 1
make[3]: *** Waiting for unfinished jobs....
../../gcc-12.2.0/gcc/cp/mangle.cc:4590: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]
4590 | sprintf (var_name, "%s%s%s", prefix, IDENTIFIER_POINTER (class_id), postfix);
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:278:1: note: 'sprintf' has been explicitly marked deprecated here
278 | __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 thatIn file included from ../../gcc-12.2.0/gcc/cp/logic.ccy:o41u:
In file included from ../../gcc-12.2.0/gcc/cp/cp-tree.h:41:
In file included from ../../gcc-12.2.0/gcc/diagnostic.h:24 :
us../../gcc-12.2.0/gcc/pretty-print.he: 430s:n3p:r inwarning: '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]
tf(3) 430 | pp_scalar (pp, HOST_WIDE_INT_PRINT_DEC, i);
| ^
../../gcc-12.2.0/gcc/pretty-print.h:329:7: note: expanded from macro 'pp_scalar'
329 | sprintf (pp_buffer (PP)->digit_buffer, FORMAT, SCALAR); \
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:278:1: note: 'sprintf' has been explicitly marked deprecated here
278 | __deprecated_imnssg("This tfead.")
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:227:48: note: expanded from macro '__deprecated_msg'
unction i227s | p#rdoevfiidneed for compatibility reasons only. D ue _t_od eprecated_msg(_mssg)e cu_r_iatttributy concerns inhe__((__deprecated__(_msg)))
| ^
erent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:227:48: note: expanded from macro '__deprecated_msg'
227 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
| ^
In file included from ../../gcc-12.2.0/gcc/cp/module.cc:208:
In file included from ../../gcc-12.2.0/gcc/system.h:233:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:478:3: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces
478 | _LIBCPP_HIDE_FROM_ABI char_type toupper(char_type __c) const { return do_toupper(__c); }
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:540:22: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
540 | __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE))))
| ^
In file included from ../../gcc-12.2.0/gcc/cp/module.cc:208:
In file included from ../../gcc-12.2.0/gcc/system.h:233:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:363:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:208:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:478:57: error: expected ';' at end of declaration list
478 | _LIBCPP_HIDE_FROM_ABI char_type toupper(char_type __c) const { return do_toupper(__c); }
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:278:1: note: 'sprintf' has been explicitly marked deprecated here
278 | __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.")
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:227:48: note: expanded from macro '__deprecated_msg'
227 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
| ^
10 warnings generated.
/bin/sh ../../gcc-12.2.0/gcc/../move-if-change tmp-attrtab.cc insn-attrtab.cc
/bin/sh ../../gcc-12.2.0/gcc/../move-if-change tmp-dfatab.cc insn-dfatab.cc
/bin/sh ../../gcc-12.2.0/gcc/../move-if-change tmp-latencytab.cc insn-latencytab.cc
echo timestamp > s-attrtab
rm gcc.pod
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2
### execution of /tmp/fink.He3dW failed, exit code 2
### execution of /tmp/fink.sHqsx failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/opt/sw/bin/dpkg-lockwait -r fink-buildlock-gcc12-12.2.0-3
Please let me know if you have questions or suggestions! I included gcc9 because something I was testing required it… maybe r? Anyway, kind regards.
> On Sep 19, 2025, at 8:08 PM, a_...@me... wrote:
>
> Dear Robert Wyatt,
>
> It is interested thing, if realized by such looked easily operation.
>
> By the way, how about gcc11, gcc12 on MacOS 26. I am afraid no one has been able to realize them on Sequoia. If it is able to do, many applications pending on Sequoia required gcc12, gcc11 might be alive. Have you ever done the same operation for Sequoia?
>
> (Quote)
>
> I was able to install gcc14 onto MacOS 26 after adding 15.0 to the Distribution line in the info file:
>
> (Unquote)
>
> Ref) Fink-users Digest, Vol 231, Issue 3
>
> _______________________________________________
> Fink-beginners mailing list
> Fin...@li... <mailto:Fin...@li...>
> List archive:
> https://sourceforge.net/p/fink/mailman/fink-users/
> Subscription management:
> https://lists.sourceforge.net/lists/listinfo/fink-beginners
|