← index #17034Issue #2517
Related · medium · value 0.219
QUERY · ISSUE

FreezeError("unable to freeze code with relocations") with frozen code

openby bhcuong2008opened 2025-03-29updated 2025-04-15
bug

Port, board and/or hardware

ESP32

MicroPython version

Hi,

I'd like to include frozen files from emlearn, https://github.com/emlearn/emlearn-micropython/tree/gh-pages/builds/0.7.0/xtensawin_6.3, to my build, but it reports FreezeError("unable to freeze code with relocations")

My command in manifest file is: freeze_mpy("$(PORT_DIR)/modules_mpy/emlearn")

The frozen codes from emlearn are compatible with MicroPython 1.24.
My custom build based on MicroPython 1.24.1, ESP32S3

Reproduction

  1. Add command to the main manifest file: freeze_mpy("$(PORT_DIR)/modules_mpy/emlearn")
  2. Copy all files .mpy from the link https://github.com/emlearn/emlearn-micropython/tree/gh-pages/builds/0.7.0/xtensawin_6.3 to directory $(PORT_DIR)/modules_mpy/emlearn/
  3. Then build the port.

Expected behaviour

Successfully built frozen code to MicroPython firmware.

Observed behaviour

FreezeError("unable to freeze code with relocations")

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

Unable to freeze modules for PyBoard

closedby kamikazeopened 2016-10-15updated 2016-10-20

I've added modules dir with files to freeze, launched make command... and there is nothing frozen.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied