Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suddenly spl kernel module not compiling anymore
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
jwezel
n00b
n00b


Joined: 29 Jan 2003
Posts: 58
Location: Birr, Switzerland

PostPosted: Thu Oct 08, 2015 9:47 am    Post subject: Suddenly spl kernel module not compiling anymore Reply with quote

When I tried to rebuild the kernel, spl refused to compile with this error:

Code:
*make[2]: *** No rule to make target 'spl/splat/splat-ctl.o', needed by 'spl/splat/splat.o'.  Stop.
*scripts/Makefile.build:403: recipe for target 'spl/splat' failed
*make[1]: *** [spl/splat] Error 2
*make[1]: *** Waiting for unfinished jobs....
*make[2]: *** No rule to make target 'spl/spl/spl-proc.o', needed by 'spl/spl/spl.o'.  Stop.
*scripts/Makefile.build:403: recipe for target 'spl/spl' failed
*make[1]: *** [spl/spl] Error 2
*Makefile:947: recipe for target 'spl' failed
*make: *** [spl] Error 2


After the error, I updated the sys-kernel/spl package from 0.6.4.2 to 0.6.5.2 in the hope to resolve the problem, but this didn't change anything.

I need this module for ZFS.

Anyone encountered this problem too? Any ideas why this could suddenly stop compiling?
_________________
Johnny Wezel
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Fri Oct 09, 2015 5:19 pm    Post subject: Reply with quote

build log? emerge --info? wgetpaste can be your friend.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
jwezel
n00b
n00b


Joined: 29 Jan 2003
Posts: 58
Location: Birr, Switzerland

PostPosted: Fri Oct 09, 2015 7:09 pm    Post subject: Reply with quote

I quoted the relevant part of the build log.

emerge --info:

Code:
Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/kde/systemd, gcc-4.9.3, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_L5640_@_2.27GHz-with-gentoo-2.2
KiB Mem:    24634576 total,  20225252 free
KiB Swap:    4194296 total,   4194296 free
Timestamp of repository gentoo: Fri, 09 Oct 2015 08:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -w"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"                                                                                                                                 
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"                                                                 
CXXFLAGS="-O2 -march=native -pipe -w"                                                                                                                                                                                                       
DISTDIR="/usr/portage/distfiles"                                                                                                                                                                                                             
EMERGE_DEFAULT_OPTS="--autounmask-write --quiet-build --jobs 4 --load-average 13"                                                                                                                                                           
FCFLAGS="-O2 -pipe"                                                                                                                                                                                                                         
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"                                                                                                                                                                                                           
FFLAGS="-O2 -pipe"                                                                                                                                                                                                                           
GENTOO_MIRRORS="http://distfiles.gentoo.org"                                                                                                                                                                                                 
LANG="en_US.utf8"                                                                                                                                                                                                                           
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                                                                                                           
MAKEOPTS="-j13"                                                                                                                                                                                                                             
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"                                                                                                                                                                                                                   
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv infinality ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qt3support qt4 readline sdl seccomp semantic-desktop session spell sqlite sse sse2 sse4 ssl ssse3 startup-notification svg systemd tcpd tiff truetype tty-helpers udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid 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="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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

_________________
Johnny Wezel
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Fri Oct 09, 2015 7:36 pm    Post subject: Reply with quote

jwezel wrote:
I quoted the relevant part of the build log.

No you did not. First, running with -j13 can really mess up the output, to get better overview of error you should use -j1. Second, I do not see Error 1 in your log snippet.
Back to top
View user's profile Send private message
jwezel
n00b
n00b


Joined: 29 Jan 2003
Posts: 58
Location: Birr, Switzerland

PostPosted: Fri Oct 09, 2015 7:42 pm    Post subject: Reply with quote

Quote:
No you did not.


The part I quoted was everything there was about the error. Don't forget, it's a kernel build, not an emerge. Building with -j1 did not change anything.
_________________
Johnny Wezel
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Fri Oct 09, 2015 7:46 pm    Post subject: Reply with quote

Quote:
I quoted the relevant part of the build log.
Concurring with Buffoon. wgetpaste can be your friend. emerge =sys-kernel/spl-0.6.5.2 worked here an hour ago, against git-sources-4.3-rc4 x86_64 gcc-4.9.3
_________________
Defund the FCC.
Back to top
View user's profile Send private message
jwezel
n00b
n00b


Joined: 29 Jan 2003
Posts: 58
Location: Birr, Switzerland

PostPosted: Fri Oct 09, 2015 8:01 pm    Post subject: Reply with quote

A cat of /var/log/genkernel.log yields:

