EspArduinoExceptionDecoder icon indicating copy to clipboard operation
EspArduinoExceptionDecoder copied to clipboard

Fails miserably with addr2line not being found

Open v2xsami opened this issue 7 years ago • 7 comments
trafficstars

The tool fails miserably and prints the following error:

ERROR: addr2line not found (/home/user/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-addr2line) ERROR: Parser not complete

v2xsami avatar Oct 13 '18 08:10 v2xsami

I got the same error, but was able to make some headway by adding the -s flag.

I do wish the example in the readme (without -s) worked properly though, as I'm not sure what I'm missing this way.

PProvost avatar Mar 05 '19 20:03 PProvost

Tried it, and also the same error: addr2line not found. The path is correct and the file is present, so, why this error?

The -s option is giving a bit more info, but not the info I'm looking for. Please fix it.

mijnmodelbaan avatar Feb 04 '20 15:02 mijnmodelbaan

Tried it, and also the same error: addr2line not found. The path is correct and the file is present, so, why this error?

The -s option is giving a bit more info, but not the info I'm looking for. Please fix it. "bin/xtensa-" + PLATFORMS[args.platform] + "-elf-addr2line") ==> "bin/xtensa-" + PLATFORMS[args.platform] + "-elf-addr2line.exe")

seems the author only tested on Linux

thuongshoo avatar Feb 14 '20 08:02 thuongshoo

Wow, I don't know what makes me sadder.

  • The fact the tool is not specifying what you should point using the -t argument.
  • The fact no one in 2 years has helped you guys on such a silly mistake.
  • The fact non of you payed proper attention at the README.md file.

If you are facing the same issue, the solution is simple! The CLI expect you to pass the tool folder.

The tool fails miserably and prints the following error:

ERROR: addr2line not found (/home/user/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-addr2line) ERROR: Parser not complete

In the post above, he is passing the addr2line file, a.k.a :

/home/user/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-addr2line)

Change the Path to the toolchain folder and it will work:

/home/user/.platformio/packages/toolchain-xtensa

there you go, fixed. 2 years later.

Nathan-ma avatar Jun 02 '22 16:06 Nathan-ma

This may also fail if the path to your toolchain is not

~/.platformio/packages/toolchain-xtensa-esp32

but

~/.platformio/packages/toolchain-xtensa-esp32s3

Because there the path to the file is

.platformio/packages/toolchain-xtensa-esp32s3/bin/xtensa-esp32s3-elf-addr2line

Note the additional s3 in the file name.

FileNotFoundError: [Errno 2] No such file or directory: '~/.platformio/packages/toolchain-xtensa-esp32s3/bin/xtensa-esp32-elf-addr2line'

dhebbeker avatar Dec 25 '23 13:12 dhebbeker

I'm very sorry for the lack of support - but this tool was mailny built to serve my needs of the time. Sadly I have noch much spare time for tinkering these days due to job and family.

If you have helpful changes, please consider open a PR and I will do my best to review and integrate. I'm also happy to refer to a new location in the README if someone wants to pick-up (fork) this and maintain it.

janLo avatar Dec 31 '23 13:12 janLo

Thank you janLo for implementing and publishing this tool! Also for clarifying the current plans for development.

dhebbeker avatar Dec 31 '23 15:12 dhebbeker