Bug #9371
closedCould not find "working source trees.json"
0%
Description
The file "working source trees.json" is searched in the wrong place
build bases/linux-2.6-xfrm/Storage/working source trees.json
According to the instruction from Ilja the file is placed to
build bases/linux-2.6-xfrm/clade/Storage/working source trees.json
clade-all -p linux_kernel ./cmds.txt echo "[\"$(readlink -f .)\"]" > ./clade/Storage/working source trees.json
Raise exception: Traceback (most recent call last): File "/home/debian/klever-inst/klever/core/core/components.py", line 427, in run self.main() File "/home/debian/klever-inst/klever/core/core/components.py", line 332, in callbacks_caller ret = attr(*args, **kwargs) File "/home/debian/klever-inst/klever/core/core/pfg/__init__.py", line 56, in generate_program_fragments strategy = strategy(self.logger, self.conf, desc, clade_api, self.PF_DIR) File "/home/debian/klever-inst/klever/core/core/pfg/fragmentation/linux.py", line 29, in __init__ super().__init__(logger, conf, desc, clade, pf_dir) File "/home/debian/klever-inst/klever/core/core/pfg/fragmentation/__init__.py", line 59, in __init__ self.source_paths = self.__retrieve_source_paths() File "/home/debian/klever-inst/klever/core/core/pfg/fragmentation/__init__.py", line 248, in __retrieve_source_paths with open(path, 'r', encoding='utf8') as fp: FileNotFoundError: [Errno 2] No such file or directory: '/home/debian/klever-inst/klever/build bases/linux-2.6-xfrm/Storage/working source trees.json
Updated by Evgeny Novikov over 5 years ago
- Status changed from New to Rejected
Ilja's instructions like other user documentation except the deployment one are unofficial. So, let's that fix them.
Updated by Vadim Mutilin over 5 years ago
The Klever searches all the clade files inside "clade" subdirectory.
Just moving "working source trees.json" does not help.
My workaround was to move all the files one directory up.
./clade/Functions/ ./clade/Typedefs/ ./clade/CC/ ...
Updated by Ilja Zakharov over 5 years ago
According to the instruction from Ilja the file is placed to ...
You are not correct at all. In my next steps of the instruction I rename clade directory into linux-3.14.79 by an mv command. So after all these steps the file will be exactly in "build bases/linux-3.14.79/Storage/working source trees.json". So both Klever and my instruction are correct.
Updated by Vadim Mutilin over 5 years ago
Ilja Zakharov wrote:
You are not correct at all.
Sounds pathetically)
In my next steps of the instruction I rename clade directory into linux-3.14.79 by an mv command. So after all these steps the file will be exactly in "build bases/linux-3.14.79/Storage/working source trees.json". So both Klever and my instruction are correct.
The step was optional as far as I understood
Move this build base to another place. This is an optional step but if you are going to build more bases in this directory then it is better to do it.
So I completely skipped it without noticing what the same name linux-3.14.79 should uncover clade directory