Code:
* Gentoo Linux Genkernel; Version 63
* Running with options: --makeopts=-j1 kernel
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* Linux Kernel 4.0.5-gentoo for x86_64...
* .. with config file /etc/kernels/kernel-config-x86_64-4.0.5-gentoo
* kernel: --mrproper is disabled; not running 'make mrproper'.
*         >> Running oldconfig...
COMMAND: make -j1 CC="gcc" LD="ld" AS="as" ARCH="x86" 
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
* kernel: --clean is disabled; not running 'make clean'.
* kernel: >> Invoking nconfig...
COMMAND: make -j1 -j1 CC="gcc" LD="ld" AS="as" ARCH="x86" nconfig
COMMAND: make -j1 CC="gcc" LD="ld" AS="as" ARCH="x86" 
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
*         >> Compiling 4.0.5-gentoo bzImage...
COMMAND: make -j1 CC="gcc" LD="ld" AS="as" ARCH="x86" 
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
Kernel: arch/x86/boot/bzImage is ready  (#1)
*         >> Not installing firmware as it's included in the kernel already (CONFIG_FIRMWARE_IN_KERNEL=y)...
*         >> Compiling 4.0.5-gentoo modules...
COMMAND: make -j1 CC="gcc" LD="ld" AS="as" ARCH="x86" 
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
make[2]: *** No rule to make target 'spl/spl/spl-proc.o', needed by 'spl/spl/spl.o'.  Stop.
scripts/Makefile.build:403: recipe for target 'spl/spl' failed
make[1]: *** [spl/spl] Error 2
Makefile:947: recipe for target 'spl' failed
make: *** [spl] Error 2
* Gentoo Linux Genkernel; Version 63
* Running with options: --makeopts=-j1 kernel
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* ERROR: Failed to compile the "modules" target...
*
* -- Grepping log... --
*
*
* -- End log... --
*
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*


I'm using gentoo-sources.
_________________
Johnny Wezel
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Fri Oct 09, 2015 8:32 pm    Post subject: Reply with quote

added to /etc/portage/package.keywords:
=sys-fs/zfs-9999 **
=sys-fs/zfs-kmod-9999 **
=sys-kernel/spl-9999 **
added to /etc/portage/package.unmask:
=sys-fs/zfs-9999
=sys-fs/zfs-kmod-9999
=sys-kernel/spl-9999
emerge -av =sys-fs/zfs-9999 =sys-fs/zfs-kmod-9999
appeared to compile and install all 3 packages

https://wiki.gentoo.org/wiki/ZFS would suggest zfs/zfs-kmod/spl need to be in sync and has genkernel note If using genkernel to load ZFS, this value must be set before genkernel is run to ensure that the file is copied into the initramfs. and seems to suggest the specified set of action must be repeated for each kernel update.

still git-sources4.3-rc4 i'll reboot if needed to a genkernel gentoo-sources

have no zfs so operational test is more difficult

edit: stray questions- 4.05 is first 4. kernel? No interest in current stable gentoo-sources-4.2.3? Did you use portage zfs packages or direct upstream download?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
jwezel
n00b
n00b


Joined: 29 Jan 2003
Posts: 58
Location: Birr, Switzerland

PostPosted: Fri Oct 09, 2015 10:06 pm    Post subject: Reply with quote

I'm not a fan of unmasking, so normally I stay with whatever kernel is the latest non-masked.

But I had the same idea. Why not try 4.2.3 with zfs and spl version 0.6.5.2. But systemd hangs on "Loading Kernel Modules". So maybe I have to try with zfs and spl 9999.

I noticed spl and the zfs kernel module are no longer built with the kernel but independently.
_________________
Johnny Wezel
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sat Oct 10, 2015 2:31 am    Post subject: Reply with quote

after adding to /etc/portage/package.keywords:
=sys-kernel/spl-0.6.5.2 ~amd64
=sys-fs/zfs-0.6.5.2-r1 ~amd64
=sys-fs/zfs-kmod-0.6.5.2 ~amd64
and leaving the 9999 versions masked:

emerge =sys-kernel/spl-0.6.5.2 =sys-fs/zfs-0.6.5.2-r1 =sys-fs/zfs-kmod-0.6.5.2 compiles and installs against gentoo-sources-3.18.16 and gentoo-sources-4.2.3 bracketing the stable gentoo-sources-4.05

had not thought about an external kernel module with genkernel initrd for a file system or disk driver before, thanks for the question
_________________
Defund the FCC.
Back to top
View user's profile Send private message
jwezel
n00b
n00b


Joined: 29 Jan 2003
Posts: 58
Location: Birr, Switzerland

PostPosted: Sat Oct 10, 2015 11:37 am    Post subject: [EVADED] Suddenly spl kernel module not compiling anymore Reply with quote

Yes, anyway, the error doesn't occur with 4.2.3, but now I have issues at boot time.
_________________
Johnny Wezel
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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