Acknowledged
over 1 year ago

ERROR: Could not log function sizes of generated code.

When I changed from SDK 6.4.2 to 7.1.0 or 7.1.1 only one of my apps prints ONLY the following message with monkeybrains.  Basically impossible to debug and completely useless message, please add additional condition checking in the SDK to provide direction on possible issues.  I tried openjdk 17 and 11.

ERROR: Could not log function sizes of generated code.

  • This has been fixed in SDK 7.3.0

  • I sent code via email a month ago.  Was it received and issue replicated?

  • No additional output from the command.

    error.txt contents

    Exceptions: 1
    Could not log function sizes of generated code.

    com.garmin.monkeybrains.compiler2.CompilerException: Could not log function sizes of generated code.
    at com.garmin.monkeybrains.compiler2.project.AssemblerInputGenerator.logFunctionSizes(AssemblerInputGenera
    tor.java:140)
    at com.garmin.monkeybrains.compiler2.project.AssemblerInputGenerator.generateAssemblerInput(AssemblerInput
    Generator.java:295)
    at com.garmin.monkeybrains.compiler2.project.AssemblerInputGenerator.generateAssemblerInput(AssemblerInput
    Generator.java:215)
    at com.garmin.monkeybrains.compiler2.Compiler2.assembleProject(Compiler2.java:778)
    at com.garmin.monkeybrains.Monkeybrains.runCompiler2(Monkeybrains.java:1512)
    at com.garmin.monkeybrains.Monkeybrains.compileApplication(Monkeybrains.java:1475)
    at com.garmin.monkeybrains.Monkeybrains.run(Monkeybrains.java:2065)
    at com.garmin.monkeybrains.Monkeybrains.simpleMain(Monkeybrains.java:278)
    at com.garmin.monkeybrains.Monkeybrains.main(Monkeybrains.java:307)
    Compiler Errors: 1
    ERROR: fenix7: no viable alternative at input 'spushLONG'

  • Thank you for the follow-up! First, please try adding the '--debug-log-level 3' and '--debug-log-output <path-to-output-zip-file>' monkeybrains flags to your build command and see if that provides us with any more logging. Since you're willing to provide code, please send a zipped archive to [email protected] and mention my name and reference this thread in the body of the email.

  • The message does not occur in debug console, it appears in terminal window in response to the compile and run command

    java -Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar .Garmin/ConnectIQ/Sdks/connectiq-sdk-lin-7.1.1-2024-04-17-66d0159ae/bin/monkeybrains.jar -o bin/DSWatch.prg -f monkey.jungle -y developer_key -d legacyherocaptainmarvel_sim -w

    I change sdk from 7.1.1 to 6.4.2 and all works

    I do not see any other warnings or errors, this app has been in circulation for many years, only change was sdk.  I can go back and forth with sdk and pass and fail compile/run

    I can provide code.  Can you provide additional error checking?