Skip to contentSkip to conversation

libxml2-native build issue

DISCUSSION David Lanzendörfer 3 participants 5 messages Oct 10, 2009

lore
Share & tools
lore
#0 lore raw

Does someone have an idea, what could cause the following error?:
NOTE: Running task 1673 of 2261 (ID: 2181, /mnt/sda/fso/openembedded/recipes/libxml/libxml2-native_2.7.3.bb, do_package)
objcopy: /mnt/sda/fso/build/tmp/work/x86_64-linux/libxml2-native-2.7.3- r0/image/mnt/sda/fso/build/tmp/staging/x86_64-linux/usr/lib/.debug/libxml2.a:
Invalid operation

NOTE: the following files were installed but not shipped in any package:                                                                                                                                                                     
NOTE:   /mnt/sda/fso/build/tmp/staging/x86_64-linux/usr/bin/.debug/xmlcatalog                                                                                                                                                                
NOTE:   /mnt/sda/fso/build/tmp/staging/x86_64-linux/usr/bin/.debug/xmllint                                                                                                                                                                   
NOTE:   /mnt/sda/fso/build/tmp/staging/x86_64-

linux/usr/lib/.debug/libxml2.so.2.7.3
NOTE: /mnt/sda/fso/build/tmp/staging/x86_64-linux/usr/lib/.debug/libxml2.a
NOTE: Couldn't find shared library provider for libdl.so.2
NOTE: Couldn't find shared library provider for libz.so.1
NOTE: Couldn't find shared library provider for libm.so.6
NOTE: Couldn't find shared library provider for libc.so.6
NOTE: Couldn't find shared library provider for libdl.so.2
NOTE: Couldn't find shared library provider for libz.so.1
NOTE: Couldn't find shared library provider for libm.so.6
NOTE: Couldn't find shared library provider for libc.so.6
NOTE: Couldn't find shared library provider for libdl.so.2
NOTE: Couldn't find shared library provider for libz.so.1
NOTE: Couldn't find shared library provider for libm.so.6
NOTE: Couldn't find shared library provider for libc.so.6
ERROR: Error in executing: /mnt/sda/fso/openembedded/recipes/libxml/libxml2- native_2.7.3.bb

