Summary: | dev-libs/efl-1.26.2 - ninja: build stopped: subcommand failed. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Joonas Niilola <juippis> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ionen, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=841770 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 847148 | ||
Attachments: |
emerge-info.txt
dev-libs:efl-1.26.2:20220528-074944.log.bz2 emerge-history.txt environment etc.portage.tar.bz2 logs.tar.bz2 temp.tar.bz2 fortify-source-3.patch |
Description
Toralf Förster
2022-05-28 08:34:24 UTC
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 *** |