platformio / platform-linux_arm

Linux ARM: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/linux_arm
Apache License 2.0
19 stars 25 forks source link

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

Open franzbischoff opened 2 years ago

franzbischoff commented 2 years ago

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.