Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge udev-215-r1 failing during compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jsegrave
n00b
n00b


Joined: 10 Jun 2012
Posts: 7

PostPosted: Mon Aug 04, 2014 4:45 pm    Post subject: emerge udev-215-r1 failing during compile Reply with quote

I wished to upgrade xorg-server, emerge scheduled an update of udev to udev-215-r1, which fails to compile. In the build log I found
this compile error:

Code:

/var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/udev/udev-builtin-btrfs.c:31:8: error: redefinition of ‘struct btrfs_ioctl_vol_args’
 struct btrfs_ioctl_vol_args {
        ^
In file included from /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/shared/util.h:87:0,
                 from /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/libudev/libudev-private.h:30,
                 from /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/udev/udev.h:27,
                 from /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/udev/udev-builtin-btrfs.c:28:
/var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/shared/missing.h:190:8: note: originally defined here
 struct btrfs_ioctl_vol_args {


Here follows the output from emerge --info '=sys-fs/udev-215-r1::gentoo'
Code:

Portage 2.2.10 (default/linux/amd64/13.0, gcc-4.8.1, glibc-2.19, 3.10.9-gentoo-jes-8 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.10.9-gentoo-jes-8-x86_64-Intel-R-_Core-TM-_i7-4700HQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:     7609760 total,   5686176 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of tree: Mon, 04 Aug 2014 15:20:01 +0000
ld GNU ld (GNU Binutils) 2.20.1.20100303
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.5-r4, 3.1.3-r1, 3.2.5-r3, 3.3.5-r1
dev-util/cmake:           2.8.12
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1, 1.12.6, 1.13.4
sys-devel/binutils:       2.20.1-r1, 2.21.1
sys-devel/gcc:            4.4.5, 4.5.2, 4.6.3, 4.7.3, 4.8.1-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://gentoo.tiscali.nl/pub/mirror/gentoo/"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync2.nl.gentoo.org/gentoo-portage"
USE="X X509 acl alsa amd64 bash-completion berkdb blksha1 bzip2 cairo cgi cli cracklib cramfs crypt curl custom-cflags cxx dbus dri emacs epydoc examples extras fontconfig gdbm git gmp gnutls gpm gtk hpn iconv innodb introspection ipc ipv6 jadetex java jpeg ldap less libedit libkms libssh2 loop-aes mdev minizip mktemp mmx modules mp3 mta mudflap multilib multislot ncurses net nls nptl openmp pam pam_ssh pcre perl png python python2 readline recursion-limit ruby sasl session sha512 slang sql sqlite sse sse2 ssl static-libs subversion symlink tcl tcpd threads tk trace truetype udev unicode webdav wide-unicode xa xinetd xml xvfb zlib" 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="actions alias auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers imagemap include info log_config logio 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
USE_PYTHON="2.6 2.7 3.1"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Here is the output from emerge -pqv =sys-fs/udev-215-r1::gentoo
Code:

[ebuild     U ] sys-fs/udev-215-r1 [206-r3] USE="acl firmware-loader introspection kmod static-libs -doc -gudev (-selinux) (-openrc%*)" ABI_X86="(64) -32 (-x32)"


It appears I will have to post the build log separately if needed (the posting appears to become too long for this forum). I have included the compile step generating the error:
Code:
libtool: compile:  x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215 -include ./config.h -DPKGSYSCONFDIR=\"/etc/systemd\" -DSYSTEM_CONFIG_UNIT_PATH=\"/etc/systemd/system\" -DSYSTEM_DATA_UNIT_PATH=\"/lib/systemd/system\" -DSYSTEM_SYSVINIT_PATH=\"/etc/init.d\" -DSYSTEM_SYSVRCND_PATH=\"/etc/rc.d\" -DUSER_CONFIG_UNIT_PATH=\"/etc/systemd/user\" -DUSER_DATA_UNIT_PATH=\"/usr/lib/systemd/user\" -DCATALOG_DATABASE=\"/var/lib/lib/systemd/catalog/database\" -DSYSTEMD_CGROUP_AGENT_PATH=\"/lib/systemd/systemd-cgroups-agent\" -DSYSTEMD_BINARY_PATH=\"/lib/systemd/systemd\" -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"/lib/systemd/systemd-shutdown\" -DSYSTEMD_SLEEP_BINARY_PATH=\"/lib/systemd/systemd-sleep\" -DSYSTEMCTL_BINARY_PATH=\"/bin/systemctl\" -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"/bin/systemd-tty-ask-password-agent\" -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"/usr/bin/systemd-stdio-bridge\" -DROOTPREFIX=\"\" -DRANDOM_SEED_DIR=\"/var/lib/lib/systemd/\" -DRANDOM_SEED=\"/var/lib/lib/systemd/random-seed\" -DSYSTEMD_CRYPTSETUP_PATH=\"/lib/systemd/systemd-cryptsetup\" -DSYSTEM_GENERATOR_PATH=\"/lib/systemd/system-generators\" -DUSER_GENERATOR_PATH=\"/usr/lib/systemd/user-generators\" -DSYSTEM_SHUTDOWN_PATH=\"/lib/systemd/system-shutdown\" -DSYSTEM_SLEEP_PATH=\"/lib/systemd/system-sleep\" -DSYSTEMD_KBD_MODEL_MAP=\"/usr/share/systemd/kbd-model-map\" -DX_SERVER=\"/usr/bin/X\" -DUDEVLIBEXECDIR=\"/lib/udev\" -DPOLKIT_AGENT_BINARY_PATH=\"/usr/bin/pkttyagent\" -DQUOTACHECK=\"/usr/sbin/quotacheck\" -DKEXEC=\"/usr/sbin/kexec\" -DLIBDIR=\"/usr/lib64\" -DROOTLIBDIR=\"/lib64\" -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src -I ./src/shared -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/shared -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/network -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/login -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/journal -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/timedate -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/timesync -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/resolve -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/systemd -I ./src/core -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/core -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/libudev -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/udev -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/udev/net -I ./src/udev -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/libsystemd/sd-bus -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/libsystemd/sd-event -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/libsystemd/sd-rtnl -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/libsystemd-network "-DFIRMWARE_PATH=\"/lib/firmware/updates/\", \"/lib/firmware/\"" -pipe -Wall -Wextra -Wno-inline -Wundef -Wformat=2 -Wformat-security -Wformat-nonliteral -Wlogical-op -Wsign-compare -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wsuggest-attribute=noreturn -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Werror=overflow -Wnested-externs -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -ffunction-sections -fdata-sections -fstack-protector --param=ssp-buffer-size=4 -ffat-lto-objects -I/usr/include/blkid -I/usr/include/uuid -O2 -pipe -c /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/udev/udev-node.c  -fPIC -DPIC -o src/udev/.libs/libudev_core_la-udev-node.o
cc1: warning: ./src/core: No such file or directory [enabled by default]
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215  -include ./config.h -DPKGSYSCONFDIR=\"/etc/systemd\" -DSYSTEM_CONFIG_UNIT_PATH=\"/etc/systemd/system\" -DSYSTEM_DATA_UNIT_PATH=\"/lib/systemd/system\" -DSYSTEM_SYSVINIT_PATH=\"/etc/init.d\" -DSYSTEM_SYSVRCND_PATH=\"/etc/rc.d\" -DUSER_CONFIG_UNIT_PATH=\"/etc/systemd/user\" -DUSER_DATA_UNIT_PATH=\"/usr/lib/systemd/user\" -DCATALOG_DATABASE=\"/var/lib/lib/systemd/catalog/database\" -DSYSTEMD_CGROUP_AGENT_PATH=\"/lib/systemd/systemd-cgroups-agent\" -DSYSTEMD_BINARY_PATH=\"/lib/systemd/systemd\" -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"/lib/systemd/systemd-shutdown\" -DSYSTEMD_SLEEP_BINARY_PATH=\"/lib/systemd/systemd-sleep\" -DSYSTEMCTL_BINARY_PATH=\"/bin/systemctl\" -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"/bin/systemd-tty-ask-password-agent\" -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"/usr/bin/systemd-stdio-bridge\" -DROOTPREFIX=\"\" -DRANDOM_SEED_DIR=\"/var/lib/lib/systemd/\" -DRANDOM_SEED=\"/var/lib/lib/systemd/random-seed\" -DSYSTEMD_CRYPTSETUP_PATH=\"/lib/systemd/systemd-cryptsetup\" -DSYSTEM_GENERATOR_PATH=\"/lib/systemd/system-generators\" -DUSER_GENERATOR_PATH=\"/usr/lib/systemd/user-generators\" -DSYSTEM_SHUTDOWN_PATH=\"/lib/systemd/system-shutdown\" -DSYSTEM_SLEEP_PATH=\"/lib/systemd/system-sleep\" -DSYSTEMD_KBD_MODEL_MAP=\"/usr/share/systemd/kbd-model-map\" -DX_SERVER=\"/usr/bin/X\" -DUDEVLIBEXECDIR=\"/lib/udev\" -DPOLKIT_AGENT_BINARY_PATH=\"/usr/bin/pkttyagent\" -DQUOTACHECK=\"/usr/sbin/quotacheck\" -DKEXEC=\"/usr/sbin/kexec\" -DLIBDIR=\"/usr/lib64\" -DROOTLIBDIR=\"/lib64\" -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src -I ./src/shared -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/shared -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/network -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/login -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/journal -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/timedate -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/timesync -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/resolve -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/systemd -I ./src/core -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/core -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/libudev -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/udev -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/udev/net -I ./src/udev -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/libsystemd/sd-bus -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/libsystemd/sd-event -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/libsystemd/sd-rtnl -I /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/libsystemd-network  -DFIRMWARE_PATH="\"/lib/firmware/updates/\", \"/lib/firmware/\""  -pipe -Wall -Wextra -Wno-inline -Wundef -Wformat=2 -Wformat-security -Wformat-nonliteral -Wlogical-op -Wsign-compare -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wsuggest-attribute=noreturn -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Werror=overflow -Wnested-externs -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -ffunction-sections -fdata-sections -fstack-protector -fPIE --param=ssp-buffer-size=4 -ffat-lto-objects   -I/usr/include/blkid -I/usr/include/uuid    -O2 -pipe -c -o src/udev/libudev_core_la-udev-builtin-btrfs.lo `test -f 'src/udev/udev-builtin-btrfs.c' || echo '/var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/'`src/udev/udev-builtin-btrfs.c
/var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/udev/udev-builtin-btrfs.c:31:8: error: redefinition of ‘struct btrfs_ioctl_vol_args’
 struct btrfs_ioctl_vol_args {
        ^
In file included from /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/shared/util.h:87:0,
                 from /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/libudev/libudev-private.h:30,
                 from /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/udev/udev.h:27,
                 from /var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/udev/udev-builtin-btrfs.c:28:
/var/tmp/portage/sys-fs/udev-215-r1/work/systemd-215/src/shared/missing.h:190:8: note: originally defined here
 struct btrfs_ioctl_vol_args {
        ^
make: *** [src/udev/libudev_core_la-udev-builtin-btrfs.lo] Error 1
make: *** Waiting for unfinished jobs....

I did not have btrfs enabled in the kernel when I first got this error, enabling it as a module made no difference (these logs are from the version with it enabled).

Any help would be most appreciated
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Aug 04, 2014 4:50 pm    Post subject: Reply with quote

Any chance the problem lies with too old sys-kernel/linux-headers ?
Back to top
View user's profile Send private message
FaeLLe
n00b
n00b


Joined: 13 Aug 2007
Posts: 13
Location: London

PostPosted: Mon Aug 04, 2014 6:15 pm    Post subject: Reply with quote

I get the same issue too and I am on the latest stable gentoo-sources kernel.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Mon Aug 04, 2014 6:25 pm    Post subject: Reply with quote

FaeLLe wrote:
I get the same issue too and I am on the latest stable gentoo-sources kernel.

kernel is not kernel headers.
Update kernel headers like VoidMage said and report AFTER.
Back to top
View user's profile Send private message
FaeLLe
n00b
n00b


Joined: 13 Aug 2007
Posts: 13
Location: London

PostPosted: Mon Aug 04, 2014 6:47 pm    Post subject: Reply with quote

Figured it out, this is caused because of a new USE flag introduced by the new virtual packages.
Running the below command should fix the issue,

# emerge -1av virtual/udev virtual/libudev virtual/libgudev
Back to top
View user's profile Send private message
jsegrave
n00b
n00b


Joined: 10 Jun 2012
Posts: 7

PostPosted: Tue Aug 05, 2014 8:08 am    Post subject: solved emerge udev-215-r1 failing during compile Reply with quote

As suggested, emerging linux-headers allowed the emerge to complete. I hadn't realised that updating the kernel sources to build a new kernel would not also update these include files
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum