Problem building kernel - too many files open
Hello everyone,
I'm building a minimal distribution for a x86 machine (my host is a x86-64 with CentOS 4.4):
OE Build Configuration:BB_VERSION = "1.8.12"METADATA_BRANCH = "org.openembedded.dev"METADATA_REVISION = "a8a23e995d108ecdfc31129941671551c591bc6e"
TARGET_ARCH = "i486" TARGET_OS = "linux" MACHINE = "x86" DISTRO = "minimal" DISTRO_VERSION = ".dev-snapshot-20090310" TARGET_FPU = ""
During kernel building, I got the following error:
OTE: package linux-2.6.28: started
NOTE: package linux-2.6.28-r6: task do_package: started
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/ linux_2.6.28.bb
ERROR: Exception:exceptions.IOError Message:[Errno 24] Too many open files:
'/home/piero/work/qong-nobk/openembedded/build/tmp/work/x86-oe-linux/linux-2.6.28-r6/tmpQbp1Jr'
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/ linux_2.6.28.bb
ERROR: Exception:exceptions.ImportError Message:No module named traceback
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/ linux_2.6.28.bb
ERROR: Exception:exceptions.ImportError Message:No module named traceback
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/ linux_2.6.28.bb
ERROR: Exception:exceptions.ImportError Message:No module named traceback
ERROR: Build of /home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/ linux_2.6.28.bb do_package failed
Traceback (most recent call last):
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/bin/bitbake", line 143,
in ?
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/bin/bitbake", line 140,
in main
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/cooker.py", line
612, in cook
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/cooker.py", line
514, in buildFile
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/runqueue.py",
line 842, in execute_runqueue
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/runqueue.py",
line 951, in execute_runqueue_internal
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/cooker.py", line
137, in tryBuild
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/cooker.py", line
111, in tryBuildPackage
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/build.py", line
278, in exec_task
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/build.py", line
113, in exec_func
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/build.py", line
136, in exec_func_python
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/utils.py", line
186, in better_exec
ImportError: No module named traceback
ERROR: Task 12 (/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/ linux_2.6.28.bb, do_package) failed
Does anyone know what's happening?
Thanks in advance and best regards.
Piero
Quoted 71 lines · Piero Pezzin
Hello everyone,
I'm building a minimal distribution for a x86 machine (my host is a x86-64 with CentOS 4.4):
OE Build Configuration:
BB_VERSION= "1.8.12"METADATA_BRANCH= "org.openembedded.dev"METADATA_REVISION= "a8a23e995d108ecdfc31129941671551c591bc6e"TARGET_ARCH= "i486"TARGET_OS= "linux"
MACHINE = "x86"
DISTRO = "minimal"DISTRO_VERSION= ".dev-snapshot-20090310"TARGET_FPU= ""During kernel building, I got the following error:
OTE: package linux-2.6.28: started
NOTE: package linux-2.6.28-r6: taskdo_package: started
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bb
ERROR: Exception:exceptions.IOError Message:[Errno 24] Too many open files:
'/home/piero/work/qong-nobk/openembedded/build/tmp/work/x86-oe-linux/linux-2.6.28-r6/tmpQbp1Jr'
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bb
ERROR: Exception:exceptions.ImportError Message:No module named traceback
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bb
ERROR: Exception:exceptions.ImportError Message:No module named traceback
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bb
ERROR: Exception:exceptions.ImportError Message:No module named traceback
ERROR: Build of/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bbdo_packagefailed
Traceback (most recent call last):
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/bin/bitbake", line 143,
in ?
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/bin/bitbake", line 140,
in main
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/cooker.py", line
612, in cook
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/cooker.py", line
514, in buildFile
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/runqueue.py",
line 842, inexecute_runqueue
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/runqueue.py",
line 951, inexecute_runqueue_internal
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/cooker.py", line
137, in tryBuild
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/cooker.py", line
111, in tryBuildPackage
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/build.py", line
278, inexec_task
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/build.py", line
113, inexec_func
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/build.py", line
136, inexec_func_python
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/utils.py", line
186, inbetter_exec
ImportError: No module named traceback
ERROR: Task 12 (/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bb,do_package) failed
Quoted 1 line
Does anyone know what's happening?
Someone else also saw this problem. Search the archives. Its most probably your host.
Quoted 9 lines
Thanks in advance and best regards.
Piero
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Hi,
I searched without success. I agree with you, there is a problem on my host, but I'd like to know why it pops out during the do_package task.
Any help will be appreciated.
Regards,
Piero
Quoted 106 lines · Khem Raj
Quoted 3 lines · Piero Pezzin
Hello everyone,
I'm building a minimal distribution for a x86 machine (my host is a
x86-64
Quoted 14 lines
with CentOS 4.4):
OE Build Configuration:
BB_VERSION= "1.8.12"METADATA_BRANCH= "org.openembedded.dev"METADATA_REVISION= "a8a23e995d108ecdfc31129941671551c591bc6e"TARGET_ARCH = "i486" TARGET_OS = "linux" MACHINE = "x86" DISTRO = "minimal" DISTRO_VERSION = ".dev-snapshot-20090310" TARGET_FPU = ""Quoted 8 lines
During kernel building, I got the following error:
OTE: package linux-2.6.28: started
NOTE: package linux-2.6.28-r6: taskdo_package: started
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bb
ERROR: Exception:exceptions.IOError Message:[Errno 24] Too many openfiles:
Quoted 1 line
'
/home/piero/work/qong-nobk/openembedded/build/tmp/work/x86-oe-linux/linux-2.6.28-r6/tmpQbp1Jr'Quoted 9 lines
ERROR: Error in executing:
/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bb
ERROR: Exception:exceptions.ImportError Message:No module named traceback
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bb
ERROR: Exception:exceptions.ImportError Message:No module named traceback
ERROR: Error in executing:Quoted 8 lines
/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bb
ERROR: Exception:exceptions.ImportError Message:No module named traceback
ERROR: Build of/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bbdo_packagefailed
Traceback (most recent call last):
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/bin/bitbake", line143,
Quoted 2 lines
in ?
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/bin/bitbake", line140,
Quoted 2 lines
in main
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/cooker.py",line
Quoted 2 lines
612, in cook
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/cooker.py",line
Quoted 6 lines
514, in buildFile
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/runqueue.py",
line 842, inexecute_runqueue
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/runqueue.py",
line 951, inexecute_runqueue_internal
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/cooker.py",line
Quoted 2 lines
137, in tryBuild
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/cooker.py",line
Quoted 2 lines
111, in tryBuildPackage
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/build.py",line
Quoted 2 lines
278, in
exec_task
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/build.py",line
Quoted 2 lines
113, in
exec_func
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/build.py",line
Quoted 2 lines
136, in
exec_func_python
File "/home/piero/work/bitbake-nobk/bitbake-1.8.12/lib/bb/utils.py",line
Quoted 7 lines
186, in
better_exec
ImportError: No module named traceback
ERROR: Task 12 (/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bb,do_package) failedDoes anyone know what's happening?
Someone else also saw this problem. Search the archives. Its most probably your host.
Quoted 9 lines
Thanks in advance and best regards.
Piero
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Piero Pezzin ha scritto:
Quoted 5 lines
Hi,
I searched without success. I agree with you, there is a problem on my host, but I'd like to know why it pops out during the
do_packagetask.
Quoted 37 lines
Any help will be appreciated.
Regards,
Piero
Quoted 29 lines · Khem Raj
Quoted 3 lines · Piero Pezzin
Hello everyone,
I'm building a minimal distribution for a x86 machine (my host is a
x86-64
Quoted 14 lines
with CentOS 4.4):
OE Build Configuration:
BB_VERSION= "1.8.12"METADATA_BRANCH= "org.openembedded.dev"METADATA_REVISION= "a8a23e995d108ecdfc31129941671551c591bc6e"TARGET_ARCH = "i486" TARGET_OS = "linux" MACHINE = "x86" DISTRO = "minimal" DISTRO_VERSION = ".dev-snapshot-20090310" TARGET_FPU = ""Quoted 8 lines
During kernel building, I got the following error:
OTE: package linux-2.6.28: started
NOTE: package linux-2.6.28-r6: taskdo_package: started
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bb
ERROR: Exception:exceptions.IOError Message:[Errno 24] Too many openfiles:
this is a known error.
Nobody solved it yet.
/marco
Marco Cavallini <[email protected]> [2009-03-12 09:02:08]:
Quoted 1 line
Piero Pezzin ha scritto:
[...]
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
During kernel building, I got the following error:
OTE: package linux-2.6.28: started
NOTE: package linux-2.6.28-r6: taskdo_package: started
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bb
ERROR: Exception:exceptions.IOError Message:[Errno 24] Too many open
Quoted 4 lines
Quoted 1 line
Quoted 1 line
files:
this is a known error.
Nobody solved it yet.
Maybe, that increasing the numbers of max. file handles and number of max. inodes might help you:
/proc/sys/fs/file-max/proc/sys/fs/inode-max
-- ynezz
Hello.
I had the same problem. It's inside classes/kernel.bbclass:298 (reproduced below):
python populate_packages_prepend () {
def extract_modinfo(file):
import tempfile, os, re
tempfile.tempdir = bb.data.getVar("WORKDIR", d, 1)
tmpfile = tempfile.mkstemp()[1]
cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" % (bb.data.getVar("PATH", d, 1), bb.data.getVar("HOST_PREFIX", d, 1) or "", file, tmpfile) os.system(cmd)
f = open(tmpfile)
l = f.read().split("\000")
f.close()
os.unlink(tmpfile)
tempfile.mkstemp() is used to create a temporary file. This function return a tuple with an OS file descriptor and a filename. Filename is stored in "tmpfile" but descriptor is not stored anywhere, but it is still open because it's only an integer to python so it is not closed at the end of the function.
For each iteration in which this function is called, a new OS file descriptor is opened, but not closed. The solution is to store the file descriptor and close it:
python populate_packages_prepend () {
def extract_modinfo(file):
import tempfile, os, re
tempfile.tempdir = bb.data.getVar("WORKDIR", d, 1)
tf = tempfile.mkstemp()
tmpfile = tf[1]
cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" % (bb.data.getVar("PATH", d, 1), bb.data.getVar("HOST_PREFIX", d, 1) or "", file, tmpfile)
os.system(cmd)
f = open(tmpfile)
l = f.read().split("\000")
f.close()
os.close(tf[0])
os.unlink(tmpfile)There's a patch attached. As Iḿ new to git, I don know it it was created in the right way. Used command following:
git format-patch cab70860b89f0fd856c5de1c37c6a3d31fd3cc9d --stdout classes >kernel.bbclass.patch
Jader H. Silva
2MI Tecnologia
Em Qui, 2009-03-12 às 09:51 +0100, Petr Štetiar escreveu:
Quoted 25 lines
Marco Cavallini <[email protected]> [2009-03-12 09:02:08]:
Quoted 1 line
Piero Pezzin ha scritto:
[...]
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
During kernel building, I got the following error:
OTE: package linux-2.6.28: started
NOTE: package linux-2.6.28-r6: taskdo_package: started
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/linux_2.6.28.bb
ERROR: Exception:exceptions.IOError Message:[Errno 24] Too many openQuoted 4 lines
Quoted 1 line
Quoted 1 line
files:
this is a known error.
Nobody solved it yet.Maybe, that increasing the numbers of max. file handles and number of max. inodes might help you:
/proc/sys/fs/file-max/proc/sys/fs/inode-max
Quoted 6 lines
-- ynezz
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
From d74c9667b3cbc6a0631b5cda6e7ed7d1facd2fcb Mon Sep 17 00:00:00 2001
From: Jader H. Silva <vo@northpole.(none)>
Date: Thu, 12 Mar 2009 10:10:12 -0300
Subject: [PATCH] Kernel bbclass "too many open files" bugfix
--- classes/kernel.bbclass | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
classes/kernel.bbclass +3 -1
@@ -295,12 +295,14 @@ python populate_packages_prepend () { def extract_modinfo(file): import tempfile, os, re tempfile.tempdir = bb.data.getVar("WORKDIR", d, 1) - tmpfile = tempfile.mkstemp()[1] + tf = tempfile.mkstemp() + tmpfile = tf[1] cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" % (bb.data.getVar("PATH", d, 1), bb.data.getVar("HOST_PREFIX", d, 1) or "", file, tmpfile) os.system(cmd) f = open(tmpfile) l = f.read().split("\000") f.close() + os.close(tf[0]) os.unlink(tmpfile) exp = re.compile("([^=]+)=(.*)") vals = {}
Signature · 1 line
1.5.6.3
Hello Jader,
it works!
Thank you very much.
Regards,
Piero
Quoted 102 lines · Jader
Hello.
I had the same problem. It's inside classes/kernel.bbclass:298 (reproduced below):python
populate_packages_prepend() {
defextract_modinfo(file):
import tempfile, os, re
tempfile.tempdir =bb.data.getVar("WORKDIR", d, 1)tmpfile = tempfile.mkstemp()[1]
cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" %
(bb.data.getVar("PATH", d, 1),bb.data.getVar("HOST_PREFIX", d, 1)or "", file, tmpfile)os.system(cmd) f = open(tmpfile) l = f.read().split("\000") f.close() os.unlink(tmpfile)
tempfile.mkstemp()is used to create a temporary file. This function return a tuple with an OS file descriptor and a filename. Filename is stored in "tmpfile" but descriptor is not stored anywhere, but it is still open because it's only an integer to python so it is not closed at the end of the function.For each iteration in which this function is called, a new OS file descriptor is opened, but not closed. The solution is to store the file descriptor and close it:
python
populate_packages_prepend() {
defextract_modinfo(file):
import tempfile, os, re
tempfile.tempdir =bb.data.getVar("WORKDIR", d, 1)tf =tempfile.mkstemp()
tmpfile = tf[1]
cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" %
(bb.data.getVar("PATH", d, 1),bb.data.getVar("HOST_PREFIX", d, 1)or "", file, tmpfile)os.system(cmd) f = open(tmpfile) l = f.read().split("\000") f.close() os.close(tf[0]) os.unlink(tmpfile)There's a patch attached. As Iḿ new to git, I don know it it was created in the right way. Used command following:
git format-patch
cab70860b89f0fd856c5de1c37c6a3d31fd3cc9d--stdout classesQuoted 1 line
kernel.bbclass.patch
Jader H. Silva
2MI TecnologiaEm Qui, 2009-03-12 às 09:51 +0100, Petr Štetiar escreveu:
Quoted 12 lines
Marco Cavallini <[email protected]> [2009-03-12 09:02:08]:
Quoted 1 line
Piero Pezzin ha scritto:
[...]
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
During kernel building, I got the following error:
OTE: package linux-2.6.28: started
NOTE: package linux-2.6.28-r6: taskdo_package: started
ERROR: Error in executing:
/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
linux_2.6.28.bb
ERROR: Exception:exceptions.IOError Message:[Errno 24] Too manyopen
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
files:
this is a known error.
Nobody solved it yet.Maybe, that increasing the numbers of max. file handles and number of
max.
Quoted 11 lines
inodes might help you:
/proc/sys/fs/file-max/proc/sys/fs/inode-max-- ynezz
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Dnia czwartek, 12 marca 2009 o 14:14:34 Jader napisał(a):
Quoted 2 lines
There's a patch attached. As Iḿ new to git, I don know it it was created in the right way. Used command following:
Thanks a lot for patch. I checked it locally and pushed into repository.
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
A
Quoted 6 lines · Marcin Juszkiewicz
Dnia czwartek, 12 marca 2009 o 14:14:34 Jader napisał(a):
Quoted 2 lines
There's a patch attached. As Iḿ new to git, I don know it it was created in the right way. Used command following:
Thanks a lot for patch. I checked it locally and pushed into repository.
Thanks for the patch indeed, I kept getting bitten by this one last week.
Signature · 7 lines
Chris Larson clarson at kergoth dot com clarson at mvista dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Software Engineer MontaVista Software, Inc.
Quoted 25 lines · On Thursday 12 March 2009 06:14:34 Jader wrote:
Hello.
I had the same problem. It's inside classes/kernel.bbclass:298 (reproduced below):python
populate_packages_prepend() {
defextract_modinfo(file):
import tempfile, os, re
tempfile.tempdir =bb.data.getVar("WORKDIR", d, 1)tmpfile = tempfile.mkstemp()[1]
cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" %
(bb.data.getVar("PATH", d, 1),bb.data.getVar("HOST_PREFIX", d, 1)or "", file, tmpfile)os.system(cmd)f = open(tmpfile) l = f.read().split("\000") f.close() os.unlink(tmpfile)
tempfile.mkstemp()is used to create a temporary file. This function return a tuple with an OS file descriptor and a filename. Filename is stored in "tmpfile" but descriptor is not stored anywhere, but it is still open because it's only an integer to python so it is not closed at the end of the function.
Quoted 3 lines
For each iteration in which this function is called, a new OS file descriptor is opened, but not closed. The solution is to store the file descriptor and close it:
How about using TemporaryFile () to create the file instead of mkstemp ? we do not have to worry about cleaning it up once it is closed.
Quoted 62 lines
python
populate_packages_prepend() {
defextract_modinfo(file):
import tempfile, os, re
tempfile.tempdir =bb.data.getVar("WORKDIR", d, 1)tf =tempfile.mkstemp()
tmpfile = tf[1]
cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" %
(bb.data.getVar("PATH", d, 1),bb.data.getVar("HOST_PREFIX", d, 1)or "", file, tmpfile)os.system(cmd)f = open(tmpfile) l = f.read().split("\000") f.close() os.close(tf[0]) os.unlink(tmpfile)There's a patch attached. As Iḿ new to git, I don know it it was created in the right way. Used command following:
git format-patch
cab70860b89f0fd856c5de1c37c6a3d31fd3cc9d--stdout classesQuoted 1 line
kernel.bbclass.patch
Jader H. Silva
2MI TecnologiaEm Qui, 2009-03-12 às 09:51 +0100, Petr Štetiar escreveu:
Quoted 32 lines
Marco Cavallini <[email protected]> [2009-03-12 09:02:08]:
Quoted 1 line
Piero Pezzin ha scritto:
[...]
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
During kernel building, I got the following error:
OTE: package linux-2.6.28: started
NOTE: package linux-2.6.28-r6: taskdo_package: started
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/ linux_2.6.28.bb
ERROR: Exception:exceptions.IOError Message:[Errno 24] Too many openQuoted 4 lines
Quoted 1 line
Quoted 1 line
files:
this is a known error.
Nobody solved it yet.Maybe, that increasing the numbers of max. file handles and number of max. inodes might help you:
/proc/sys/fs/file-max/proc/sys/fs/inode-max-- ynezz
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Khem Raj
Em Qui, 2009-03-12 às 12:57 -0700, Khem Raj escreveu:
Quoted 26 lines · On Thursday 12 March 2009 06:14:34 Jader wrote:
Quoted 25 lines
Hello.
I had the same problem. It's inside classes/kernel.bbclass:298 (reproduced below):python
populate_packages_prepend() {
defextract_modinfo(file):
import tempfile, os, re
tempfile.tempdir =bb.data.getVar("WORKDIR", d, 1)tmpfile = tempfile.mkstemp()[1]
cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" %
(bb.data.getVar("PATH", d, 1),bb.data.getVar("HOST_PREFIX", d, 1)or "", file, tmpfile)os.system(cmd)f = open(tmpfile) l = f.read().split("\000") f.close() os.unlink(tmpfile)
tempfile.mkstemp()is used to create a temporary file. This function return a tuple with an OS file descriptor and a filename. Filename is stored in "tmpfile" but descriptor is not stored anywhere, but it is still open because it's only an integer to python so it is not closed at the end of the function.
Quoted 6 lines
Quoted 3 lines
For each iteration in which this function is called, a new OS file descriptor is opened, but not closed. The solution is to store the file descriptor and close it:
How about using TemporaryFile () to create the file instead of mkstemp ? we do not have to worry about cleaning it up once it is closed.
It would be a better solution, but unix implementation of TemporaryFile() unlink the temporary file after it is created, so it's removed from filesystem when closed, and so we won't have a valid filename for objdump outfile.
Quoted 56 lines
Quoted 56 lines
python
populate_packages_prepend() {
defextract_modinfo(file):
import tempfile, os, re
tempfile.tempdir =bb.data.getVar("WORKDIR", d, 1)tf =tempfile.mkstemp()
tmpfile = tf[1]
cmd = "PATH=\"%s\" %sobjcopy -j .modinfo -O binary %s %s" %
(bb.data.getVar("PATH", d, 1),bb.data.getVar("HOST_PREFIX", d, 1)or "", file, tmpfile)os.system(cmd)f = open(tmpfile) l = f.read().split("\000") f.close() os.close(tf[0]) os.unlink(tmpfile)There's a patch attached. As Iḿ new to git, I don know it it was created in the right way. Used command following:
git format-patch
cab70860b89f0fd856c5de1c37c6a3d31fd3cc9d--stdout classesQuoted 1 line
kernel.bbclass.patch
Jader H. Silva
2MI TecnologiaEm Qui, 2009-03-12 às 09:51 +0100, Petr Štetiar escreveu:
Quoted 26 lines
Marco Cavallini <[email protected]> [2009-03-12 09:02:08]:
Quoted 1 line
Piero Pezzin ha scritto:
[...]
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
During kernel building, I got the following error:
OTE: package linux-2.6.28: started
NOTE: package linux-2.6.28-r6: taskdo_package: started
ERROR: Error in executing:/home/piero/work/qong-nobk/openembedded/openembedded/packages/linux/ linux_2.6.28.bb
ERROR: Exception:exceptions.IOError Message:[Errno 24] Too many openQuoted 4 lines
Quoted 1 line
Quoted 1 line
files:
this is a known error.
Nobody solved it yet.Maybe, that increasing the numbers of max. file handles and number of max. inodes might help you:
/proc/sys/fs/file-max/proc/sys/fs/inode-max
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
-- ynezz
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Att.
Jader H. Silva
[email protected]
Depto. de desenvolvimento
2MI Tecnologia