You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all maybe someone can help me here. I tried to use puncover on a fresh debian 11 installation.
I installed puncover with
apt-get install pip
pip3 install puncover
When I try it with a simple little program, this is what I get (same result when setting --arm_tools_dir or --gcc_tools_base to the appropriate correct subdir (using xPacks arm-none-eabi for bare metal here):
dev@qemuarm:~/project_dir$ puncover --elf_file main.elf
DEPRECATED: argument --arm_tools_dir will be removed, use --gcc_tools_base instead.
parsing ELF at main.elf
Traceback (most recent call last):
File "/usr/local/bin/puncover", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.9/dist-packages/puncover/puncover.py", line 69, in main
builder.build_if_needed()
File "/usr/local/lib/python3.9/dist-packages/puncover/builders.py", line 32, in build_if_needed
self.build()
File "/usr/local/lib/python3.9/dist-packages/puncover/builders.py", line 22, in build
self.collector.parse_elf(self.get_elf_path())
File "/usr/local/lib/python3.9/dist-packages/puncover/collector.py", line 306, in parse_elf
self.parse_assembly_text("".join(self.gcc_tools.get_assembly_lines(elf_file)))
File "/usr/local/lib/python3.9/dist-packages/puncover/gcc_tools.py", line 28, in get_assembly_lines
return self.gcc_tool_lines('objdump', ['-dslw', os.path.basename(elf_file)], os.path.dirname(elf_file))
File "/usr/local/lib/python3.9/dist-packages/puncover/gcc_tools.py", line 24, in gcc_tool_lines
proc = subprocess.Popen([self.gcc_tool_path(name)] + args, stdout=subprocess.PIPE, cwd=cwd)
File "/usr/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.9/subprocess.py", line 1823, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ''
I am not a python expert. But searching around in the code a little makes me feel that the subprocess.Popen interface has changed and the "objcopy" executable parameter is not forwarded into this call??? I also have added some prints to gcc_tools.py and the subprocces call that is built up there can be executed on the command line without any problems...
Hope someone can help me with this
Didi
The text was updated successfully, but these errors were encountered:
Hi all maybe someone can help me here. I tried to use puncover on a fresh debian 11 installation.
I installed puncover with
apt-get install pip
pip3 install puncover
When I try it with a simple little program, this is what I get (same result when setting --arm_tools_dir or --gcc_tools_base to the appropriate correct subdir (using xPacks arm-none-eabi for bare metal here):
dev@qemuarm:~/project_dir$ puncover --elf_file main.elf
DEPRECATED: argument --arm_tools_dir will be removed, use --gcc_tools_base instead.
parsing ELF at main.elf
Traceback (most recent call last):
File "/usr/local/bin/puncover", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.9/dist-packages/puncover/puncover.py", line 69, in main
builder.build_if_needed()
File "/usr/local/lib/python3.9/dist-packages/puncover/builders.py", line 32, in build_if_needed
self.build()
File "/usr/local/lib/python3.9/dist-packages/puncover/builders.py", line 22, in build
self.collector.parse_elf(self.get_elf_path())
File "/usr/local/lib/python3.9/dist-packages/puncover/collector.py", line 306, in parse_elf
self.parse_assembly_text("".join(self.gcc_tools.get_assembly_lines(elf_file)))
File "/usr/local/lib/python3.9/dist-packages/puncover/gcc_tools.py", line 28, in get_assembly_lines
return self.gcc_tool_lines('objdump', ['-dslw', os.path.basename(elf_file)], os.path.dirname(elf_file))
File "/usr/local/lib/python3.9/dist-packages/puncover/gcc_tools.py", line 24, in gcc_tool_lines
proc = subprocess.Popen([self.gcc_tool_path(name)] + args, stdout=subprocess.PIPE, cwd=cwd)
File "/usr/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.9/subprocess.py", line 1823, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ''
I am not a python expert. But searching around in the code a little makes me feel that the subprocess.Popen interface has changed and the "objcopy" executable parameter is not forwarded into this call??? I also have added some prints to gcc_tools.py and the subprocces call that is built up there can be executed on the command line without any problems...
Hope someone can help me with this
Didi
The text was updated successfully, but these errors were encountered: