sanity test problems at end of build
Hello,
Sorry if it is a repost, but I have got not answer and have not seen my mail in the mailing-list archives, so I send it again
I have seen various people that have experienced the same problem during the last months, but I have never read a clear answer or fix to what is wrong with this issue.
OE builds just fine all the needed packages for my system, but in the I get a failed sanity check for various libraries. Here is the log for a console-image for instance:
Quoted 44 lines
NOTE: Running task 1589 of 1960 (ID: 217,
/usr/local/OE/openembedded/packages/angstrom/angstrom-version.bb,do_populate_staging) NOTE: package angstrom-version-2008.1-test-20081120:
started
NOTE: package angstrom-version-1_2008.1-test-20081120-r1: taskdo_populate_staging: started NOTE: package angstrom-version-1_2008.1-test-20081120-r1: taskdo_populate_staging:
completed NOTE: package angstrom-version-2008.1-test-20081120: completed
NOTE: Running task 1861 of 1960 (ID: 216,/usr/local/OE/openembedded/packages/angstrom/angstrom-version.bb,do_package_write) NOTE: package angstrom-version-2008.1-test-20081120:
started
NOTE: package angstrom-version-1_2008.1-test-20081120-r1: taskdo_package_write: started NOTE: package angstrom-version-1_2008.1-test-20081120-r1: taskdo_package_write:
completed NOTE: package angstrom-version-2008.1-test-20081120: completed
NOTE: Running task 1862 of 1960 (ID: 215,/usr/local/OE/openembedded/packages/angstrom/angstrom-version.bb,do_package_stage) NOTE: package angstrom-version-2008.1-test-20081120:
started
NOTE: package angstrom-version-1_2008.1-test-20081120-r1: taskdo_package_stage: started NOTE: package angstrom-version-1_2008.1-test-20081120-r1: taskdo_package_stage:
completed NOTE: package angstrom-version-2008.1-test-20081120: completed
NOTE: Running task 1892 of 1960 (ID: 5,/usr/local/OE/openembedded/packages/images/console-image.bb,do_qa_staging)
NOTE: package console-image-1.0: started
NOTE: package console-image-1.0-r0: taskdo_qa_staging: started
NOTE: QA checking staging
ERROR: QA Issue: libpanel.la failed sanity test (workdir) in path/usr/local/OE/angstrom//staging/armv6-angstrom-linux-gnueabi/usr/libERROR:
QA Issue: libncurses.la failed sanity test (workdir) in path/usr/local/OE/angstrom//staging/armv6-angstrom-linux-gnueabi/usr/libERROR:
QA Issue: libmenu.la failed sanity test (workdir) in path/usr/local/OE/angstrom//staging/armv6-angstrom-linux-gnueabi/usr/libERROR:
QA Issue: libform.la failed sanity test (workdir) in path/usr/local/OE/angstrom//staging/armv6-angstrom-linux-gnueabi/usr/libERROR:
QA staging was broken by the package built above
ERROR: Error in executing:
ERROR: Exception:<type 'exceptions.SystemExit'> Message:1
ERROR: Printing the environment of the function
ERROR: Build of/usr/local/OE/openembedded/packages/images/console-image.bbdo_qa_stagingfailed ERROR: Task 5 (/usr/local/OE/openembedded/packages/images/console-image.bb,
Quoted 8 lines
do_qa_staging) failed NOTE: Waiting for 1 active tasks to finish
NOTE: 1:/usr/local/OE/openembedded/packages/gnutls/gnutls_2.4.2.bb,do_configure(13056) NOTE: package gnutls-2.4.2-r3: taskdo_configure:
completed
NOTE: package gnutls-2.4.2: completed
NOTE: Tasks Summary: Attempted 1890 tasks of which 1873 didn't need to be rerun and 1 failed. ERROR:
'/usr/local/OE/openembedded/packages/images/console-image.bb' failed
I had read that this could have something to do with the fact that -tmp was in the name of the tmp build dir. However it is not the case for me and the problem is still here. Here is my local.conf file:
Quoted 26 lines
# Where to store sources
DL_DIR= "/usr/local/OE/downloads"# Which files do we want to parse:
BBFILES := "/usr/local/OE/openembedded/packages/*/*.bb" BBMASK = ""# qemu has a few problems with our architecture #ENABLE_BINARY_LOCALE_GENERATION = "0" # We only need a few locales # does not work with ENABLE_BINARY_LOCALE_GENERATION = "0" GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 fr_CH.UTF-8"# ccache always overfill $HOME.... CCACHE=""# What kind of images do we want?
IMAGE_FSTYPES= "jffs2 tar.gz"# Set TMPDIR instead of defaulting it to $pwd/tmp
TMPDIR = "/usr/local/OE/${DISTRO}/"# Make use of my SMP box
PARALLEL_MAKE="-j4"BB_NUMBER_THREADS= "2"
Quoted 7 lines
# Set the Distro
DISTRO = "angstrom-2008.1"# 'uclibc' or 'glibc' or 'eglibc'
#ANGSTROM_MODE = "glibc"MACHINE = "mx31moboard"
Thank you for your help, that would be really nice to fix this, because I am not able to build rootfs images at this point because of this problem.
Regards
Valentin
Quoted 4 lines · Valentin Longchamp
Hello,
Sorry if it is a repost, but I have got not answer and have not seen my mail in the mailing-list archives, so I send it again
I know the problem exists for some people, but I have never been able to reproduce it. People having this problem should debug why ncurses suddenly decides to mess up its .la files. Or better, look at the .la files to see what's triggering insane.bbclass
regards,
Koen
Quoted 105 lines
I have seen various people that have experienced the same problem during the last months, but I have never read a clear answer or fix to what is wrong with this issue.
OE builds just fine all the needed packages for my system, but in the I get a failed sanity check for various libraries. Here is the log for a console-image for instance:
Quoted 44 lines
NOTE: Running task 1589 of 1960 (ID: 217,
/usr/local/OE/openembedded/packages/angstrom/angstrom-version.bb,do_populate_staging) NOTE: package angstrom-version-2008.1-test-20081120:
started
NOTE: package angstrom-version-1_2008.1-test-20081120-r1: taskdo_populate_staging: started NOTE: package angstrom-version-1_2008.1-test-20081120-r1: taskdo_populate_staging:
completed NOTE: package angstrom-version-2008.1-test-20081120: completed
NOTE: Running task 1861 of 1960 (ID: 216,/usr/local/OE/openembedded/packages/angstrom/angstrom-version.bb,do_package_write) NOTE: package angstrom-version-2008.1-test-20081120:
started
NOTE: package angstrom-version-1_2008.1-test-20081120-r1: taskdo_package_write: started NOTE: package angstrom-version-1_2008.1-test-20081120-r1: taskdo_package_write:
completed NOTE: package angstrom-version-2008.1-test-20081120: completed
NOTE: Running task 1862 of 1960 (ID: 215,/usr/local/OE/openembedded/packages/angstrom/angstrom-version.bb,do_package_stage) NOTE: package angstrom-version-2008.1-test-20081120:
started
NOTE: package angstrom-version-1_2008.1-test-20081120-r1: taskdo_package_stage: started NOTE: package angstrom-version-1_2008.1-test-20081120-r1: taskdo_package_stage:
completed NOTE: package angstrom-version-2008.1-test-20081120: completed
NOTE: Running task 1892 of 1960 (ID: 5,/usr/local/OE/openembedded/packages/images/console-image.bb,do_qa_staging)
NOTE: package console-image-1.0: started
NOTE: package console-image-1.0-r0: taskdo_qa_staging: started
NOTE: QA checking staging
ERROR: QA Issue: libpanel.la failed sanity test (workdir) in path/usr/local/OE/angstrom//staging/armv6-angstrom-linux-gnueabi/usr/libERROR:
QA Issue: libncurses.la failed sanity test (workdir) in path/usr/local/OE/angstrom//staging/armv6-angstrom-linux-gnueabi/usr/libERROR:
QA Issue: libmenu.la failed sanity test (workdir) in path/usr/local/OE/angstrom//staging/armv6-angstrom-linux-gnueabi/usr/libERROR:
QA Issue: libform.la failed sanity test (workdir) in path/usr/local/OE/angstrom//staging/armv6-angstrom-linux-gnueabi/usr/libERROR:
QA staging was broken by the package built above
ERROR: Error in executing:
ERROR: Exception:<type 'exceptions.SystemExit'> Message:1
ERROR: Printing the environment of the function
ERROR: Build of/usr/local/OE/openembedded/packages/images/console-image.bbdo_qa_stagingfailed ERROR: Task 5 (/usr/local/OE/openembedded/packages/images/console-image.bb,Quoted 8 lines
do_qa_staging) failed NOTE: Waiting for 1 active tasks to finish
NOTE: 1:/usr/local/OE/openembedded/packages/gnutls/gnutls_2.4.2.bb,do_configure(13056) NOTE: package gnutls-2.4.2-r3: taskdo_configure:
completed
NOTE: package gnutls-2.4.2: completed
NOTE: Tasks Summary: Attempted 1890 tasks of which 1873 didn't need to be rerun and 1 failed. ERROR:
'/usr/local/OE/openembedded/packages/images/console-image.bb' failedI had read that this could have something to do with the fact that -tmp was in the name of the tmp build dir. However it is not the case for me and the problem is still here. Here is my local.conf file:
Quoted 26 lines
# Where to store sources
DL_DIR= "/usr/local/OE/downloads"# Which files do we want to parse:
BBFILES := "/usr/local/OE/openembedded/packages/*/*.bb" BBMASK = ""# qemu has a few problems with our architecture #ENABLE_BINARY_LOCALE_GENERATION = "0" # We only need a few locales # does not work with ENABLE_BINARY_LOCALE_GENERATION = "0" GLIBC_GENERATE_LOCALES = "en_GB.UTF-8 fr_CH.UTF-8"# ccache always overfill $HOME.... CCACHE=""# What kind of images do we want?
IMAGE_FSTYPES= "jffs2 tar.gz"# Set TMPDIR instead of defaulting it to $pwd/tmp
TMPDIR = "/usr/local/OE/${DISTRO}/"# Make use of my SMP box
PARALLEL_MAKE="-j4"BB_NUMBER_THREADS= "2"Quoted 7 lines
# Set the Distro
DISTRO = "angstrom-2008.1"# 'uclibc' or 'glibc' or 'eglibc'
#ANGSTROM_MODE = "glibc"MACHINE = "mx31moboard"
Thank you for your help, that would be really nice to fix this, because I am not able to build rootfs images at this point because of this problem.
Regards
Valentin
Quoted 13 lines · Koen Kooi
Quoted 4 lines · Valentin Longchamp
Hello,
Sorry if it is a repost, but I have got not answer and have not seen my mail in the mailing-list archives, so I send it again
I know the problem exists for some people, but I have never been able to reproduce it. People having this problem should debug why ncurses suddenly decides to mess up its .la files. Or better, look at the .la files to see what's triggering insane.bbclass
Quoted 2 lines
I had read that this could have something to do with the fact that -tmp was in the name of the tmp build dir. However it is not the case
I guess it may be the case. Somebody mentioned a theory, that it is caused by TMPDIR set in the local.conf. Your local.conf sets TMPDIR.
Could you comment TMPDIR out and then rebuild your image from scratch?
Signature · 2 lines
Stanislav Brabec http://www.penguin.cz/~utx/zaurus
Quoted 11 lines · Stanislav Brabec
Quoted 9 lines · Koen Kooi
Quoted 4 lines · Valentin Longchamp
Hello,
Sorry if it is a repost, but I have got not answer and have not seen my mail in the mailing-list archives, so I send it again
I know the problem exists for some people, but I have never been able to reproduce it. People having this problem should debug why ncurses suddenly decides to mess up its .la files. Or better, look at the .la files to see what's triggering insane.bbclass
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
I had read that this could have something to do with the fact that -tmp was in the name of the tmp build dir. However it is not the case
I guess it may be the case. Somebody mentioned a theory, that it is caused by TMPDIR set in the local.conf. Your local.conf sets TMPDIR.
Could you comment TMPDIR out and then rebuild your image from scratch?
That theory has already been debunked. Not setting TMPDIR opens up a whole other can of worms.
regards,
Koen
Quoted 16 lines · On Thursday 27 November 2008 12:44:24 Koen Kooi wrote:
Quoted 15 lines · Stanislav Brabec
Quoted 13 lines · Koen Kooi
Quoted 4 lines · Valentin Longchamp
Hello,
Sorry if it is a repost, but I have got not answer and have not seen my mail in the mailing-list archives, so I send it again
I know the problem exists for some people, but I have never been able to reproduce it. People having this problem should debug why ncurses suddenly decides to mess up its .la files. Or better, look at the .la files to see what's triggering insane.bbclass
Quoted 2 lines
I had read that this could have something to do with the fact that -tmp was in the name of the tmp build dir. However it is not the case
Quoted 8 lines
Quoted 4 lines
I guess it may be the case. Somebody mentioned a theory, that it is caused by TMPDIR set in the local.conf. Your local.conf sets TMPDIR.
Could you comment TMPDIR out and then rebuild your image from scratch?
That theory has already been debunked. Not setting TMPDIR opens up a whole other can of worms.
Well, maybe it has been debunked, but it did the trick for me ... but I really don't understand why.
Could it be possible that it is a dash/bash issue ? (both the systems I work on are ubuntu-based and use dash).
Regards
Valentin
Quoted 23 lines · Valentin Longchamp
Quoted 12 lines · On Thursday 27 November 2008 12:44:24 Koen Kooi wrote:
Quoted 11 lines · Stanislav Brabec
Quoted 10 lines · Koen Kooi
Quoted 4 lines · Valentin Longchamp
Hello,
Sorry if it is a repost, but I have got not answer and have not seen my mail in the mailing-list archives, so I send it again
I know the problem exists for some people, but I have never been able to reproduce it. People having this problem should debug why ncurses suddenly decides to mess up its .la files. Or better, look at the .la files to see what's triggering insane.bbclass
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
I had read that this could have something to do with the fact that -tmp was in the name of the tmp build dir. However it is not the case
I guess it may be the case. Somebody mentioned a theory, that it is caused by TMPDIR set in the local.conf. Your local.conf sets TMPDIR.
Could you comment TMPDIR out and then rebuild your image from scratch?
That theory has already been debunked. Not setting TMPDIR opens up a whole other can of worms.
Quoted 5 lines
Well, maybe it has been debunked, but it did the trick for me ... but I really don't understand why.
Could it be possible that it is a dash/bash issue ? (both the systems I work on are ubuntu-based and use dash).
Don't use dash as shell, too many things have bashisms, like libtool.
regards,
Koen
Quoted 7 lines · Valentin Longchamp
Quoted 4 lines
Quoted 1 line
Could you comment TMPDIR out and then rebuild your image from scratch?
That theory has already been debunked. Not setting TMPDIR opens up a whole other can of worms.
Well, maybe it has been debunked, but it did the trick for me ... but I really don't understand why.
Do you have a copy of the build dir of ncurses of failed build? Can you compare them? Are files in image and install subdirs correct (i. e. no reference to staging dir)? Does temp/run.do_install correct code to fix la files? Recipe seems to call autotools_do_install, which should fix it.
Signature · 2 lines
Stanislav Brabec http://www.penguin.cz/~utx/zaurus
Quoted 7 lines · On Thursday 27 November 2008 19:46:32 Stanislav Brabec wrote:
Quoted 6 lines · Valentin Longchamp
Quoted 5 lines
Quoted 2 lines
Could you comment TMPDIR out and then rebuild your image from scratch?
That theory has already been debunked. Not setting TMPDIR opens up a whole other can of worms.
Quoted 8 lines
Quoted 2 lines
Well, maybe it has been debunked, but it did the trick for me ... but I really don't understand why.
Do you have a copy of the build dir of ncurses of failed build? Can you compare them? Are files in image and install subdirs correct (i. e. no reference to staging dir)? Does temp/run.do_install correct code to fix la files? Recipe seems to call
autotools_do_install, which should fix it.
Yes I do have a copy of the both builds and I have tried to compare their logs. However I have not found something fundamentally different for both builds in the logs, they look identical except for the paths for work directory (but I haven't proofed all the log files precisely, would take me ages and don't have time for this now).
The files of the succeeding build are correct in both image and install (no more references):
- wrong build (libncurses.la snip):
# Libraries that this one depends upon.
dependency_libs=' -L/home/valentin/OE/angstrom/work/armv6-angstrom-linux- gnueabi/ncurses-5.4-r15/ncurses-5.4/lib'
- correct build (libncurses.la snip):
# Libraries that this one depends upon.
dependency_libs='
I don't really know where to look at more precisely, if you point me to somewhere, I'll have a look.
Regards
Valentin