Created attachment 797407 [details] sys-devel/gcc-12.1.0::gentoo_prefix log During stage3 build: >>> Failed to emerge sys-devel/gcc-12.1.0, Log file: >>> '/Users/lightsing/Gentoo/var/tmp/portage/sys-devel/gcc-12.1.0/temp/build.log' * Messages for package sys-devel/gcc-12.1.0: * ERROR: sys-devel/gcc-12.1.0::gentoo_prefix failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-devel/gcc-12.1.0::gentoo_prefix'`, * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-12.1.0::gentoo_prefix'`. * The complete build log is located at '/Users/lightsing/Gentoo/var/tmp/portage/sys-devel/gcc-12.1.0/temp/build.log'. * The ebuild environment file is located at '/Users/lightsing/Gentoo/var/tmp/portage/sys-devel/gcc-12.1.0/temp/environment'. * Working directory: '/Users/lightsing/Gentoo/var/tmp/portage/sys-devel/gcc-12.1.0/work/build' * S: '/Users/lightsing/Gentoo/var/tmp/portage/sys-devel/gcc-12.1.0/work/gcc-12-branch-gcc-12.1-darwin-r0' * * Please include /Users/lightsing/Gentoo/var/tmp/portage/sys-devel/gcc-12.1.0/work/gcc-build-logs.tar.bz2 in your bug report. *
It's unclear to me make[3]: Entering directory '/Users/lightsing/Gentoo/var/tmp/portage/sys-devel/gcc-12.1.0/work/build/gcc' arm64-apple-darwin21-g++ -std=c++11 -c -DIN_GCC -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 -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/Users/lightsing/Gentoo/var/tmp/portage/sys-devel/gcc-12.1.0/work/gcc-12-branch-gcc-12.1-darwin-r0/gcc -I/Users/lightsing/Gentoo/var/tmp/portage/sys-devel/gcc-12.1.0/work/gcc-12-branch-gcc-12.1-darwin-r0/gcc/build -I/Users/lightsing/Gentoo/var/tmp/portage/sys-devel/gcc-12.1.0/work/gcc-12-branch-gcc-12.1-darwin-r0/gcc/../include -I/Users/lightsing/Gentoo/var/tmp/portage/sys-devel/gcc-12.1.0/work/gcc-12-branch-gcc-12.1-darwin-r0/gcc/../libcpp/include \ -o build/gengtype.o /Users/lightsing/Gentoo/var/tmp/portage/sys-devel/gcc-12.1.0/work/gcc-12-branch-gcc-12.1-darwin-r0/gcc/gengtype.cc make[3]: Leaving directory '/Users/lightsing/Gentoo/var/tmp/portage/sys-devel/gcc-12.1.0/work/build/gcc' arm64-apple-darwin21-g++ -std=c++11 -DIN_GCC -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 -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc -L/Users/lightsing/Gentoo/usr/lib -o build/gengtype \ build/gengtype.o build/errors.o build/gengtype-lex.o build/gengtype-parse.o build/gengtype-state.o ../build-arm64-apple-darwin21/libiberty/libiberty.a Undefined symbols for architecture arm64: "__Z5yyendv", referenced from: __Z10parse_filePKc in gengtype-parse.o "__Z5yylexPPKc", referenced from: __ZL5tokenv in gengtype-parse.o "__Z7yybeginPKc", referenced from: __Z10parse_filePKc in gengtype-parse.o "_lexer_line", referenced from: __ZL22create_optional_field_P4pairP4typePKcS4_i in gengtype.o __ZL20adjust_field_rtx_defP4typeP7options in gengtype.o __ZL21adjust_field_tree_expP4typeP7options in gengtype.o __Z17adjust_field_typeP4typeP7options in gengtype.o __ZL11parse_errorPKcz in gengtype-parse.o __ZL16struct_field_seqv in gengtype-parse.o __ZL4typePP7optionsb in gengtype-parse.o ... "_lexer_toplevel_done", referenced from: __Z10parse_filePKc in gengtype-parse.o ld: symbol(s) not found for architecture arm64 collect2: error: ld returned 1 exit status make[3]: *** [Makefile:3025: build/gengtype] Error 1 make[3]: *** Waiting for unfinished jobs....
Please bare with wrt macOS on Apple Silicon. We're getting there.
*** This bug has been marked as a duplicate of bug 778014 ***
this appears to be the same issue as 778014, this particular issue should be worked around now in the latest versions