|
【Linux】
同步Core-3568J源码报错
发表于 2022-12-9 14:58:20
浏览:6952
|
回复:6
打印
只看该作者
[复制链接]
楼主
1.编译服务器为Ubuntu 18.04
cat /proc/version
Linux version 4.15.0-196-generic (buildd@lcy02-amd64-018) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #207-Ubuntu SMP Thu Oct 27 21:24:58 UTC 2022
2.按照如下指导安装Core-3568J SDK,在同步代码时报错
1. 编译环境搭建 — Firefly Wiki (t-firefly.com)
也就是执行如下命令报错,详见错误log
.repo/repo/repo sync -c --no-tags
/rk356x_linux_release_20211019$ .repo/repo/repo sync -c --no-tagswarning: Python 3 support is currently experimental. YMMV.Please use Python 2.6 - 2.7 instead./home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/main.py:19: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import impFetching project external/quectel-cmFetching project buildrootFetching project external/rktoolkitFetching project external/chromiumerror: Cannot fetch external/rktoolkit (AttributeError: 'str' object has no attribute 'decode')Fetching project external/libmaliException in thread Thread-3:Traceback (most recent call last): File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 188, in GetRemote r = self._remotes[name]KeyError: 'firefly-linux'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/usr/local/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList success = self._FetchHelper(opt, project, *args, **kwargs) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper prune=opt.prune) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 1232, in Sync_NetworkHalf self._InitRemote() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 2350, in _InitRemote remote = self.GetRemote(self.remote.name) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 809, in GetRemote return self.config.GetRemote(name) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 190, in GetRemote r = Remote(self, name) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 574, in __init__ self.url = self._Get('url') File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 716, in _Get return self._config.GetString(key, all_keys = all_keys) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 131, in GetString v = self._cache[_key(name)] File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 248, in _cache self._cache_dict = self._Read() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 254, in _Read d = self._ReadGit() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 299, in _ReadGit for line in d.decode('utf-8').rstrip('\0').split('\0'): # pylint: disable=W1401AttributeError: 'str' object has no attribute 'decode'error: Cannot fetch buildroot (AttributeError: 'str' object has no attribute 'decode')Exception in thread Thread-2:Traceback (most recent call last): File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 188, in GetRemote r = self._remotes[name]KeyError: 'firefly-linux'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/usr/local/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList success = self._FetchHelper(opt, project, *args, **kwargs) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper prune=opt.prune) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 1232, in Sync_NetworkHalf self._InitRemote() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 2350, in _InitRemote remote = self.GetRemote(self.remote.name) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 809, in GetRemote return self.config.GetRemote(name) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 190, in GetRemote r = Remote(self, name) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 574, in __init__ self.url = self._Get('url') File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 716, in _Get return self._config.GetString(key, all_keys = all_keys) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 131, in GetString v = self._cache[_key(name)] File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 248, in _cache self._cache_dict = self._Read() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 254, in _Read d = self._ReadGit() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 299, in _ReadGit for line in d.decode('utf-8').rstrip('\0').split('\0'): # pylint: disable=W1401AttributeError: 'str' object has no attribute 'decode'error: Cannot fetch external/chromium (AttributeError: 'str' object has no attribute 'decode')Exception in thread Thread-4:Traceback (most recent call last): File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 188, in GetRemote r = self._remotes[name]KeyError: 'firefly-linux'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/usr/local/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList success = self._FetchHelper(opt, project, *args, **kwargs) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper prune=opt.prune) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 1232, in Sync_NetworkHalf self._InitRemote() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 2350, in _InitRemote remote = self.GetRemote(self.remote.name) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 809, in GetRemote return self.config.GetRemote(name) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 190, in GetRemote r = Remote(self, name) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 574, in __init__ self.url = self._Get('url') File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 716, in _Get return self._config.GetString(key, all_keys = all_keys) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 131, in GetString v = self._cache[_key(name)] File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 248, in _cache self._cache_dict = self._Read() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 254, in _Read d = self._ReadGit() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 299, in _ReadGit for line in d.decode('utf-8').rstrip('\0').split('\0'): # pylint: disable=W1401AttributeError: 'str' object has no attribute 'decode'error: Cannot fetch external/libmali (AttributeError: 'str' object has no attribute 'decode')Exception in thread Thread-5:Traceback (most recent call last): File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 188, in GetRemote r = self._remotes[name]KeyError: 'firefly-linux'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/usr/local/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList success = self._FetchHelper(opt, project, *args, **kwargs) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper prune=opt.prune) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 1232, in Sync_NetworkHalf self._InitRemote() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 2350, in _InitRemote remote = self.GetRemote(self.remote.name) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 809, in GetRemote return self.config.GetRemote(name) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 190, in GetRemote r = Remote(self, name) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 574, in __init__ self.url = self._Get('url') File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 716, in _Get return self._config.GetString(key, all_keys = all_keys) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 131, in GetString v = self._cache[_key(name)] File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 248, in _cache self._cache_dict = self._Read() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 254, in _Read d = self._ReadGit() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 299, in _ReadGit for line in d.decode('utf-8').rstrip('\0').split('\0'): # pylint: disable=W1401AttributeError: 'str' object has no attribute 'decode'error: Cannot fetch external/quectel-cm (AttributeError: 'str' object has no attribute 'decode')Exception in thread Thread-1:Traceback (most recent call last): File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/usr/local/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList success = self._FetchHelper(opt, project, *args, **kwargs) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper prune=opt.prune) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 1229, in Sync_NetworkHalf self._InitGitDir(force_sync=force_sync) File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/project.py", line 2298, in _InitGitDir self.config.SetString('filter.lfs.smudge', 'git-lfs smudge --skip -- %f') File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 158, in SetString old = self._cache[key] File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 248, in _cache self._cache_dict = self._Read() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 254, in _Read d = self._ReadGit() File "/home/lijianjun/firefly/rk3568_prj/rk356x_linux_release_20211019/.repo/repo/git_config.py", line 299, in _ReadGit for line in d.decode('utf-8').rstrip('\0').split('\0'): # pylint: disable=W1401AttributeError: 'str' object has no attribute 'decode'error: Exited sync due to fetch errors
|
|