oe-alliance / oe-alliance-core

The openembedded alliance core.
GNU General Public License v2.0
163 stars 175 forks source link

locale 'C.utf8' already exists #829

Closed ahmedmoselhi closed 1 year ago

ahmedmoselhi commented 1 year ago
ERROR: teamblue-image-7.3-r0.000 do_rootfs: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_rootfs(d)
     0003:
File: '/home/hyper/ahmed/build-enviroment/openembedded-core/meta/classes-recipe/image.bbclass', lineno: 261, function: do_rootfs
     0257:    progress_reporter.next_stage()
     0258:
     0259:    # generate rootfs
     0260:    d.setVarFlag('REPRODUCIBLE_TIMESTAMP_ROOTFS', 'export', '1')
 *** 0261:    create_rootfs(d, progress_reporter=progress_reporter, logcatcher=logcatcher)
     0262:
     0263:    progress_reporter.finish()
     0264:}
     0265:do_rootfs[dirs] = "${TOPDIR}"
File: '/home/hyper/ahmed/build-enviroment/openembedded-core/meta/lib/oe/rootfs.py', lineno: 387, function: create_rootfs
     0383:
     0384:    img_type = d.getVar('IMAGE_PKGTYPE')
     0385:
     0386:    cls = get_class_for_type(img_type)
 *** 0387:    cls(d, manifest_dir, progress_reporter, logcatcher).create()
     0388:    os.environ.clear()
     0389:    os.environ.update(env_bkp)
     0390:
     0391:
File: '/home/hyper/ahmed/build-enviroment/openembedded-core/meta/lib/oe/rootfs.py', lineno: 195, function: create
     0191:        if self.progress_reporter:
     0192:            self.progress_reporter.next_stage()
     0193:
     0194:        # call the package manager dependent create method
 *** 0195:        self._create()
     0196:
     0197:        sysconfdir = self.image_rootfs + self.d.getVar('sysconfdir')
     0198:        bb.utils.mkdirhier(sysconfdir)
     0199:        with open(sysconfdir + "/version", "w+") as ver:
File: '/home/hyper/ahmed/build-enviroment/openembedded-core/meta/lib/oe/package_manager/ipk/rootfs.py', lineno: 315, function: _create
     0311:
     0312:        if self.progress_reporter:
     0313:            self.progress_reporter.next_stage()
     0314:
 *** 0315:        self.pm.install_complementary()
     0316:
     0317:        if self.progress_reporter:
     0318:            self.progress_reporter.next_stage()
     0319:
File: '/home/hyper/ahmed/build-enviroment/openembedded-core/meta/lib/oe/package_manager/__init__.py', lineno: 412, function: install_complementary
     0408:        if self.d.getVar('IMAGE_LOCALES_ARCHIVE') == '1':
     0409:            target_arch = self.d.getVar('TARGET_ARCH')
     0410:            localedir = oe.path.join(self.target_rootfs, self.d.getVar("libdir"), "locale")
     0411:            if os.path.exists(localedir) and os.listdir(localedir):
 *** 0412:                generate_locale_archive(self.d, self.target_rootfs, target_arch, localedir)
     0413:                # And now delete the binary locales
     0414:                self.remove(fnmatch.filter(self.list_installed(), "glibc-binary-localedata-*"), False)
     0415:
     0416:    def deploy_dir_lock(self):
File: '/home/hyper/ahmed/build-enviroment/openembedded-core/meta/lib/oe/package_manager/__init__.py', lineno: 144, function: generate_locale_archive
     0140:        if os.path.isdir(path):
     0141:            cmd = ["cross-localedef", "--verbose"]
     0142:            cmd += arch_options
     0143:            cmd += ["--add-to-archive", path]
 *** 0144:            subprocess.check_output(cmd, env=env, stderr=subprocess.STDOUT)
     0145:
     0146:class Indexer(object, metaclass=ABCMeta):
     0147:    def __init__(self, d, deploy_dir):
     0148:        self.d = d
File: '/usr/lib/python3.10/subprocess.py', lineno: 420, function: check_output
     0416:        else:
     0417:            empty = b''
     0418:        kwargs['input'] = empty
     0419:
 *** 0420:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
     0421:               **kwargs).stdout
     0422:
     0423:
     0424:class CompletedProcess(object):
File: '/usr/lib/python3.10/subprocess.py', lineno: 524, function: run
     0520:            # We don't call process.wait() as .__exit__ does that for us.
     0521:            raise
     0522:        retcode = process.poll()
     0523:        if check and retcode:
 *** 0524:            raise CalledProcessError(retcode, process.args,
     0525:                                     output=stdout, stderr=stderr)
     0526:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0527:
     0528:
Exception: subprocess.CalledProcessError: Command '['cross-localedef', '--verbose', '--uint32-align=4', '--little-endian', '--add-to-archive', '/home/hyper/ahmed/build-enviroment/builds/teamblue/release/multibox/tmp/rootfs/multibox/usr/lib/locale/C.UTF-8']' returned non-zero exit status 255.

Subprocess output:
Adding /home/hyper/ahmed/build-enviroment/builds/teamblue/release/multibox/tmp/rootfs/multibox/usr/lib/locale/C.UTF-8
locale 'C.utf8' already exists
atvcaptain commented 1 year ago

Distro Teamblue only Support Gigablue, use other distro like openbh, openvix, openhdf, openatv