kernel ungültiger dateideskriptor

Welches Modul/Treiber für welche Hardware, Kernel compilieren...
Antworten
cwe
Beiträge: 1
Registriert: 16.04.2012 09:59:06

kernel ungültiger dateideskriptor

Beitrag von cwe » 16.04.2012 10:13:55

Hallo miteinander - habe folgendes Problem beim make-kpkg

cmd>: make-kpkg --initrd kernel_image kernel_headers modules_image

Fehler:
include/linux/compiler-gcc.h:86:30: error: include/linux/linux/compiler-gcc4.h: zu viele Ebenen aus symbolischen links
make [3]: *** [kernel/bounds.s] Fehler 1
make [2]: *** [prepare0] Fehler 2
make [2]: Leaving directory /usr/src/linux-2.6.32-6
make [1]: *** [debian/stamp/conf/kernel-conf] Fehler 2
make [1]: Leaving directory /usr/src/linux-2.6.32-6
Failed to create a ./debian directory: Ungültiger Dateideskriptor at /usr/bin/make-kpkg line 984.

Habe folgendes geprüft:
alle links von /usr/include (asm, asm-generic, linux, scsi),
Berechtigungen auf dem Verzeichnis

Vielleicht weiss jemand Rat.

Gruß
CWe

rendegast
Beiträge: 15041
Registriert: 27.02.2006 16:50:33
Lizenz eigener Beiträge: MIT Lizenz

Re: kernel ungültiger dateideskriptor

Beitrag von rendegast » 23.04.2012 18:21:37

include/linux/compiler-gcc.h:86:30: error: include/linux/linux/compiler-gcc4.h: zu viele Ebenen aus symbolischen links

Code: Alles auswählen

$ locate gcc4.h | egrep -o include.*
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
include/linux/compiler-gcc4.h
Jetzt greppe ich ein wenig

Code: Alles auswählen

# for i in $(locate compiler-gcc.h); do grep include $i; done
#error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
#include gcc_header(__GNUC__)
/* Never include this file directly.  Include <linux/compiler.h> instead.  */
/* Never include this file directly.  Include <linux/compiler.h> instead.  */
/* Never include this file directly.  Include <linux/compiler.h> instead.  */
/* Never include this file directly.  Include <linux/compiler.h> instead.  */
/* Never include this file directly.  Include <linux/compiler.h> instead.  */
/* Never include this file directly.  Include <linux/compiler.h> instead.  */
#error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
#include gcc_header(__GNUC__)
#error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
#include gcc_header(__GNUC__)
#error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
#include gcc_header(__GNUC__)
#error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
#include gcc_header(__GNUC__)
#error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
#include gcc_header(__GNUC__)

# for i in $(locate compiler-gcc4.h); do grep include $i; done
#error "Please don't include <linux/compiler-gcc4.h> directly, include <linux/compiler.h> instead."
#error "Please don't include <linux/compiler-gcc4.h> directly, include <linux/compiler.h> instead."
#error "Please don't include <linux/compiler-gcc4.h> directly, include <linux/compiler.h> instead."
#error "Please don't include <linux/compiler-gcc4.h> directly, include <linux/compiler.h> instead."
#error "Please don't include <linux/compiler-gcc4.h> directly, include <linux/compiler.h> instead."
#error "Please don't include <linux/compiler-gcc4.h> directly, include <linux/compiler.h> instead."
Vielleicht irgendwo ein 'include <linux/linux/compiler.h>' ?
Gepatchte Sourcen?
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")

Antworten