Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 847892 - dev-libs/efl-1.26.2 - ninja: build stopped: subcommand failed.
Summary: dev-libs/efl-1.26.2 - ninja: build stopped: subcommand failed.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Joonas Niilola
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 847148
  Show dependency tree
 
Reported: 2022-05-28 08:34 UTC by Toralf Förster
Modified: 2022-06-03 07:34 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.98 KB, text/plain)
2022-05-28 08:34 UTC, Toralf Förster
Details
dev-libs:efl-1.26.2:20220528-074944.log.bz2 (dev-libs:efl-1.26.2:20220528-074944.log.bz2,45.66 KB, application/x-bzip)
2022-05-28 08:34 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,58.76 KB, text/plain)
2022-05-28 08:34 UTC, Toralf Förster
Details
environment (environment,129.57 KB, text/plain)
2022-05-28 08:34 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,18.92 KB, application/x-bzip)
2022-05-28 08:34 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,19.10 KB, application/x-bzip)
2022-05-28 08:34 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,75.32 KB, application/x-bzip)
2022-05-28 08:34 UTC, Toralf Förster
Details
fortify-source-3.patch (file_847892.txt,397 bytes, patch)
2022-05-29 06:04 UTC, Sam James
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-05-28 08:34:24 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2022-05-28 08:34:25 UTC
Created attachment 781205 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-05-28 08:34:26 UTC
Created attachment 781208 [details]
dev-libs:efl-1.26.2:20220528-074944.log.bz2
Comment 3 Toralf Förster gentoo-dev 2022-05-28 08:34:28 UTC
Created attachment 781211 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-05-28 08:34:29 UTC
Created attachment 781214 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-05-28 08:34:30 UTC
Created attachment 781217 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-05-28 08:34:31 UTC
Created attachment 781220 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-05-28 08:34:32 UTC
Created attachment 781223 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-28 19:42:40 UTC
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
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-28 19:48:01 UTC
Can't reproduce yet. Toralf, can you?
Comment 10 Joonas Niilola gentoo-dev 2022-05-29 05:57:46 UTC
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?
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-29 06:02:47 UTC
(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.  */
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-29 06:04:20 UTC
Created attachment 781313 [details, diff]
fortify-source-3.patch
Comment 13 Joonas Niilola gentoo-dev 2022-05-29 06:09:31 UTC
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.
Comment 14 Ionen Wolkens gentoo-dev 2022-05-29 10:09:57 UTC
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.
Comment 15 Joonas Niilola gentoo-dev 2022-05-29 10:24:05 UTC
Well, "fixed", but the root cause seems to be udev indeed, as you found.
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-03 07:34:18 UTC
Did the deps get sorted for udev/systemd/whatever?

Anyway, yep. Thanks all!

*** This bug has been marked as a duplicate of bug 841770 ***