Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ZFS/ZFS-KMod Compile Issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mneimeyer
n00b
n00b


Joined: 14 Sep 2012
Posts: 10

PostPosted: Fri Sep 14, 2012 10:15 pm    Post subject: ZFS/ZFS-KMod Compile Issues Reply with quote

The latest update of sys-fs/zfs-9999 brought in sys-fs/zfs-kmod-9999 and that is failing every time I try and build it.

CC [M] /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/gzip.o
/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/fm.c: In function 'fm_ena_generate':
/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/fm.c:1418:2: error: implicit declaration of function 'kpreempt_disable'
/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/fm.c:1420:2: error: implicit declaration of function 'kpreempt_enable'

I can't find any reference to this (or my Google skills have failed me) so I don't know where to start trying to debug.

Any advice?

Thanks!

Matt
Back to top
View user's profile Send private message
ryao
Retired Dev
Retired Dev


Joined: 27 Feb 2012
Posts: 132

PostPosted: Thu Oct 18, 2012 5:19 am    Post subject: Re: ZFS/ZFS-KMod Compile Issues Reply with quote

mneimeyer wrote:
The latest update of sys-fs/zfs-9999 brought in sys-fs/zfs-kmod-9999 and that is failing every time I try and build it.

CC [M] /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/gzip.o
/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/fm.c: In function 'fm_ena_generate':
/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/fm.c:1418:2: error: implicit declaration of function 'kpreempt_disable'
/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/fm.c:1420:2: error: implicit declaration of function 'kpreempt_enable'

I can't find any reference to this (or my Google skills have failed me) so I don't know where to start trying to debug.

Any advice?

Thanks!

Matt


I assume that this is not an issue anymore, but in the future, please file a bug report.
Back to top
View user's profile Send private message
soomon
n00b
n00b


Joined: 19 Nov 2007
Posts: 11

PostPosted: Wed Oct 31, 2012 11:00 pm    Post subject: Reply with quote

i am having the same problem.
how do i resolve it?
Code:

  CC [M]  /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/dsl_scan.o
  CC [M]  /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/dsl_synctask.o
  CC [M]  /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/fm.o
  CC [M]  /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/gzip.o
  CC [M]  /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/lzjb.o
  CC [M]  /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/metaslab.o
/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/fm.c: In function 'fm_ena_generate':
/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/fm.c:1420:2: error: implicit declaration of function 'kpreempt_disable'
/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/fm.c:1422:2: error: implicit declaration of function 'kpreempt_enable'
make[6]: *** [/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-/module/zfs/../../module/zfs/fm.o] Error 1



* If you need support, post the output of `emerge --info '=sys-fs/zfs-kmod-9999'`,
Code:

Portage 2.1.11.9 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.4, glibc-2.15-r3, 3.3.8-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.3.8-gentoo-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.1
Timestamp of tree: Wed, 31 Oct 2012 22:15:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo sunrise gbin soehest
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA @GPL-COMPATIBLE @OSI-APPROVED @EULA atheros-hal BitstreamVera PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ rsync://de-mirror.org/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/var/lib/layman/sunrise /var/lib/layman/gbin /var/lib/layman/soehest"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi additions alsa amd64 apache2 berkdb bluetooth branding bzip2 cairo canon cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif extensions fam fbcondecor fbcondecor_ctl firefox flac fortran g3dvl gd gdbm gif git gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv innodb intel ipv6 java jpeg lcms ldap libkms libnotify mad minizip mmx mng modules mp3 mp4 mpeg mudflap multilib mysql mysqli nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf perl php png policykit ppds pppd python qt3support qt4 rar rdesktop-vrdp readline rootfs rss sdl session socialweb spell sqlite sse sse2 ssl startup-notification static-libs subversion suhosin svg tcpd tiff truetype udev udisks unicode unzip upower usb vaapi vboxwebsrv vdpau vorbis wxwidgets x264 xa xcb xml xv xvid yenc zip zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http 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" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="all" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


* the complete build log and the output of `emerge -pqv '=sys-fs/zfs-kmod-9999'`.
Code:

[ebuild  N    ] sys-fs/zfs-kmod-9999  USE="rootfs -custom-cflags -debug"


* The complete build log is located at '/var/tmp/portage/sys-fs/zfs-kmod-9999/temp/build.log'.
Code:

http://nopaste.info/dadb82425b.html



* The ebuild environment file is located at '/var/tmp/portage/sys-fs/zfs-kmod-9999/temp/environment'.
Code:

http://nopaste.info/5d4336bf18.html
Back to top
View user's profile Send private message
mneimeyer
n00b
n00b


Joined: 14 Sep 2012
Posts: 10

PostPosted: Sat Nov 03, 2012 8:48 am    Post subject: Reply with quote

I never figured out the problem with zfs-9999 so I rolled back to zfs-0.6.0_rc11.

Matt
Back to top
View user's profile Send private message
soomon
n00b
n00b


Joined: 19 Nov 2007
Posts: 11

PostPosted: Wed Nov 07, 2012 5:23 am    Post subject: Reply with quote

so i unmerge zfs-9999 and emerge sys-fs/zfs ?
Back to top
View user's profile Send private message
mneimeyer
n00b
n00b


Joined: 14 Sep 2012
Posts: 10

PostPosted: Wed Nov 07, 2012 12:27 pm    Post subject: Reply with quote

I never unmerged 9999 (although I suppose I probably should have) I just changed my package.keywords (I think... it's been a while but I don't remember any particular hoops I had to jump through)

Then I rebooted later once everything was done merging.
Back to top
View user's profile Send private message
ryao
Retired Dev
Retired Dev


Joined: 27 Feb 2012
Posts: 132

PostPosted: Thu Nov 29, 2012 5:01 am    Post subject: Reply with quote

It sounds like you did not update sys-kernel/spl.

I do not check the forums very often, so I am afraid that I missed your post. I suggest filing bug reports in the future. They reach me sooner.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Jan 16, 2013 7:18 pm    Post subject: Reply with quote

dig dig dig :P

/snip

zfs-kmod currently fails


edit:

error was from using the overlay from your github

now used the official 9999 in-portage tree ebuilds and it worked

sorry for the noise :o
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
ryao
Retired Dev
Retired Dev


Joined: 27 Feb 2012
Posts: 132

PostPosted: Wed Jan 23, 2013 2:29 pm    Post subject: Reply with quote

kernelOfTruth wrote:
dig dig dig :P

/snip

zfs-kmod currently fails


edit:

error was from using the overlay from your github

now used the official 9999 in-portage tree ebuilds and it worked

sorry for the noise :o


I added warnings to the overlay last week to inform people that it was meant for development only. I take it that you saw them. :)

With that said, this issue on github has shown me that the the population of users using the 9999 ebuilds is bigger than I originally thought. There was an issue with the 9999 ebuilds where it is easy for sys-fs/zfs-kmod to be rebuilt without rebuilding sys-fs/zfs after a new feature changed the kernel/userspace interface. This could cause issues because the interface could become out-of-sync. I have committed an update to the main tree that makes sys-fs/zfs-9999 add itself to the module database. It should be on the mirrors within a few hours. Anyone using the sys-fs/zfs-9999 ebuild should rebuild sys-kernel/spl-9999, sys-fs/zfs-kmod-9999 and sys-fs/zfs-9999 to ensure that sys-fs/zfs-9999 is both in the module database and it is in sync with sys-fs/zfs-kmod-9999 and sys-kernel/spl-9999.

Note that sys-fs/zfs-9999 will not add itself to the module database when built with USE=kernel-builtin.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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