Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 863503 - Gentoo Prefix failed to build caused by sys-devel/gcc-12.1.0
Summary: Gentoo Prefix failed to build caused by sys-devel/gcc-12.1.0
Status: RESOLVED DUPLICATE of bug 778014
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: ARM64 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-04 01:56 UTC by Akase Cho
Modified: 2022-08-04 06:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sys-devel/gcc-12.1.0::gentoo_prefix log (gcc-build-logs.tar.bz2,94.34 KB, application/x-bzip2)
2022-08-04 01:56 UTC, Akase Cho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Akase Cho 2022-08-04 01:56:40 UTC
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.
 *
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-04 02:00:16 UTC
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....
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-04 02:00:30 UTC
Please bare with wrt macOS on Apple Silicon. We're getting there.
Comment 3 Fabian Groffen gentoo-dev 2022-08-04 06:51:43 UTC

*** This bug has been marked as a duplicate of bug 778014 ***
Comment 4 Fabian Groffen gentoo-dev 2022-08-04 06:52:21 UTC
this appears to be the same issue as 778014, this particular issue should be worked around now in the latest versions