OE: Fehler bei python-native nach Update auf openSUSE 11

  • Hallo zusammen,


    Ich wollte mir mal das OE für die 8000 aufsetzen. Aber leider bricht mir der Vorgang immer bei python-native ab. Ich vermute, dass es mit dem Update auf openSUSE 11 zu tun haben könnte. Die ich nicht so bewandert bin, was den Fehler verursacht, poste ich hier mal den Log.


    Gruss
    Dre

  • ich hänge nach an selben stelle.
    Habe hier neuen PC und Sidux auch neu installiert.


  • dre
    Same problem on FC9 and after updating bitbake:


    Zitat

    bitbake dreambox-image
    NOTE: Invalid cache found, rebuilding... ERROR: Error in executing: ERROR: Exception:<type 'exceptions.UnboundLocalError'> Message:local variable 'bb' referenced before assignment ERROR: Printing the environment of the function ERROR: 0001:def __anonfunc(): ERROR: 0002: import exceptions ERROR: 0003: need_host = bb.data.getVar('COMPATIBLE_HOST', d, 1) ERROR: 0004: if need_host: ERROR: 0005: import re ERROR: 0006: this_host = bb.data.getVar('HOST_SYS', d, 1) ERROR: 0007: if not re.match(need_host, this_host): ERROR: local variable 'bb' referenced before assignment while parsing /home/fergy/oe_8000/openembedded/packages/panoramixext/panoramixext_1.1.bb ERROR: Error in executing: ERROR: Exception:<type 'exceptions.UnboundLocalError'> Message:local variable 'bb' referenced before assignment ERROR: Printing the environment of the function ERROR: 0001:def __anonfunc(): ERROR: 0002: import exceptions ERROR: 0003: need_host = bb.data.getVar('COMPATIBLE_HOST', d, 1) ERROR: 0004: if need_host: ERROR: 0005: import re ERROR: 0006: this_host = bb.data.getVar('HOST_SYS', d, 1) ERROR: 0007: if not re.match(need_host, this_host): ERROR: local variable 'bb' referenced before assignment while parsing /home/fergy/oe_8000/openembedded/packages/panoramixext/panoramixext_cvs.bb ERROR: Error in executing: ERROR: Exception:<type 'exceptions.UnboundLocalError'> Message:local variable 'bb' referenced before assignment ERROR: Printing the environment of the function ERROR: 0001:def __anonfunc(): ERROR: 0002: import exceptions ERROR: 0003: need_host = bb.data.getVar('COMPATIBLE_HOST', d, 1) ERROR: 0004: if need_host: ERROR: 0005: import re ERROR: 0006: this_host = bb.data.getVar('HOST_SYS', d, 1) ERROR: 0007: if not re.match(need_host, this_host): ERROR: local variable 'bb' referenced before assignment while parsing /home/fergy/oe_8000/openembedded/packages/gpe-conf/gpe-conf_cvs.bb ERROR: Error in executing: ERROR: Exception:<type 'exceptions.UnboundLocalError'> Message:local variable 'bb' referenced before assignment ERROR: Printing the environment of the function ERROR: 0001:def __anonfunc(): ERROR: 0002: import exceptions ERROR: 0003: need_host = bb.data.getVar('COMPATIBLE_HOST', d, 1) ERROR: 0004: if need_host: ERROR: 0005: import re ERROR: 0006: this_host = bb.data.getVar('HOST_SYS', d, 1) ERROR: 0007: if not re.match(need_host, this_host): ERROR: local variable 'bb' referenced before assignment while parsing /home/fergy/oe_8000/openembedded/packages/gpe-conf/gpe-conf_0.2.2.bb ERROR: Error in executing: ERROR: Exception:<type 'exceptions.UnboundLocalError'> Message:local variable 'bb' referenced before assignment ERROR: Printing the environment of the function ERROR: 0001:def __anonfunc(): ERROR: 0002: import exceptions ERROR: 0003: need_host = bb.data.getVar('COMPATIBLE_HOST', d, 1) ERROR: 0004: if need_host: ERROR: 0005: import re ERROR: 0006: this_host = bb.data.getVar('HOST_SYS', d, 1) ERROR: 0007: if not re.match(need_host, this_host): ERROR: local variable 'bb' referenced before assignment while parsing /home/fergy/oe_8000/openembedded/packages/mp3blaster/mp3blaster_3.1.3.bb ERROR: Error in executing: ERROR: Exception:<type 'exceptions.UnboundLocalError'> Message:local variable 'bb' referenced before assignment ERROR: Printing the environment of the function ERROR: 0001:def __anonfunc(): ERROR: 0002: import exceptions ERROR: 0003: need_host = bb.data.getVar('COMPATIBLE_HOST', d, 1) ERROR: 0004: if need_host: ERROR: 0005: import re ERROR: 0006: this_host = bb.data.getVar('HOST_SYS', d, 1) ERROR: 0007: if not re.match(need_host, this_host): ERROR: local variable 'bb' referenced before assignment while parsing /home/fergy/oe_8000/openembedded/packages/mp3blaster/mp3blaster_3.2.0.bb ERROR: Error in compiling: ERROR: The lines resulting into this error were: ERROR: 46:IndentationError:' if bb.data.getVar('HOST_NONSYSV', d, True) and bb.data.getVar('HOST_NONSYSV', d, True) != '0':' ERROR: Printing the environment of the function ERROR: 0042:# bb.note("overriding PACKAGE_ARCH from %s to %s" % (old_arch, mach_arch)) ERROR: 0043: bb.data.setVar('PACKAGE_ARCH', mach_arch, d) ERROR: 0044: return ERROR: 0045: ERROR: 0046: if bb.data.getVar('HOST_NONSYSV', d, True) and bb.data.getVar('HOST_NONSYSV', d, True) != '0': ERROR: 0047: bb.data.setVar('EXTRA_OECONF', ' --with-ipc=tcp --program-prefix= ', d) ERROR: 0048: make: *** [image] Error 1

    JET/Jtvos/Jtv Team


    CLi Team Images Design

  • Thank You rrr_load
    I was figured that out.
    After removing bitbake package from Fedora, everything under control.
    Image for 8000'er builded
    C Ya

    JET/Jtvos/Jtv Team


    CLi Team Images Design

  • Der Fehler sieht sehr nach dem aus, der auch bei ncurses-native auftritt, wenn man eine aktuelle Distribution benutzt: Es wird bei den -native-Paketen gegen einen Bilbiothek gelinkt, die auf dem Host-System installiert ist (/usr/lib), anstatt gegen eine, die vorher im OE gebaut wurde.
    Insofern würde ich da auch mal den Workaround benutzen, der für das ncurses-Paket gilt (also das setzen von LD_LIBRARY_PATH)


    Alternativ einfach eine ältere Linux-Version auf dem PC installieren.

    Einmal editiert, zuletzt von LittleBoy ()

  • jetzt läufts durch.


    env.source alt:


    Zitat


    ...
    export LD_LIBRARY_PATH="${OE_BASE}/build/tmp/staging/i686-linux/lib"
    ...


    env.source neu:


    Zitat


    ...
    export LD_LIBRARY_PATH=${OE_BASE}/build/tmp/staging/i686-linux/lib
    ...


    die sch... " waren es. hatte die bis jetzt bei allen env.source drin...

    Gruss
    Dre


    Boxen (im Einsatz): DM920, DM900, DMOne
    Developer Project Merlin - we are OpenSource

  • FeRgY: the default env.source only contains export LD_LIBRARY_PATH but for openSUSE you need to add the lib-path.

    Gruss
    Dre


    Boxen (im Einsatz): DM920, DM900, DMOne
    Developer Project Merlin - we are OpenSource

  • Zitat

    Originally posted by dre
    FeRgY: the default env.source only contains export LD_LIBRARY_PATH but for openSUSE you need to add the lib-path.


    OK, I know that, but from where was come quotation marks? Your mistake or ... ?

    JET/Jtvos/Jtv Team


    CLi Team Images Design

  • I got them from a hint somewhere on the internet. and it worked with openSUSE 10.3.

    Gruss
    Dre


    Boxen (im Einsatz): DM920, DM900, DMOne
    Developer Project Merlin - we are OpenSource

  • Ahh. ok.
    Well, as We was on LD problem, on FC9 everything goes well to ncurses.
    After that, I must to change path as Yours one because if I not do that:



    after changing path to

    Code
    ${OE_BASE}/build/tmp/staging/i686-linux/lib



    Strange... after completed on ncurses, I was again change path to default, and it compile as well :confused_face:


    Any ide about that?


    tmbinc
    If You see this, please recheck compatibility with FC9 and ncurses.
    Thx

    JET/Jtvos/Jtv Team


    CLi Team Images Design

  • I think that only ncurses needs the fix. maybe python-native too. you can compile afterwards because ncurses is not recompiled anymore. the package is 'flagged' as already available. when you do a bitbake -cclean ncurses and than try to bake it again with LD_LIBRARY_PATH set it will fail.

    Gruss
    Dre


    Boxen (im Einsatz): DM920, DM900, DMOne
    Developer Project Merlin - we are OpenSource