Wind River Support Network

HomeDefectsLIN5-4081
Fixed

LIN5-4081 : WRL5: When the projectDir path contain @ the build fails.

Created: Jun 3, 2013    Updated: Dec 19, 2017
Resolved Date: Sep 16, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.8
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Build & Config

Description

When the projectDir path contain @ the build fails with the attached message.

This is a very much valid character in the path and is used for example by Jenkins for concurrent builds. 

Steps to Reproduce

cd "$(readlink -e projectDir)" && \
        "$(readlink -e "/smx@/windriver")/wrlinux/wrlinux-5/wrlinux/configure" \
        --enable-kernel=standard \
        --enable-rootfs=glibc_small \
        --enable-board=qemux86-64 \
        --enable-parallel-pkgbuilds=6 \
        --enable-jobs=6 \
        --with-sstate-dir="/proj/CMX3/windriver/sstate" \
        --with-layer="/smx@/meta-smx" \
        --enable-bootimage=iso \
        --enable-reconfig
Cloning /smx@/smx-projectDir-rahi7N/bitbake from /proj/SMX/windriver/installations/wrlinux5-a5136723ccf8901750f6f5ef955797340b7d60ed/wrlinux/wrlinux-5/git/bitbake (LB34_5.0.1_RCPL0003)
Cloning into '/smx@/smx-projectDir-rahi7N/bitbake'...
done.

Cloning /smx@/smx-projectDir-rahi7N/layers/oe-core from /proj/SMX/windriver/installations/wrlinux5-a5136723ccf8901750f6f5ef955797340b7d60ed/wrlinux/wrlinux-5/git/oe-core (LB34_5.0.1_RCPL0003)
Cloning into '/smx@/smx-projectDir-rahi7N/layers/oe-core'...
done.

Cloning /smx@/smx-projectDir-rahi7N/layers/meta-networking from /proj/SMX/windriver/installations/wrlinux5-a5136723ccf8901750f6f5ef955797340b7d60ed/wrlinux/wrlinux-5/git/meta-networking (LB34_5.0.1_RCPL0003)
Cloning into '/smx@/smx-projectDir-rahi7N/layers/meta-networking'...
done.

Cloning /smx@/smx-projectDir-rahi7N/layers/meta-webserver from /proj/SMX/windriver/installations/wrlinux5-a5136723ccf8901750f6f5ef955797340b7d60ed/wrlinux/wrlinux-5/git/meta-webserver (LB34_5.0.1_RCPL0003)
Cloning into '/smx@/smx-projectDir-rahi7N/layers/meta-webserver'...
done.

Cloning /smx@/smx-projectDir-rahi7N/layers/wrlinux from /proj/SMX/windriver/installations/wrlinux5-a5136723ccf8901750f6f5ef955797340b7d60ed/wrlinux/wrlinux-5/layers/wrlinux (LB34_5.0.1_RCPL0003)
Cloning into '/smx@/smx-projectDir-rahi7N/layers/wrlinux'...
done.

Cloning /smx@/smx-projectDir-rahi7N/layers/wrlcompat from /proj/SMX/windriver/installations/wrlinux5-a5136723ccf8901750f6f5ef955797340b7d60ed/wrlinux/wrlinux-5/layers/wrlcompat (LB34_5.0.1_RCPL0003)
Cloning into '/smx@/smx-projectDir-rahi7N/layers/wrlcompat'...
done.

Cloning /smx@/smx-projectDir-rahi7N/layers/wr-toolchain from /proj/SMX/windriver/installations/wrlinux5-a5136723ccf8901750f6f5ef955797340b7d60ed/wrlinux/wrlinux-5/layers/wr-toolchain (LB34_5.0.1_RCPL0003)
Cloning into '/smx@/smx-projectDir-rahi7N/layers/wr-toolchain'...
done.

