too long lines were shrinked: *** buffer overflow detected ***: terminated [1631/2337] x86_64-pc-linux-gnu-gcc -Isrc/bin/edje/edje_pick.p -Isrc/bin/edje -I../efl-1.26.2/src/bin/edje -Isrc/lib/eina -I../efl-1.26.2/src/lib/eina -I. -I../efl-1.26.2 -Isrc/lib/eo -I../efl-1.26.2/src/lib/eo -Isrc/lib/efl -I../efl-1.26.2/src/lib/efl -Isrc/lib/eet -I../efl-1.26.2/src/lib/eet -Isrc [1632/2337] x86_64-pc-linux-gnu-gcc -Isrc/modules/emotion/gstreamer1/libgstreamer1.so.p -Isrc/modules/emotion/gstreamer1 -I../efl-1.26.2/src/modules/emotion/gstreamer1 -I. -I../efl-1.26.2 -Isrc/lib/eina -I../efl-1.26.2/src/lib/eina -Isrc/lib/evas/software_generic -I../efl-1.26.2/src/lib/evas/softwar [1633/2337] x86_64-pc-linux-gnu-gcc -Isrc/modules/emotion/gstreamer1/libgstreamer1.so.p -Isrc/modules/emotion/gstreamer1 -I../efl-1.26.2/src/modules/emotion/gstreamer1 -I. -I../efl-1.26.2 -Isrc/lib/eina -I../efl-1.26.2/src/lib/eina -Isrc/lib/evas/software_generic -I../efl-1.26.2/src/lib/evas/softwar ninja: build stopped: subcommand failed. * ERROR: dev-libs/efl-1.26.2::gentoo failed (compile phase): * compile failed ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_hardened-j4-20220527-164209 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-12.1.1 * clang/llvm (if any): /usr/lib/llvm/14 14.0.3 Python 3.9.13 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby27 (with Rubygems) [3] ruby31 (with Rubygems) * Available Rust versions: [1] rust-1.61.0 * The Glorious Glasgow Haskell Compilation System, version 8.10.4 php cli: (none found) HEAD of ::gentoo commit 638e3c013189190407baab95f2e9dcc9d9386013 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat May 28 07:18:23 2022 +0000 2022-05-28 07:18:23 UTC emerge -qpvO dev-libs/efl [ebuild N ] dev-libs/efl-1.26.2 USE="X eet fontconfig gif gstreamer pdf sound svg system-lz4 zeroconf -avif -bmp -connman -dds -debug -doc -drm (-efl-one) -elogind -examples -fbcon -fribidi -glib -gnutls -harfbuzz -heif -hyphen -ibus -ico -jpeg2k -json (-mono) -nls -opengl -physics -pmaps -postscript -psd -pulseaudio -raw -scim -sdl -systemd -tga -tgv -tiff -tslib -unwind -v4l -vnc -wayland -webp -xcf -xim -xpm -xpresent" LUA_SINGLE_TARGET="lua5-1 -luajit"
Created attachment 781205 [details] emerge-info.txt
Created attachment 781208 [details] dev-libs:efl-1.26.2:20220528-074944.log.bz2
Created attachment 781211 [details] emerge-history.txt
Created attachment 781214 [details] environment
Created attachment 781217 [details] etc.portage.tar.bz2
Created attachment 781220 [details] logs.tar.bz2
Created attachment 781223 [details] temp.tar.bz2
FAILED: src/modules/ethumb/emotion/template.edj /usr/bin/env EFL_RUN_IN_TREE=1 /var/tmp/portage/dev-libs/efl-1.26.2/work/efl-1.26.2-build/src/bin/edje/edje_cc -beta -fastcomp -id /var/tmp/portage/dev-libs/efl-1.26.2/work/efl-1.26.2/src/modules/ethumb/emotion -fd /var/tmp/portage/dev-libs/efl-1.26.2/work/efl-1.26.2/src/modules/ethumb/emotion -sd /var/tmp/portage/dev-libs/efl-1.26.2/work/efl-1.26.2/src/modules/ethumb/emotion -vd /var/tmp/portage/dev-libs/efl-1.26.2/work/efl-1.26.2/src/modules/ethumb/emotion -dd /var/tmp/portage/dev-libs/efl-1.26.2/work/efl-1.26.2/src/modules/ethumb/emotion -md /var/tmp/portage/dev-libs/efl-1.26.2/work/efl-1.26.2/src/modules/ethumb/emotion -td /var/tmp/portage/dev-libs/efl-1.26.2/work/efl-1.26.2/src/modules/ethumb/emotion ../efl-1.26.2/src/modules/ethumb/emotion/template.edc src/modules/ethumb/emotion/template.edj *** buffer overflow detected ***: terminated
Can't reproduce yet. Toralf, can you?
my-test-container-snap-tmp ~ # FORTIFY_SOURCE=3 emerge -1av dev-libs/efl --buildpkg-exclude dev-libs/efl --usepkg-exclude dev-libs/efl --buildpkg=n These are the packages that would be merged, in order: Calculating dependencies ... done! [ebuild R ] dev-libs/efl-1.26.2::gentoo USE="X eet elogind fontconfig gstreamer pdf sound svg system-lz4 -avif -bmp -connman -dds -debug -doc -drm (-efl-one) -examples -fbcon -fribidi -gif -glib -gnutls -harfbuzz -heif -hyphen -ibus -ico -jpeg2k -json (-mono) -nls -opengl -physics -pmaps -postscript -psd -pulseaudio -raw -scim -sdl -systemd -tga -tgv -tiff -tslib -unwind -v4l -vnc -wayland -webp -xcf -xim -xpm -xpresent -zeroconf" LUA_SINGLE_TARGET="lua5-1 -luajit" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No] y >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-libs/efl-1.26.2::gentoo >>> Installing (1 of 1) dev-libs/efl-1.26.2::gentoo >>> Jobs: 1 of 1 complete Load avg: 9.39, 6.41, 7.77 >>> Auto-cleaning packages... >>> No outdated packages were found on your system. my-test-container-snap-tmp ~ # gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/12.1.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-12.1.1_p20220528/work/gcc-12-20220528/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/12.1.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/include/g++-v12 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/12.1.1/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --disable-nls --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 12.1.1_p20220528 p6' --disable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --enable-lto --without-isl --enable-default-pie --enable-default-ssp Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.1.1 20220528 (Gentoo 12.1.1_p20220528 p6) What do I need to do to trigger this?
(In reply to Joonas Niilola from comment #10) > my-test-container-snap-tmp ~ # FORTIFY_SOURCE=3 emerge -1av dev-libs/efl > --buildpkg-exclude dev-libs/efl --usepkg-exclude dev-libs/efl --buildpkg=n > > These are the packages that would be merged, in order: > > Calculating dependencies ... done! > [ebuild R ] dev-libs/efl-1.26.2::gentoo USE="X eet elogind fontconfig > gstreamer pdf sound svg system-lz4 -avif -bmp -connman -dds -debug -doc -drm > (-efl-one) -examples -fbcon -fribidi -gif -glib -gnutls -harfbuzz -heif > -hyphen -ibus -ico -jpeg2k -json (-mono) -nls -opengl -physics -pmaps > -postscript -psd -pulseaudio -raw -scim -sdl -systemd -tga -tgv -tiff -tslib > -unwind -v4l -vnc -wayland -webp -xcf -xim -xpm -xpresent -zeroconf" > LUA_SINGLE_TARGET="lua5-1 -luajit" 0 KiB > > Total: 1 package (1 reinstall), Size of downloads: 0 KiB > > Would you like to merge these packages? [Yes/No] y > >>> Verifying ebuild manifests > >>> Emerging (1 of 1) dev-libs/efl-1.26.2::gentoo > >>> Installing (1 of 1) dev-libs/efl-1.26.2::gentoo > >>> Jobs: 1 of 1 complete Load avg: 9.39, 6.41, 7.77 > >>> Auto-cleaning packages... > > >>> No outdated packages were found on your system. > > > my-test-container-snap-tmp ~ # gcc -v > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/12.1.1/lto-wrapper > Target: x86_64-pc-linux-gnu > Configured with: > /var/tmp/portage/sys-devel/gcc-12.1.1_p20220528/work/gcc-12-20220528/ > configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu > --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/12.1.1 > --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/include > --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.1 > --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.1/man > --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/12.1.1/info > --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/include/g++- > v12 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/12.1.1/python > --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt > --disable-werror --with-system-zlib --disable-nls > --disable-libunwind-exceptions --enable-checking=release > --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo > 12.1.1_p20220528 p6' --disable-esp --enable-libstdcxx-time > --disable-libstdcxx-pch --enable-shared --enable-threads=posix > --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib > --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all > --enable-libgomp --disable-libssp --disable-libada --disable-cet > --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify > --disable-libvtv --without-zstd --enable-lto --without-isl > --enable-default-pie --enable-default-ssp > Thread model: posix > Supported LTO compression algorithms: zlib > gcc version 12.1.1 20220528 (Gentoo 12.1.1_p20220528 p6) > > > What do I need to do to trigger this? Need CFLAGS="-O2 -D_FORTIFY_SOURCE=3" CXXFLAGS="-O2 -D_FORTIFY_SOURCE=3" w/ GCC 12+. I'm using this patch for GCC because it's easier: /etc/portage/patches/sys-devel/gcc:12/fortify-source-3.patch --- a/gcc/c-family/c-cppbuiltin.cc +++ b/gcc/c-family/c-cppbuiltin.cc @@ -1513,7 +1513,7 @@ c_cpp_builtins (cpp_reader *pfile) #if !defined(ACCEL_COMPILER) /* Fortify Source enabled by default for optimization levels > 0 */ if (optimize) - builtin_define_with_int_value ("_FORTIFY_SOURCE", 2); + builtin_define_with_int_value ("_FORTIFY_SOURCE", 3); #endif /* Misc. */
Created attachment 781313 [details, diff] fortify-source-3.patch
If I do CFLAGS="-O2 -D_FORTIFY_SOURCE=3 -march=native -pipe" CXXFLAGS="-O2 -D_FORTIFY_SOURCE=3 -march=native -pipe" emerge -1av dev-libs/efl --buildpkg-exclude dev-libs/efl --usepkg-exclude dev-libs/efl it still passes fine :\ but these deps are built with gcc-11, and I even added "--buildpkg=n" to not accidentally build new versions with gcc-12.
Seems to be caused by systemd-utils-250.5 built with =3, and ~9 hours ago 250.6 was added which force-disable =3. So I think this is already fixed.
Well, "fixed", but the root cause seems to be udev indeed, as you found.
Did the deps get sorted for udev/systemd/whatever? Anyway, yep. Thanks all! *** This bug has been marked as a duplicate of bug 841770 ***