similar to: Get error msg if try to use kernel makefile / build kernel

Displaying 20 results from an estimated 700 matches similar to: "Get error msg if try to use kernel makefile / build kernel"

2004 Nov 27
0
Problems compiling zaprtc on 2.4.27 kernel
Has anyone successfully compiled zaprtc on Debian Sarge using the 2.4.27 kernel. I have a symbolic link from linux-2.4 to linux. I compiled a new kernel from source and have been able to compile zaptel as well. The main error seems to be: /usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory These are the errors that I am getting: cc -c zaprtc.c -D__KERNEL__ -DMODULE
2007 May 18
0
mach_mpspec.h, mach_apicdef.h & xenbus_mkdir
Hello list, I''m trying to build a linux kernel module that uses xenstore to report on the modules loaded into a DomU''s kernel. When building against the current unstable (changeset 15080:089696e0c603) I''m getting build errors about not being able to find mach_mpspec.h and mach_apicdef.h make -C /root/xen-unstable.hg/linux-2.6.18-xen O=/root/xen-
2011 Mar 09
0
[PATCH 04/11] x86: cleanup mpparse.c
Remove unused and pointless bits from mpparse.c (and other files where they are related to it). Of what remains, move whatever possible into .init.*, and some data items into .data.read_mostly. Signed-off-by: Jan Beulich <jbeulich@novell.com> --- 2011-03-09.orig/xen/arch/x86/acpi/boot.c +++ 2011-03-09/xen/arch/x86/acpi/boot.c @@ -177,7 +177,8 @@ acpi_parse_x2apic(struct acpi_subtable_h
2007 Jun 15
2
Unable to Compile a LAN Card Driver on Centos4.4
Hi Friends, I recently purchased a LAN Card and the LAN Card CD contains drivers for Linux. But when I am trying to compile the driver on Centos4.4 I am getting below errors. [root at ankush1 sc92031]# make ***************************** sc92031.o built for 2.6.9-42.EL SMP Disabled ***************************** In file included from
2004 Jul 19
0
Cant compile Zaptel at all
I have been trying to compile Zaptel 1.0-RC1 that I just downloaded via tarball on my debian 3.0 system running a 2.4.26 kernel. I have all the headers, libraries and sources installed for the kernel along with the latest versions of GCC. I dont know what else to do to trouble shoot this so I have included the entire output below. Thanks a lot! -James Freire linux1:/usr/src/zaptel-1.0-RC1#
2006 Nov 30
0
Does kernel-devel need further configuration after yum install, for driver build ?
In order to build a kernel module outside of a kernel source tree, I understand it is necessary to set up a makefile containing lines such as ... obj-m:=driver.o ... and quote the KERNELDIR directory to the make system (e.g. see O'Reilly book on Linux device drivers) However, doing this with Centos either 'as-is', or even after doing a yum remove kernel-devel-<version> then
2006 Feb 16
0
[PATCH] fix mp_current_pci_id duplicate declaration
Last mpparse cleanup leaves compile error: mpparse.c:56: error: static declaration of ‘mp_current_pci_id’ follows non-static declaration /home/chrisw/hg/xen/xen-unstable/xen/include/asm/mpspec.h:26: error: previous declaration of ‘mp_current_pci_id’ was here Signed-off-by: Chris Wright <chrisw@sous-sol.org> --- diff -r 2b0078f771cc xen/include/asm-x86/mpspec.h ---
2012 Apr 12
2
[LLVMdev] HELP: Clang options needed in command to compile device driver into linux module.
On Thu, Apr 12, 2012 at 03:48:29PM +0800, 15102925731 wrote: > BTW, the Makefile is as folllow, > > CC := gcc > obj-m := hellomodule.o > KERNELDIR := /lib/modules/`uname -r`/build > PWD := $(shell pwd) > modules: > $(MAKE) -C $(KERNELDIR) M=$(PWD) modules ^^^^^^^^^^^^^^ Check the Makefile under KERNELDIR directory. Regards, chenwj -- Wei-Ren Chen
2012 Apr 12
2
[LLVMdev] HELP: Clang options needed in command to compile device driver into linux module.
Wow that's to much output information. Maybe I can put it in this way. Could you tell me the clang option that can include the linux kernel headers??? Something like "clang -O3 -isystem /lib/modules/`uname -r`/build/include -emit-llvm hellomodule.c -c -o hellomodule.bc" Thank you! -- 祝好! 甄凯
2010 Jan 08
4
Can't Compile Driver due to Missing version.h
Dear All, I use a raid card on my Centos 5.4 server. Whenever I updated the kernel, I used to compile drivers of the card for the new kernel. I have done this many times in the past without any problem. But this time after installing the new kernel files given below, I can not compile the new driver anymore. kernel-headers-2.6.18-164.9.1.el5 kernel-PAE-devel-2.6.18-164.9.1.el5
2012 Apr 12
0
[LLVMdev] HELP: Clang options needed in command to compile device driver into linux module.
BTW, the Makefile is as folllow, CC := gcc obj-m := hellomodule.o KERNELDIR := /lib/modules/`uname -r`/build PWD := $(shell pwd) modules: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules Can I use an option of clang to specify the KERNELDIR ,etc? Thank you! -- 祝好! 甄凯 ------------------------------------------------------------------------------------------------------ 2012-04-12
2012 Apr 12
0
[LLVMdev] HELP: Clang options needed in command to compile device driver into linux module.
Sorry, but I didn't find a Makefile under KERNELDIR. Why is it necessary to check that makefile anyway??? As to the Makefile that I posted before, if I can changed that file to build the .c into .bc rather then .o, that would also solve my problem! Thank you! -- 祝好! 甄凯 ------------------------------------------------------------------------------------------------------
2012 Apr 18
1
[LLVMdev] How to compile this linux-driver like programme into .bc file?
I may try to use the Makefile then. When using gcc the Makefile is CC := colorgcc obj-m := hello.o KERNELDIR := /lib/modules/2.6.36.1/build PWD := $(shell pwd) modules: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules #modules install: # $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install How to change it so the generating result is .bc file not the .o file? PLEASE BE KIND AND HELP ME~~ --
2010 Mar 02
17
[PATCH 00/16] External building, update for 2.6.33 and multiple root devices.
The following patchset implements 3 seperate series of changes. External Building ================= Patches 1 through 8 enable to use of klibc's build system while leaving the src tree pristine (and potentially read only). Specifically: - srctree=<Sources for klibc> - objtree=<Ouput directory for klibc> - KLIBCKERNELSRC=<Kernel sources> - KLIBCKERNELOBJ=<Kernel
2012 Apr 18
0
[LLVMdev] How to compile this linux-driver like programme into .bc file?
Dear Chen, I tried the command you told me. It turns out that clang use -I option rather then -isystem. But after I included the init.h file, it fired at me that "asm/processor.h" is not fount. Then I included that file using -I option and some other files were said not found! It's like I opened a can of worms... I can still continue to include the file that is said not found. But
2011 Aug 12
4
klibc current state
Hello, While some people might scuba dive, let's summarize recent progress and state (People cc'ed have either patches in queue or are involved): * Patches pending review, allmost ready for klibc ------------------------------------------------- - mikew/drop_cap - kinit: Add drop_capabilities support adds the ability to kinit to allow the dropping of POSIX capabilities. (patch even
2012 Apr 16
3
[LLVMdev] How to compile this linux-driver like programme into .bc file?
Thanks for your help and patience! Best regards, Zhen Kai At 2012-04-16 15:35:25,"陳韋任" <chenwj at iis.sinica.edu.tw> wrote: >> The thing is that I know the Makefile to complete that task. But what I want to know the clang command that can do that. Since the makefile will generate a .ko file while I can use the clang command "-O3-emit-llvm" to generate a
2011 Aug 02
6
[PATCH v2 0/4] Support drop directories directly from kinit
This patchset applies to klibc mainline. This patchset introduces the ability to kinit to execute scripts or executable files present in in the initramfs before switching over to the root filesystem. It is implemented by first implementing scandir() and alphasort() as present in POSIX.1-2008 in klibc itself, and then using that as the basis for iterating and executing files via a run_scripts()
2006 Dec 07
1
Cannot install driver under CentOS/ VMware ?
Trying the most basic 'vanilla hello world' kernel driver, install using insmod, and trying in module_init to do a simple kmalloc() fails, kmalloc returns NULL - i.e. cannot allocate memory. The driver loads fine under another non-VM system. Is this a CentOS/VMware quirk ? Does anyone know of a workaround or is it just a fact of life that you cannot use insmod once the system is running
2012 Jan 04
4
[RFC PATCH v1 0/2] virtio_net: Better low memory handling.
The following series applies to net-next. The following series changes the low memory paths in virtio_net to allow the driver to contribute to reclaim when memory is tight. It attempts to rectify some performance problems we've seen where the network performance drops significantly when memory is low. The working theory is that while the driver contributes to memory pressure when throughput