Linker error (M7 Bad Library Format)

Hello all,

When building my application .o file in MicroEJ SDK, I had the following error:
linkerError

When retrying, I then encountered this error:

=============== [ Initialization Stage ] ===============
=============== [ Converting fonts ] ===============
=============== [ Converting images ] ===============
=============== [ Launching SOAR ] ===============
=============== [ Launching Link ] ===============
2 : LINKER ERROR [xxxxxxxxxxxMain.o]

FAIL
java.lang.OutOfMemoryError: GC overhead limit exceeded

Note: the Link stage took very long, before failing.

I did not have this issue before, do you have any idea?

Thank you!

Regards,
Alder Oak

Hello,

In the first screenshot it seems that the object file could not be read (or is corrupted).
In the second trace, it seems that there is not enough memory for the JVM to run the MicroEJ SOAR/Linker.

Please try to add to your launch configuration the following VM argument (in JRE Tab) to increase the Java heap size to 2GB:

-Xmx2048M

–Frédéric

1 Like