Cloning /smx@/smx-projectDir-rahi7N/layers/wr-kernel from /proj/SMX/windriver/installations/wrlinux5-a5136723ccf8901750f6f5ef955797340b7d60ed/wrlinux/wrlinux-5/layers/wr-kernel (LB34_5.0.1_RCPL0003)
Cloning into '/smx@/smx-projectDir-rahi7N/layers/wr-kernel'...
done.

Cloning /smx@/smx-projectDir-rahi7N/layers/wr-bsps/qemux86-64 from /proj/SMX/windriver/installations/wrlinux5-a5136723ccf8901750f6f5ef955797340b7d60ed/wrlinux/wrlinux-5/layers/wr-bsps/qemux86-64 (LB34_5.0.1_RCPL0003)
Cloning into '/smx@/smx-projectDir-rahi7N/layers/wr-bsps/qemux86-64'...
done.

Cloning /smx@/smx-projectDir-rahi7N/layers/wr-base from /proj/SMX/windriver/installations/wrlinux5-a5136723ccf8901750f6f5ef955797340b7d60ed/wrlinux/wrlinux-5/layers/wr-base (LB34_5.0.1_RCPL0003)
Cloning into '/smx@/smx-projectDir-rahi7N/layers/wr-base'...
done.

Cloning /smx@/smx-projectDir-rahi7N/layers/wr-features from /proj/SMX/windriver/installations/wrlinux5-a5136723ccf8901750f6f5ef955797340b7d60ed/wrlinux/wrlinux-5/layers/wr-features (LB34_5.0.1_RCPL0003)
Cloning into '/smx@/smx-projectDir-rahi7N/layers/wr-features'...
done.

Cloning /smx@/smx-projectDir-rahi7N/layers/wr-tools-profile from /proj/SMX/windriver/installations/wrlinux5-a5136723ccf8901750f6f5ef955797340b7d60ed/wrlinux/wrlinux-5/layers/wr-tools-profile (LB34_5.0.1_RCPL0003)
Cloning into '/smx@/smx-projectDir-rahi7N/layers/wr-tools-profile'...
done.

Cloning /smx@/smx-projectDir-rahi7N/layers/wr-tools-debug from /proj/SMX/windriver/installations/wrlinux5-a5136723ccf8901750f6f5ef955797340b7d60ed/wrlinux/wrlinux-5/layers/wr-tools-debug (LB34_5.0.1_RCPL0003)
Cloning into '/smx@/smx-projectDir-rahi7N/layers/wr-tools-debug'...
done.

