Skip to contentSkip to conversation

linux-epia-2.6.19.2

PATCH In review Jörg Bakker 2 participants 4 messages Mar 30, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-epia-2.6.19.2

Building of linux-epia-2.6.19.2 stops with the following error:

| make[2]: Entering directory `/home/jb/devel/cc/jammsession/oe/build/tmp/work/epia-angstrom-linux/linux-epia-2.6.19.2-r1/linux-2.6.19.2'
|   CC      scripts/mod/empty.o
|   HOSTCC  scripts/mod/mk_elfconfig
|   MKELF   scripts/mod/elfconfig.h
|   HOSTCC  scripts/mod/file2alias.o
|   GEN     include/asm-i386/asm-offsets.h
| make[1]: Leaving directory `/home/jb/devel/cc/jammsession/oe/build/tmp/work/epia-angstrom-linux/linux-epia-2.6.19.2-r1/linux-2.6.19.2'
|   HOSTCC  scripts/mod/modpost.o
|   HOSTCC  scripts/mod/sumversion.o
| scripts/mod/sumversion.c: In function 'get_src_version':
| scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared (first use in this function)
| scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported only once
| scripts/mod/sumversion.c:384: error: for each function it appears in.)
| scripts/mod/sumversion.c:384: warning: unused variable 'filelist'
| make[2]: *** [scripts/mod/sumversion.o] Error 1
| make[2]: Leaving directory `/home/jb/devel/cc/jammsession/oe/build/tmp/work/epia-angstrom-linux/linux-epia-2.6.19.2-r1/linux-2.6.19.2'
| make[1]: *** [scripts/mod] Error 2
| make[1]: Leaving directory `/home/jb/devel/cc/jammsession/oe/build/tmp/work/epia-angstrom-linux/linux-epia-2.6.19.2-r1/linux-2.6.19.2'
| make: *** [scripts] Error 2
| FATAL: oe_runmake failed

NOTE: Task failed: /home/jb/devel/cc/jammsession/oe/build/tmp/work/epia-angstrom-linux/linux-epia-2.6.19.2-r1/temp/log.do_compile.3783
NOTE: package linux-epia-2.6.19.2-r1: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package linux-epia-2.6.19.2: failed
ERROR: Build of /home/jb/devel/cc/jammsession/oe/openembedded/recipes/linux/linux-epia_2.6.19.2.bb do_compile failed
ERROR: Task 1181 (/home/jb/devel/cc/jammsession/oe/openembedded/recipes/linux/linux-epia_2.6.19.2.bb, do_compile) failed

OE Build Configuration:
BB_VERSION = "1.8.13"
METADATA_BRANCH = "org.openembedded.dev"
METADATA_REVISION = "8f8efbe43a7f28802d066f7f83915e8fbd0d4cc2"

TARGET_ARCH       = "i586"                                    
TARGET_OS         = "linux"                                   
MACHINE           = "epia"                                    
DISTRO            = "angstrom"                                
DISTRO_VERSION    = "2009.X-test-20090329"                    

The attached patch fixes this.

recipes/linux/linux-epia-2.6.19.2/linux-epia-2619-limits.patch +10 -0
diff -Nur openembedded/recipes/linux/linux-epia-2.6.19.2/linux-epia-2619-limits.patch build/recipes/linux/linux-epia-2.6.19.2/linux-epia-2619-limits.patch
@@ -0,0 +1,10 @@
+--- linux-2.6.19.2/scripts/mod/sumversion.c.orig	2009-03-15 21:44:58.000000000 +0100
++++ linux-2.6.19.2/scripts/mod/sumversion.c	2009-03-15 21:44:58.000000000 +0100
+@@ -8,6 +8,7 @@
+ #include <errno.h>
+ #include <string.h>
+ #include "modpost.h"
++#include <linux/limits.h>
+ 
+ /*
+  * Stolen form Cryptographic API.
recipes/linux/linux-epia_2.6.19.2.bb +2 -1
diff -Nur openembedded/recipes/linux/linux-epia_2.6.19.2.bb build/recipes/linux/linux-epia_2.6.19.2.bb
@@ -6,7 +6,8 @@
 KERNEL_CCSUFFIX = "-3.3.4"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
-           file://epia_defconfig"
+           file://epia_defconfig \
+	   file://linux-epia-2619-limits.patch;patch=1"
 S = "${WORKDIR}/linux-${PV}"
 
 COMPATIBLE_HOST = 'i.86.*-linux'
#1 lore raw
Quoted 1 line · Jörg Bakker

Building of linux-epia-2.6.19.2 stops with the following error:

[snip]

This is actually quite a common error. Can we call the patch something more generic and stick it into files/ ? Thanks.

Signature · 1 line
Tom Rini
#2 lore raw

Am Montag 30 März 2009 22:06:10 schrieb Tom Rini:

Quoted 7 lines · Jörg Bakker
Quoted 1 line

Building of linux-epia-2.6.19.2 stops with the following error:

[snip]

This is actually quite a common error. Can we call the patch something more generic and stick it into files/ ? Thanks.

ok, called the actual patch linux-2.6-limits.patch and moved it to files/

Resulting diff is attached. However, the patch is currently only applyed in linux-epia_2.6.19.2.bb as I don't know which recipes are affected also.

Thanx for your input.

recipes/linux/files/linux-2.6-limits.patch +10 -0
diff -Nur openembedded/recipes/linux/files/linux-2.6-limits.patch build/recipes/linux/files/linux-2.6-limits.patch
@@ -0,0 +1,10 @@
+--- linux/scripts/mod/sumversion.c.orig	2009-03-15 21:44:58.000000000 +0100
++++ linux/scripts/mod/sumversion.c	2009-03-15 21:44:58.000000000 +0100
+@@ -8,6 +8,7 @@
+ #include <errno.h>
+ #include <string.h>
+ #include "modpost.h"
++#include <linux/limits.h>
+ 
+ /*
+  * Stolen form Cryptographic API.
recipes/linux/linux-epia_2.6.19.2.bb +2 -1
diff -Nur openembedded/recipes/linux/linux-epia_2.6.19.2.bb build/recipes/linux/linux-epia_2.6.19.2.bb
@@ -6,7 +6,8 @@
 KERNEL_CCSUFFIX = "-3.3.4"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
-           file://epia_defconfig"
+           file://epia_defconfig \
+	   file://linux-2.6-limits.patch;patch=1"
 S = "${WORKDIR}/linux-${PV}"
 
 COMPATIBLE_HOST = 'i.86.*-linux'
#3 lore raw
Quoted 6 lines · Jörg Bakker

Am Montag 30 März 2009 22:06:10 schrieb Tom Rini:

Quoted 5 lines · Jörg Bakker
Quoted 1 line

Building of linux-epia-2.6.19.2 stops with the following error:

[snip]

Quoted 7 lines
Quoted 2 lines

This is actually quite a common error. Can we call the patch something more generic and stick it into files/ ? Thanks.

ok, called the actual patch linux-2.6-limits.patch and moved it to files/

Resulting diff is attached. However, the patch is currently only applyed in linux-epia_2.6.19.2.bb as I don't know which recipes are affected also.

Pushed (and added to the nokia recipes which I always hit this on).

Signature · 1 line
Tom Rini