ERROR: Exception:<type 'exceptions.KeyError'> Message:'linux'                                                                                                                                                                                
ERROR: Printing the environment of the function                                                                                                                                                                                              
ERROR:  0005:    packages = bb.data.getVar('PACKAGES',d, True)                                                                                                                                                                               
ERROR:  0006:                                                                                                                                                                                                                                
ERROR:  0007:    # no packages should be scanned                                                                                                                                                                                             
ERROR:  0008:    if not packages:                                                                                                                                                                                                            
ERROR:  0009:        return                                                                                                                                                                                                                  
ERROR:  0010:                                                                                                                                                                                                                                
ERROR:  0011:    checks = [package_qa_check_rpath, package_qa_check_dev,                                                                                                                                                                     
ERROR:  0012:              package_qa_check_perm, package_qa_check_arch,                                                                                                                                                                     
ERROR:  0013:              package_qa_check_desktop, package_qa_hash_style,                                                                                                                                                                  
ERROR: Error in executing: /mnt/sda/fso/openembedded/recipes/libxml/libxml2-
native_2.7.3.bb                                                                                                                                                  
ERROR: Exception:<type 'exceptions.KeyError'> Message:'linux'                                                                                                                                                                                
ERROR: Printing the environment of the function                                                                                                                                                                                              
ERROR:  0005:           return                                                                                                                                                                                                               
ERROR:  0006:                                                                                                                                                                                                                                
ERROR:  0007:   for f in (bb.data.getVar('PACKAGEFUNCS', d, 1) or '').split():                                                                                                                                                               
ERROR:  0008:           bb.build.exec_func(f, d)                                                                                                                                                                                             
ERROR:  0009:           package_run_hooks(f, d)                                                                                                                                                                                              
ERROR:  0010:                                                                                                                                                                                                                                
ERROR: Error in executing: /mnt/sda/fso/openembedded/recipes/libxml/libxml2-

native_2.7.3.bb
ERROR: Exception:<type 'exceptions.KeyError'> Message:'linux'
ERROR: Printing the environment of the function
ERROR: Error in executing: /mnt/sda/fso/openembedded/recipes/libxml/libxml2- native_2.7.3.bb
ERROR: Exception:<type 'exceptions.KeyError'> Message:'linux'
ERROR: Printing the environment of the function
ERROR: Build of /mnt/sda/fso/openembedded/recipes/libxml/libxml2- native_2.7.3.bb do_package failed
Traceback (most recent call last):
File "/usr/bin/bitbake", line 143, in <module>

    main()

File "/usr/bin/bitbake", line 140, in main
cooker.cook()
File "/usr/lib64/python2.6/site-packages/bb/cooker.py", line 644, in cook
return self.buildTargets(pkgs_to_build)
File "/usr/lib64/python2.6/site-packages/bb/cooker.py", line 551, in
buildTargets
failures = rq.execute_runqueue()
File "/usr/lib64/python2.6/site-packages/bb/runqueue.py", line 842, in
execute_runqueue
self.execute_runqueue_internal()
File "/usr/lib64/python2.6/site-packages/bb/runqueue.py", line 951, in
execute_runqueue_internal
self.cooker.tryBuild(fn)
File "/usr/lib64/python2.6/site-packages/bb/cooker.py", line 137, in
tryBuild
return self.tryBuildPackage(fn, item, self.configuration.cmd, the_data)
File "/usr/lib64/python2.6/site-packages/bb/cooker.py", line 111, in
tryBuildPackage

    bb.build.exec_task('do_%s' % task, the_data)

File "/usr/lib64/python2.6/site-packages/bb/build.py", line 278, in
exec_task
exec_func(task, localdata)
File "/usr/lib64/python2.6/site-packages/bb/build.py", line 113, in
exec_func
exec_func_python(func, d)
File "/usr/lib64/python2.6/site-packages/bb/build.py", line 136, in
exec_func_python
utils.better_exec(comp, g, tmp, bbfile)
File "/usr/lib64/python2.6/site-packages/bb/utils.py", line 171, in
better_exec
exec code in context
File "do_package", line 4, in <module>
File "do_package", line 2, in do_package
File "/usr/lib64/python2.6/site-packages/bb/build.py", line 113, in
exec_func
exec_func_python(func, d)
File "/usr/lib64/python2.6/site-packages/bb/build.py", line 136, in
exec_func_python
utils.better_exec(comp, g, tmp, bbfile)
File "/usr/lib64/python2.6/site-packages/bb/utils.py", line 171, in
better_exec
exec code in context
File "package_ipk_do_package", line 4, in <module>
File "package_ipk_do_package", line 2, in package_ipk_do_package File "/usr/lib64/python2.6/site-packages/bb/build.py", line 113, in
exec_func
exec_func_python(func, d)
File "/usr/lib64/python2.6/site-packages/bb/build.py", line 136, in
exec_func_python
utils.better_exec(comp, g, tmp, bbfile)
File "/usr/lib64/python2.6/site-packages/bb/utils.py", line 171, in
better_exec
exec code in context
File "package_do_package", line 11, in <module>
File "package_do_package", line 8, in package_do_package File "/usr/lib64/python2.6/site-packages/bb/build.py", line 113, in
exec_func
exec_func_python(func, d)
File "/usr/lib64/python2.6/site-packages/bb/build.py", line 136, in
exec_func_python
utils.better_exec(comp, g, tmp, bbfile)
File "/usr/lib64/python2.6/site-packages/bb/utils.py", line 171, in
better_exec
exec code in context
File "do_package_qa", line 33, in <module>
File "do_package_qa", line 24, in do_package_qa
File "<bb>", line 9, in package_qa_walk
KeyError: 'linux'
ERROR: Task 2181 (/mnt/sda/fso/openembedded/recipes/libxml/libxml2- native_2.7.3.bb, do_package) failed
NOTE: Tasks Summary: Attempted 1672 tasks of which 1653 didn't need to be rerun and 1 failed.
ERROR: '/mnt/sda/fso/openembedded/recipes/libxml/libxml2-native_2.7.3.bb' failed

#1 lore raw
Quoted 1 line · On Saturday 10 October 2009 03:22:02 David Lanzendörfer wrote:

Does someone have an idea, what could cause the following error?:

The linux -> linux-gnu change. Khem's revert is going to fix that.

holger

#2 lore raw

hi

I also got this problem...can you explain more about how to fix it?

thanks
Leo

-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 代表 Holger Hans Peter Freyther 发送时间: 2009年10月10日 10:54
收件人: [email protected]
主题: Re: [oe] libxml2-native build issue

Quoted 1 line · On Saturday 10 October 2009 03:22:02 David Lanzendörfer wrote:

Does someone have an idea, what could cause the following error?:

The linux -> linux-gnu change. Khem's revert is going to fix that.

holger

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw

ok, answer my own question, after I change class/insane.bbclass from
def package_qa_get_machine_dict():

    return {
            "linux-gnu" : {

to

def package_qa_get_machine_dict():

    return {
            "linux" : {

everything goes well.

-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 代表 Leo Liang 发送时间: 2009年10月10日 14:03
收件人: [email protected]
主题: Re: [oe] libxml2-native build issue

hi

I also got this problem...can you explain more about how to fix it?

thanks
Leo

-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 代表 Holger Hans Peter Freyther 发送时间: 2009年10月10日 10:54
收件人: [email protected]
主题: Re: [oe] libxml2-native build issue

Quoted 1 line · On Saturday 10 October 2009 03:22:02 David Lanzendörfer wrote:

Does someone have an idea, what could cause the following error?:

The linux -> linux-gnu change. Khem's revert is going to fix that.

holger

_______________________________________________
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

#4 lore raw
Quoted 6 lines · On Saturday 10 October 2009 08:37:06 Leo Liang wrote:

ok, answer my own question, after I change class/insane.bbclass from
def package_qa_get_machine_dict():

    return {
            "linux-gnu" : {
Quoted 7 lines

to

def package_qa_get_machine_dict():

    return {
            "linux" : {

everything goes well.

It doesn't this is why Khem is rolling out changes. Please see the top posts Graeme and Khem..

z.