Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 629958 - sys-kernel/cryptodev-1.9 error: positional initialization of field in ‘struct’ declared with ‘designated_init’ attribute
Summary: sys-kernel/cryptodev-1.9 error: positional initialization of field in ‘struct...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LABBE Corentin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-05 13:53 UTC by Sam Stone
Modified: 2018-04-10 12:24 UTC (History)
3 users (show)

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


Attachments
build log (sys-kernel:cryptodev-1.9:20170905-134500.log,4.50 KB, text/x-log)
2017-09-05 13:53 UTC, Sam Stone
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Stone 2017-09-05 13:53:16 UTC
Created attachment 492428 [details]
build log

>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-kernel/cryptodev-1.9
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/4.13.0-gentoo/build
 * Found sources for kernel version:
 *     4.13.0-gentoo
 * Checking for suitable kernel configuration options...                                                                                                                                                     [ ok ]

>>> Emerging (1 of 2) sys-kernel/cryptodev-1.9::gentoo
 * cryptodev-linux-1.9.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                           [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/4.13.0-gentoo/build
 * Found sources for kernel version:
 *     4.13.0-gentoo
 * Checking for suitable kernel configuration options...                                                                                                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking cryptodev-linux-1.9.tar.gz to /var/tmp/portage/sys-kernel/cryptodev-1.9/work
>>> Source unpacked in /var/tmp/portage/sys-kernel/cryptodev-1.9/work
>>> Preparing source in /var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9 ...
ln: failed to create symbolic link 'Module.symvers': File exists
 * Preparing cryptodev module
make -j5 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' build 
make -C /usr/src/linux M=/var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9 ARCH=x86 CROSS_COMPILE=x86_64-pc-linux-gnu- modules
make[1]: Entering directory '/usr/src/linux-4.13.0-gentoo'
  CC [M]  /var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9/ioctl.o
  CC [M]  /var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9/main.o
  CC [M]  /var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9/cryptlib.o
  CC [M]  /var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9/authenc.o
  CC [M]  /var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9/zc.o
/var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9/ioctl.c:1127:3: error: positional initialization of field in ‘struct’ declared with ‘designated_init’ attribute [-Werror=designated-init]
  {0, },
   ^
/var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9/ioctl.c:1127:3: note: (near initialization for ‘verbosity_ctl_dir[1]’)
/var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9/ioctl.c:1136:3: error: positional initialization of field in ‘struct’ declared with ‘designated_init’ attribute [-Werror=designated-init]
  {0, },
   ^
/var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9/ioctl.c:1136:3: note: (near initialization for ‘verbosity_ctl_root[1]’)
  CC [M]  /var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9/util.o
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:302: /var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9/ioctl.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1512: _module_/var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9] Error 2
make[1]: Leaving directory '/usr/src/linux-4.13.0-gentoo'
make: *** [Makefile:27: build] Error 2
 * ERROR: sys-kernel/cryptodev-1.9::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-kernel/cryptodev-1.9::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-kernel/cryptodev-1.9::gentoo'`.
 * The complete build log is located at '/var/log/portage/sys-kernel:cryptodev-1.9:20170905-134500.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-kernel/cryptodev-1.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/cryptodev-1.9/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9'
 * S: '/var/tmp/portage/sys-kernel/cryptodev-1.9/work/cryptodev-linux-1.9'

gallatin@hans ~ % sudo emerge --info '=sys-kernel/cryptodev-1.9::gentoo' 
Portage 2.3.8 (python 3.6.1-final-0, default/linux/amd64/13.0/desktop, gcc-6.4.0, glibc-2.25-r4, 4.13.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-5500U_CPU_@_2.40GHz-with-gentoo-2.4.1
KiB Mem:     8091784 total,   3765612 free
KiB Swap:   20479996 total,  20479996 free
Timestamp of repository gentoo: Mon, 04 Sep 2017 21:30:01 +0000
Head commit of repository gentoo: 11a8189f91ae1a1dbd07fbe5601b9373fced3ba0
Head commit of repository neomutt_gentoo: c6a9d6954ca0230a53ad7fde3894c885ed9c3718

Head commit of repository sk-overlay: 1181a39d7c3f56c3dbb21454767b3f0517d813f3

sh bash 4.4_p12
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo
dev-util/cmake:           3.9.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.29::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

neomutt_gentoo
    location: /usr/local/portage/mail-client
    sync-type: git
    sync-uri: https://github.com/neomutt/gentoo-neomutt
    masters: gentoo

sk-overlay
    location: /usr/local/overlay/sk-overlay
    sync-type: git
    sync-uri: https://c.darenet.org/scriptkitties/overlay.git
    masters: gentoo

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Vivaldi"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=broadwell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=broadwell -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ rsync://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acc acl acpi alsa amd64 apng berkdb bindist bluetooth branding bzip2 cairo caps cdda cdr cli colord consolekit cracklib crypt cups curl cxx dbus dri dri3 dts dvb dvd dvdr egl emacs emboss eml encode eudev examples exif fam ffmpeg firebird firefox flac fontconfig fortran gdbm gif git glamor gles gnome-keyring gpm gtk guile highlight hscolour iconv icq icu idn introspection ipv6 java javascript jemalloc jpeg jpeg2k kerberos latex lcms ldap libinput libnotify mad mmap mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg openal opengl openmp pam pango pcmcia pcre pdf perl png policykit posix postgres postscript ppds profile pulseaudio python qt3support qt5 readline ruby sasl scanner sdl seccomp secomp session speex spell sqlite ssh ssl startup-notification svc svg syslog systemtap taglib tcpd threads tiff truetype udev udisks unicode upower usb vaapi valgrind vim-syntax vorbis wayland widgets wifi wxwidgets x264 xattr xcb xft xinerama xml xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmxext mmx sse sse2 sse3 ssse3 sse4_1 sse4_2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965" XFCE_PLUGINS="clock power trash multiload-nandhp" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-kernel/cryptodev-1.9::gentoo was built with the following:
USE="-examples" ABI_X86="(64)"

gallatin@hans ~ % sudo emerge -pqv '=sys-kernel/cryptodev-1.9::gentoo'
[ebuild   R   ] sys-kernel/cryptodev-1.9  USE="-examples"
Comment 1 Wendy 2017-12-30 12:54:58 UTC
Same here: Worked with kernel 4.12.12 but that one is removed from portage
Comment 2 LABBE Corentin 2018-03-20 20:52:36 UTC
The ebuild need to backport this upstream commit https://github.com/cryptodev-linux/cryptodev-linux/commit/f0d69774afb27ffc62bf353465fba145e70cb85a
I will PR the changes soon.
Comment 3 Larry the Git Cow gentoo-dev 2018-04-10 12:24:20 UTC
The bug has been closed via the following commit(s):

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

commit d8fcfed03eec36f78ee20b18fbcd673e05e81ebb
Author:     Labbe Corentin <clabbe.montjoie@gmail.com>
AuthorDate: 2018-04-09 09:59:51 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-04-10 12:21:31 +0000

    sys-kernel/cryptodev: fix bug 629958
    
    Add an upstream patch for allowing cryptodev to build with kernel >= 4.13
    
    Closes: https://bugs.gentoo.org/629958
    Package-Manager: Portage-2.3.24, Repoman-2.3.6
    Closes: https://github.com/gentoo/gentoo/pull/7807

 sys-kernel/cryptodev/cryptodev-1.9.ebuild          |  4 +-
 .../cryptodev-1.9-fix-build-with-4.14-629958.patch | 44 ++++++++++++++++++++++
 2 files changed, 47 insertions(+), 1 deletion(-)