Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails miserably with addr2line not being found #6

Open
v2xsami opened this issue Oct 13, 2018 · 7 comments
Open

Fails miserably with addr2line not being found #6

v2xsami opened this issue Oct 13, 2018 · 7 comments

Comments

@v2xsami
Copy link

v2xsami commented Oct 13, 2018

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

@PProvost
Copy link

PProvost commented Mar 5, 2019

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.

@mijnmodelbaan
Copy link

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.

@thuongshoo
Copy link

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

@Nathan-ma
Copy link

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.

@dhebbeker
Copy link

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'

@janLo
Copy link
Owner

janLo commented Dec 31, 2023

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.

@dhebbeker
Copy link

dhebbeker commented Dec 31, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants