I clone latest git tree from linux source. I am running all in Virtual box(first memory was 4096 MB because of seg-fault I increase to 8096 MB then also same error). Right now VM has 3.19.0 installed
>clone latest git tree
>make localmodconfig
>make -j1
>sudo make mosules_install
All install work fine.
but with depmod it's giving me below error
DEPMOD 4.3.0-11785-gca4ba96
depmod: WARNING: found 2 modules in dependency cycles!
depmod: WARNING: /lib/modules/4.3.0-11785-gca4ba96/kernel/drivers/staging/lustre/lnet/lnet/lnet.ko in dependency cycle!
depmod: WARNING: /lib/modules/4.3.0-11785-gca4ba96/kernel/drivers/staging/lustre/lustre/libcfs/libcfs.ko in dependency cycle!
./scripts/depmod.sh: line 57: 23221 Killed "$DEPMOD" "$#" "$KERNELRELEASE" $SYMBOL_PREFIX
make: *** [_modinst_post] Error 137
Earlier I got seg fault same line, this times it's killed because I tried depmod -a VERSION(4.3.0.....)
Also when I tried manually depmod -a VERSION(4.3.0.....) it's didn't gave me any error it's work fine.
go to libcfs/libcfs/module.c and remove a switch-case piece for IOC_LIBCFS_PING_TEST - it's an obsolete codepiece, and it will work like a charm
It is a known issue that hasn't been fixed yet, see lkml:
https://lkml.org/lkml/2015/11/7/229
To fix / work around it, disable the building of Lustre file system driver modules.
I had the same problem. Commenting out the line of "$DEPMOD" "$#" "$KERNELRELEASE" $SYMBOL_PREFIX in file scripts/depmod.sh solved it.
Related
I keep getting make: * [internal-package] Error 2 when trying to build a tweak I'm working on. Ive never had this issue before, and its not specifying whats wrong. Here is what it says:
yinyongzhen#eagle:Desktop/tingtweak ‹master*›$ make package
Making all for tweak tingtweak…
make[2]: Nothing to be done for internal-library-compile'.
Making stage for tweak tingtweak…
dm.pl: building packagecom.yz.tingtweak:iphoneos-arm' in `./packages/com.yz.tingtweak_0.0.1-1+debug_iphoneos-arm.deb'
open2: exec of lzma -c0 failed at /Users/yinyongzhen/theos/bin/dm.pl line 113.
make: *** [internal-package] Error 2
Try running the lzma command in terminal, if it's missing, you need to:
brew install xz
For those facing the same issue, make sure dpkg is installed on your machine. It is require for Theos. Installing it will get rid of the error with lzma (it seems to be part of).
brew install dpkg
I’m big enthusiast of Manjaro since 2015 but today I got a problem that I couldn’t resolve on my own. After big updates done few days ago (by update manager) I have a problem with compiling Kernel Drivers on kernel 4.15.18-1. After call make I got error:
make -C /usr/lib/modules/4.15.18-1-MANJARO/build M=/run/media/mati/common/hello_world modules
make[1]: Wejście do katalogu '/usr/lib/modules/4.15.18-1-MANJARO/build'
**Makefile:974: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop.**
make[1]: Opuszczenie katalogu '/usr/lib/modules/4.15.18-1-MANJARO/build'
make: *** [Makefile:4: all] Błąd 2
The problem is that I cannot install mentioned libraries and command: pacman -Q libelf
returns
libelf 0.170-1
i have no idea what happend, I tried another kernels (I have few versions installed) but each has problems (e.g. the newest, experimental 4.17 has problem with asm goto of gcc compiler). I started learning Linux Kernel Drivers programming but now I can’t learn because of these compilation problems … anyone can help me ?
(Hope my english is understanable).
Greetings !
I got this error while setting up VirtualBox in my Fedora OS 29, I issued the following command and this issue got resolved.
sudo dnf install elfutils-libelf-devel
Are you able to install these packages on your system?
elfutils
elfutils-libelf-devel
libelf-dev
libelf-devel
May require dependencies such as: zlib-devel
For me I had to install elfutils-devel first then install eflutils and eflutils-libelf-devel. libelf-dev and libelf-devel could not be found but when I ran /sbin/vboxconfig again this time it did not error out. I ran the check, "systemctl status vboxdrv" and this time it showed Active: as Active (exited) and I was able to spin up the VM.
I cloned the kernel sources from Linus's github, I made a little modification to the usbhid driver (thats compiles fine as a module, no errors), but if I try to build the whole kernel, I get this error:
AR drivers/gpu/drm/built-in.o
AR drivers/gpu/built-in.o
Makefile:1023: recipe for target 'drivers' failed
make: *** [drivers] Error 2
And thats all nothing specific. What could be the problem?
UPDATE: 9-15-18 This issue is resolved.. The kernel will now compile with the commands I have given below.
Same issue here. 4.19.0-rc3 will not compile on the Threadripper 2990WX. BTW, I am currently running 4.19.0-rc2 with no issues.
These are the commands I used. Please note, I also tried without the LD static flag.
wget https://git.kernel.org/torvalds/t/linux-4.19-rc3.tar.gz && tar -xzf linux-4.19-rc3.tar.gz && cd linux-4.19-rc3 && make -j 64 clean && make -j 64 mrproper && zcat /proc/config.gz >> ./.config && LDFLAGS=--static make -j 64
The issue is in your config file. I have faced the same issue before and and appears to be due to a missing CONFIG option in the .config file generated through make menuconfig.
You need to add these two CONFIG options in your .config file:
CONFIG_EXTRA_FIRMWARE_DIR="lib/firmware"
CONFIG_EXTRA_FIRMWARE="<name_of_firmware_along_with_path>"
In some platforms, the GPU uses firmware that needs to be built-in by stitching it with kernel. This firmware is placed in the directory path provided by CONFIG_EXTRA_FIRMWARE option while building the kernel. And unless we don't provide CONFIG_EXTRA_FIRMWARE_DIR path to tell the kernel where to pick this firmware from, the above build failure occurs.
I have a problem by compiling a driver (WLAN-dongle Edimax ac600).
I´m using an Archlinux on my raspberry-pi and want to install my dongle for 5Ghz. During comiling the driver I get this message. I tried to install the linux-headers without success. (in other threads it will be a solution)
Here is my output of make:
[root#raspberry_pi_1 rtl8812AU]# make make ARCH=arm CROSS_COMPILE= -C
/lib/modules/4.9.43-1-ARCH/build M=/root/rtl8812AU modules make[1]:
*** /lib/modules/4.9.43-1-ARCH/build: No such file or directory. Stop. make: *** [Makefile:1576: modules] Error 2
I found out that my pi has a two-arch...-directories:
4.9.43-1-ARCH/
4.9.51-1-ARCH/
Only the second one has the build directory...
How can I fix the problem?!
thanks a lot,
a Linux noob...
[Reputation is too low to post comment]
Use uname -r to make sure which version of the kernel you use.
If it's 4.9.43 : you have newer version of the kernel and this confuse your installer. You should reboot on the 51 one
If it's 4.9.51 : You messed up your installation step and are trying to compile for an old target. You should review the compilation process and change every mention of the 4.9.43 to 4.9.51 since it's the version you use.
If you upgrade your kernel, you may have to rebuild the thing again (You may like to have script in the future ;) ) with the new kernel version.
I am making an linux system following the procedure in lfs. But while i was following the fifth step(i.e. the one before make) on this page, i get an error at the last.
configure: error: linker with -z relro support required
Now after this if i call make i get an error
make: *** No targets specified and no makefile found. Stop.
I am running this on a ubuntu 12.04 machine.
How to fix this error?
Do the following:-
sudo apt-get install gawk
and then retry. This worked for me.