Installing I210 driver on a running kernel? - c

I am working on a basic kernel which is not supporting Make command.
The drivers provided by intel use Makefile to install.
So I cant copy the file into my target and run make.
I tried to cross compile but its giving following error.
make[1]: Entering directory /usr/src/linux-headers-3.11.0-15-generic'
/usr/src/linux-headers-3.11.0-15-generic/arch/x86/Makefile:92:
stack protector enabled but no compiler support
rm: cannot remove/home/sigma/karthik1/igb-5.3.4.4/src/.tmp_versions/igb.mod': Permission denied
make[1]: * [crmodverdir] Error 1
make[1]: Leaving directory `/usr/src/linux-headers-3.11.0-15-generic'
make: * [default] Error 2

Related

'absl/meta/type_traits.h' file not found

I am currently trying to build the baresip library in order to use it into an Android application. For that, I use the project libbaresip-android and I follow the instructions of the README file.
I am trying to setup a pipeline running on Ubuntu 20.04. From the README file, the steps 1, 2 and 3 seems to work, but my pipeline failed on the step 4 when the script tries to compile webrtc.
The error:
make[2]: Entering directory '/home/vsts/work/1/s/webrtc'
[armeabi-v7a] Compile++ thumb: webrtc <= aecm_core.cc
In file included from jni/src/webrtc/modules/audio_processing/aecm/aecm_core.cc:24:
jni/src/webrtc/rtc_base/checks.h:57:10: fatal error: 'absl/meta/type_traits.h' file not found
#include "absl/meta/type_traits.h"
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [/usr/local/lib/android/sdk/ndk/21.4.7075529/build/core/build-binary.mk:478: obj/local/armeabi-v7a/objs/webrtc/src/webrtc/modules/audio_processing/aecm/aecm_core.o] Error 1
make[2]: Leaving directory '/home/vsts/work/1/s/webrtc'
make[1]: *** [Makefile:247: webrtc] Error 2
make[1]: Leaving directory '/home/vsts/work/1/s'
make: *** [Makefile:324: install-all] Error 2
##[error]Bash exited with code '2'.
As you can see, this file has the following instruction:
#include "absl/meta/type_traits.h"
I am not a C developer, so I do not know if this include instruction refered to something standard or to a specific file of the project. But the source code does not contain any "adsl" directory.
Should I install something specific on the machine that builds the project? Thank you for your help.
Download abseil library (https://github.com/abseil/abseil-cpp) and put it under third_party folder.

How to compile pmars-0.9.2 on Ubuntu 18.04? error: Makefile:116: recipe for target 'all' failed

I'm trying to compile a pmars-0.9.2 game, but stumbled on an error while passing the test, after command make -j4:
make[2]: *** [extractor/CMakeFiles/extractor.dir/backoff_sampler.cc.o] Error 1
CMakeFiles/Makefile2:2561: recipe for target 'extractor/CMakeFiles/extractor.dir/all' failed
make[1]: *** [extractor/CMakeFiles/extractor.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
Can you tell me which installation drivers are missing to successfully complete the compilation?
To view logs from an unpacked archived use command:
nano /home/user/Desktop/pmars-0.9.2/cdec/BUILDING
To build cdec, you'll need:
boost headers & boost program_options (you may need to install a package
like libboost-dev)
Instructions for building
1) Create a build directory and generate Makefiles using CMake
mkdir my_build
cd my_build
cmake ..
If the cmake command completes successfully, you can proceed. If you have
libraries (such as Boost) installed in nonstandard locations, you may need
to run cmake with special options like -DBOOST_ROOT=/path/to/boost.
2) Build
make -j 2
3) Test
make test
./tests/run-system-tests.pl

Building gnu/opensource (C) projects in macOS Mojave

It's been awhile since I've tried to do this, maybe 3 or 4 years already. It was largely trivial then, download the tarball. Open it up, configure, make, and make install.
I do have Xcode installed, and I have the Xcode command line tools as well. Up to date. But when I run make, it complains about "error.h file not found".
Given how Apple has since locked the operating system down, it's not as simple as symlinking a directory for the includes. Or, if it is, I can't figure out where to begin with that.
The project is unavailable with homebrew, or I'd be lazy and do that.
The output is as follows:
omelo:ccd2cue-0.5 john$ sudo make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in po
Making all in src
CC ccd2cue.o
ccd2cue.c:58:10: fatal error: 'error.h' file not found
#include <error.h>
^~~~~~~~~
1 error generated.
make[2]: *** [ccd2cue.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
What do I need to fix in my environment so that this can build?

Error when trying to load a module into the kernel

I'm trying to load a kernel module into the kernel by running the following command,
`anthony#ubuntu:~/Desktop/kmaldetect/loadable_kernel_module$ make -C /lib/modules/$(uname -r)/build
This is the error that i get:
make: Entering directory /usr/src/linux-headers-3.19.0-25-generic'
arch/x86/Makefile:129: CONFIG_X86_X32 enabled but no binutils support
Makefile:669: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make[1]: *** No rule to make target `arch/x86/syscalls/syscall_32.tbl', needed by `arch/x86/syscalls/../include/generated/asm/syscalls_32.h'. Stop.
make: *** [archheaders] Error 2
make: Leaving directory `/usr/src/linux-headers-3.19.0-25-generic'
Maybe someone could help me out.
All help is appreciated.
The Makefile in kmaldetect/loadable_kernel_module seems correct, doesn't simply running make there work?

mod_tile make has error while building from source

I want to install mod_tile on opensuse. I am following the link to install it; after
#./configure
I run make:
#make
it shows the below error:
make[1]: *** [src/gen_tile.o] Error 1
make[1]: Leaving directory `/opt/mod_tiles_src/mod_tile'
its duplicate of the Other issue
i used the code from
https://github.com/springmeyer/mod_tile
which is working fine..

Resources