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

Can't use Platform.io Inspection: [sizedata] AssertionError #15

Open
franzbischoff opened this issue Nov 11, 2021 · 0 comments
Open

Can't use Platform.io Inspection: [sizedata] AssertionError #15

franzbischoff opened this issue Nov 11, 2021 · 0 comments

Comments

@franzbischoff
Copy link

Hello,

This may be related with this thread, I'm not sure, since I'm using the toolchain-sdcc but the raspberry gcc, and linux_arm platform.

The problem is the same thought:

PIO Core Call Error: "Processing raspi2b (platform: linux_arm; board: raspberrypi_2b)
--------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/linux_arm/raspberrypi_2b.html
PLATFORM: Linux ARM (1.5.1) > Raspberry Pi 2 Model B
HARDWARE: BCM2836 900MHz, 1GB RAM, 1GB Flash
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain+, Compatibility ~ strict
Found 1 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Mpx> (/home/ubuntu/workspaces/false.alarm/lib/Mpx)
Building in debug mode
Retrieved `build/raspi2b/src/main.o' from cache
Retrieved `build/raspi2b/libadc/Mpx/Mpx.o' from cache
Retrieved `build/raspi2b/libadc/libMpx.a' from cache
Retrieved `build/raspi2b/program' from cache
MethodWrapper([\"sizedata\"], [\"build/raspi2b/program\"])

*** [sizedata] AssertionError : 
Traceback (most recent call last):
 File \"/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.2.0/SCons/Action.py\", line 1279, in execute
 result = self.execfunction(target=target, source=rsources, env=env)
 File \"/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.2.0/SCons/Util.py\", line 748, in __call__
 return self.method(*nargs, **kwargs)
 File \"/home/ubuntu/.platformio/penv/lib/python3.9/site-packages/platformio/builder/tools/piosize.py\", line 224, in DumpSizeData
 for symbol in _collect_symbols_info(env, elffile, elf_path, sections):
 File \"/home/ubuntu/.platformio/penv/lib/python3.9/site-packages/platformio/builder/tools/piosize.py\", line 159, in _collect_symbols_info
 symbol_locations = _get_symbol_locations(env, elf_path, symbol_addrs)
 File \"/home/ubuntu/.platformio/penv/lib/python3.9/site-packages/platformio/builder/tools/piosize.py\", line 56, in _get_symbol_locations
 assert len(addrs) == len(locations)
AssertionError
========================== [FAILED] Took 4.09 seconds ==========================
Environment Status Duration
------------- -------- ------------
raspi2b FAILED 00:00:04.086
==================== 1 failed, 0 succeeded in 00:00:04.086 ===================="

It seems that on piosize.py, the function _get_symbols_locations is not receiving the proper debug symbols.

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

1 participant