1 |
On Monday 13 Jul 2015 17:42:22 Alexander Kapshuk wrote: |
2 |
> On Mon, Jul 13, 2015 at 5:29 PM, Alan McKinnon <alan.mckinnon@×××××.com> |
3 |
wrote: |
4 |
> > Did a new install, the new kernel can't load modules: |
5 |
> > |
6 |
> > # modprobe nfsv3 |
7 |
> > modprobe: ERROR: could not insert 'nfsv3': Exec format error |
8 |
> > |
9 |
> > Odd. Never had this before. The module file itself is a regular 64-bit |
10 |
> > ELF file, just as it should be (compared to a working module on another |
11 |
> > machine) |
12 |
> > |
13 |
> > gcc is 4.8.4 as supplied by a recent stage3-amd64-20150709.tar.bz2: |
14 |
> > # gcc -v |
15 |
> > Using built-in specs. |
16 |
> > COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4/gcc |
17 |
> > COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.4/lto-wrappe |
18 |
> > r Target: x86_64-pc-linux-gnu |
19 |
> > Configured with: |
20 |
> > /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/configure |
21 |
> > --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr |
22 |
> > --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4 |
23 |
> > --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include |
24 |
> > --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4 |
25 |
> > --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/man |
26 |
> > --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/info |
27 |
> > --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include/g++ |
28 |
> > -v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/python |
29 |
> > --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt |
30 |
> > --disable-werror --with-system-zlib --enable-nls |
31 |
> > --without-included-gettext --enable-checking=release |
32 |
> > --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.4 |
33 |
> > p1.6, pie-0.6.1' --enable-libstdcxx-time --enable-shared |
34 |
> > --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu |
35 |
> > --enable-multilib --with-multilib-list=m32,m64 --disable-altivec |
36 |
> > --disable-fixed-point --enable-targets=all --disable-libgcj |
37 |
> > --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto |
38 |
> > --without-cloog --enable-libsanitizer |
39 |
> > Thread model: posix |
40 |
> > gcc version 4.8.4 (Gentoo 4.8.4 p1.6, pie-0.6.1) |
41 |
> > |
42 |
> > make.conf seems correct: |
43 |
> > CHOST="x86_64-pc-linux-gnu" |
44 |
> > CFLAGS="-march=native -O2 -pipe" |
45 |
> > CXXFLAGS="${CFLAGS}" |
46 |
> > ACCEPT_KEYWORDS="~amd64" |
47 |
> > |
48 |
> > The kernel loads and runs OK: |
49 |
> > # uname -a |
50 |
> > Linux download 4.1.2-gentoo #1 SMP Mon Jul 13 13:28:40 SAST 2015 x86_64 |
51 |
> > Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz GenuineIntel GNU/Linux |
52 |
> > |
53 |
> > and the kernel was built with gcc auto-detection: |
54 |
> > # grep NATIVE /boot/config-4.1.2-gentoo |
55 |
> > CONFIG_MNATIVE=y |
56 |
> > |
57 |
> > and the .config was grabbed from a working machine with very similar |
58 |
> > hardware (one minor hardware upgrade ahead) |
59 |
> > |
60 |
> > I haven't done a full world update yet, most code is still what's in the |
61 |
> > stage3, but always in the past that hasn't been a problem; the stage |
62 |
> > must successfully build a kernel and load the modules. |
63 |
> > |
64 |
> > Module loading works just fine when booted from the Gentoo minimal |
65 |
> > install image. |
66 |
> > |
67 |
> > So, what dumbass n00b error did I make today? |
68 |
> > |
69 |
> > |
70 |
> > -- |
71 |
> > Alan McKinnon |
72 |
> > alan.mckinnon@×××××.com |
73 |
> |
74 |
> Does 'modprobe -nv' say anything useful? |
75 |
> |
76 |
> Anything of interest in '/var/log/dmesg'? |
77 |
|
78 |
|
79 |
Just in case you missed it on the enthusiasm of a new install, have you set: |
80 |
|
81 |
CONFIG_MODULES=y |
82 |
|
83 |
and of course built as modules whatever you're modprobing. |
84 |
|
85 |
BTW, is the module in question called 'nfsv3', or is it 'nfs'? I don't use it |
86 |
myself to know. |
87 |
|
88 |
-- |
89 |
Regards, |
90 |
Mick |