Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921620 - sys-devel/gcc-14.0.0_pre20240107 - cc1plus: fatal error: gengtype-lex.cc: No such file or directory (with app-alternatives/lex +reflex )
Summary: sys-devel/gcc-14.0.0_pre20240107 - cc1plus: fatal error: gengtype-lex.cc: No ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-08 23:19 UTC by ernsteiswuerfel
Modified: 2024-01-08 23:53 UTC (History)
0 users

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


Attachments
build.log (build.log,355.53 KB, text/plain)
2024-01-08 23:19 UTC, ernsteiswuerfel
Details
emerge --info (file_921620.txt,5.63 KB, text/plain)
2024-01-08 23:19 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-01-08 23:19:02 UTC
Created attachment 881689 [details]
build.log

The gcc-14 ebuild seems to have a hard dependency on sys-devel/flex.

At build time only sys-devel/reflex was installed via USE=reflex app-alternatives/lex (reflex was depcleaned) and I got this error:

[...]
powerpc-unknown-linux-gnu-g++ -std=c++11 -c    -mcpu=7450 -mtune=7450 -pipe -O2 -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H  -DGENERATOR_FILE -I. -Ibuild -I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/gcc-14-20240107/gcc -I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/gcc-14-20240107/gcc/build -I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/gcc-14-20240107/gcc/../include  -I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/gcc-14-20240107/gcc/../libcpp/include  \
	-o build/gengtype.o /var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/gcc-14-20240107/gcc/gengtype.cc
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/gcc-14-20240107/missing flex  -ogengtype-lex.cc /var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/gcc-14-20240107/gcc/gengtype-lex.l && { \
  echo '#ifdef HOST_GENERATOR_FILE' > gengtype-lex.cc.tmp; \
  echo '#include "config.h"'       >> gengtype-lex.cc.tmp; \
  echo '#else'                     >> gengtype-lex.cc.tmp; \
  echo '#include "bconfig.h"'      >> gengtype-lex.cc.tmp; \
  echo '#endif'                    >> gengtype-lex.cc.tmp; \
  cat gengtype-lex.cc >> gengtype-lex.cc.tmp; \
  mv gengtype-lex.cc.tmp gengtype-lex.cc; \
}
/var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/gcc-14-20240107/missing: 81: flex: not found
WARNING: 'flex' is missing on your system.
         You should only need it if you modified a '.l' file.
         You may want to install the Fast Lexical Analyzer package:
         <http://flex.sourceforge.net/>
make[3]: [Makefile:3221: gengtype-lex.cc] Error 127 (ignored)
powerpc-unknown-linux-gnu-g++ -std=c++11 -c    -mcpu=7450 -mtune=7450 -pipe -O2 -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -Wno-error -DHAVE_CONFIG_H  -DGENERATOR_FILE -I. -Ibuild -I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/gcc-14-20240107/gcc -I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/gcc-14-20240107/gcc/build -I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/gcc-14-20240107/gcc/../include  -I/var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/gcc-14-20240107/gcc/../libcpp/include  \
	-o build/gengtype-lex.o gengtype-lex.cc
cc1plus: fatal error: gengtype-lex.cc: No such file or directory
compilation terminated.
make[3]: *** [Makefile:2999: build/gengtype-lex.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/build/gcc'
make[2]: *** [Makefile:5051: all-stage1-gcc] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/build'
make[1]: *** [Makefile:24625: stage1-bubble] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-14.0.0_pre20240107/work/build'
make: *** [Makefile:24957: bootstrap-lean] Error 2
 * ERROR: sys-devel/gcc-14.0.0_pre20240107::gentoo failed (compile phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2024-01-08 23:19:37 UTC
Created attachment 881690 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-01-08 23:53:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14ee2fa63b28757cac0fa3c5388be4a12af5b7bf

commit 14ee2fa63b28757cac0fa3c5388be4a12af5b7bf
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-01-08 23:52:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-08 23:53:08 +0000

    toolchain.eclass: go back to flex
    
    We should really tighten this so it's only for snapshots though...
    
    Closes: https://bugs.gentoo.org/921620
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/toolchain.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)