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