Generating bitbake config
Substituting scripts and Makefiles
config.status.in is NEWER, copy and re-exec
Updating: /smx@/smx-projectDir-rahi7N/Makefile
Updating: /smx@/smx-projectDir-rahi7N/scripts/fakestart.sh
Updating: /smx@/smx-projectDir-rahi7N/scripts/user-nfs.sh
Updating: /smx@/smx-projectDir-rahi7N/scripts/wrl-env-internal
Updating: /smx@/smx-projectDir-rahi7N/scripts/wrl-env-setup.mk
Updating: /smx@/smx-projectDir-rahi7N/scripts/autoconf.mk
Updating: /smx@/smx-projectDir-rahi7N/scripts/quiltPatterns.txt
Updating: /smx@/smx-projectDir-rahi7N/scripts/export-layer.sh
Updating: /smx@/smx-projectDir-rahi7N/build/Makefile
Updating: /smx@/smx-projectDir-rahi7N/build-tools/Makefile
Generating wrlinux compatibility config
ERROR: Error in compiling python function in /smx@/smx-projectDir-rahi7N/layers/oe-core/meta/classes/staging.bbclass
ERROR: invalid syntax (__anon_119__home_ejonjas_smx@_smx_projectDir_rahi7N_layers_oe_core_meta_classes_staging_bbclass, line 1)
ERROR: The lines leading to this error were:
ERROR:  1:SyntaxError:'def __anon_119__home_ejonjas_smx@_smx_projectDir_rahi7N_layers_oe_core_meta_classes_staging_bbclass(d):'
ERROR:  *** 0001:def __anon_119__home_ejonjas_smx@_smx_projectDir_rahi7N_layers_oe_core_meta_classes_staging_bbclass(d):
ERROR:      0002:    if d.getVar('do_stage', True) is not None:
ERROR:      0003:        bb.fatal("Legacy staging found for %s as it has a do_stage function. This will need conversion to a do_install or often simply removal to work with OE-core" % d.getVar("FILE", True))
ERROR:      0004:
ERROR: Error parsing configuration files
Traceback (most recent call last):
  File "/smx@/smx-projectDir-rahi7N/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 157, in handle(fn='/smx@/smx-projectDir-rahi7N/layers/oe-core/meta/classes/staging.bbclass', d=<bb.data_smart.DataSmart object at 0xc56a90>, include=True):
         try:
    >        statements.eval(d)
         except bb.parse.SkipPackage:
  File "/smx@/smx-projectDir-rahi7N/bitbake/lib/bb/parse/ast.py", line 39, in StatementGroup.eval(data=<bb.data_smart.DataSmart object at 0xc56a90>):
             for statement in self:
    >            statement.eval(data)

  File "/smx@/smx-projectDir-rahi7N/bitbake/lib/bb/parse/ast.py", line 153, in MethodNode.eval(data=<bb.data_smart.DataSmart object at 0xc56a90>):
                     text = "def %s(d):\n" % (funcname) + text
    >                bb.methodpool.insert_method(funcname, text, self.filename)
                 anonfuncs = data.getVar('__BBANONFUNCS') or []
  File "/smx@/smx-projectDir-rahi7N/bitbake/lib/bb/methodpool.py", line 44, in insert_method(modulename='__anon_119__home_ejonjas_smx@_smx_projectDir_rahi7N_layers_oe_core_meta_classes_staging_bbclass', code='def __anon_119__home_ejonjas_smx@_smx_projectDir_rahi7N_layers_oe_core_meta_classes_staging_bbclass(d):\n    if d.getVar(\'do_stage\', True) is not None:\n        bb.fatal("Legacy staging found for %s as it has a do_stage function. This will need conversion to a do_install or often simply removal to work with OE-core" % d.getVar("FILE", True))\n', fn='/smx@/smx-projectDir-rahi7N/layers/oe-core/meta/classes/staging.bbclass'):
         """
    >    comp = better_compile(code, modulename, fn )
         better_exec(comp, None, code, fn)
  File "/smx@/smx-projectDir-rahi7N/bitbake/lib/bb/utils.py", line 270, in better_compile(text='def __anon_119__home_ejonjas_smx@_smx_projectDir_rahi7N_layers_oe_core_meta_classes_staging_bbclass(d):\n    if d.getVar(\'do_stage\', True) is not None:\n        bb.fatal("Legacy staging found for %s as it has a do_stage function. This will need conversion to a do_install or often simply removal to work with OE-core" % d.getVar("FILE", True))\n', file='__anon_119__home_ejonjas_smx@_smx_projectDir_rahi7N_layers_oe_core_meta_classes_staging_bbclass', realfile='/smx@/smx-projectDir-rahi7N/layers/oe-core/meta/classes/staging.bbclass', mode='exec'):
             e = bb.BBHandledException(e)
    >        raise e

BBHandledException: invalid syntax (__anon_119__home_ejonjas_smx@_smx_projectDir_rahi7N_layers_oe_core_meta_classes_staging_bbclass, line 1)

Initial bitbake parse/config failed, moving bitbake_build/conf/local.conf to
  bitbake_build/conf/local.conf.failed, in case you want to manually debug.
Please correct your configure settings and try again.
make[1]: *** [smx] Error 1
make[1]: Leaving directory `/smx@'

Other Downloads


Live chat
Online