Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Linker Input Query

46 views
Skip to first unread message

David Thomas

unread,
Jul 15, 2024, 2:43:49 AM7/15/24
to ThrowTheSwitch Forums
Hello,

Got a (hopefully) quick query with using the 1.0.0 rc. I'm using IAR toolchain (for RX).

I'm able to run my own defined set of tests needed fine *if* I hardcode my object file locations in the Yaml, but using - '"${1}"' gives me:

Linking ALARM_UnitTests.out...
EXCEPTION: ShellExecutionException ==> 'Iar Test Linker' (ilinkrx) terminated with exit code [3] and output >> "Fatal error[Ms007]: could not open file "build/test/out/ALARM_UnitTests/ALARM_U
          nitTests.o build/test/out/ALARM_UnitTests/ALARM_execute.o build/test/
          out/ALARM_UnitTests/ALARM_UnitTests_runner.o build/test/out/ALARM_Uni
          tTests/unity.o build/test/out/ALARM_UnitTests/cmock.o"
            Directories searched:
              C:\Data\Projects\Analytical\X\X\00_Trunk\ALARM
                      \Test\testingv1
Fatal error detected, aborting."
Ceedling could not complete operations because of errors

Putting this (example) for all the object files in my linker command is also fine and tests run successfully:
      - build\test\out\ALARM_UnitTests\unity.o
 
Reading the above implies it's taking the entire output file list as a single argument - I don't know if this is a ceedling issue, toolchain issue or a user error :)

Any guidance on how to further test this out?

Thanks,
David
 
  

David Good

unread,
Jul 25, 2024, 4:51:12 PM7/25/24
to throwth...@googlegroups.com
Hi David !

This message was in the gmail spam folder , so it might have been missed by others as well . I don't know anything about IAR , but perhaps my replying to your message will cause others to see it properly .

--David

--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/a89add88-f66d-4f60-92d7-42ac0ac328afn%40googlegroups.com.

David Thomas

unread,
Jul 29, 2024, 10:32:26 AM7/29/24
to ThrowTheSwitch Forums
Hi David,

Appreciate it - don't know if anyone in the know has looked at it, just would like to know if I've done something annoying or not.

David

Mike Karlesky

unread,
Jul 29, 2024, 11:22:44 AM7/29/24
to throwth...@googlegroups.com

David,

${1} is indeed just a list of object files that becomes a space-separated string of those file names when Ceedling expands it into a linker command line.

It's certainly possible there's a Ceedling bug, but this is all working fine for gcc. I'd guess there's work to be done on what the IAR linker expects at the command line. It might be that the list of object files is in the wrong place, the object files need to be decorated somehow (additional flags), or something of the sort. If so, it's just a matter of tweaking your IAR linker tool definition or possibly adding a bit of Ruby code in it to rearrange things to match what the linker expects.

First, can you crank up the logging with --verbosity=obnoxious (or -v 4) and provide an example of the linker command line for one of your tests?

Second, can you point to or copy IAR's documentation for its linker command line?

Michael

David Thomas

unread,
Jul 30, 2024, 4:22:39 AM7/30/24
to ThrowTheSwitch Forums
Hello Michael,

Can thankfully close this one due to my idiocy - for some reason there was an extra " around ${1}, which read ' "${1}" ', so the IAR Linker did exactly what it's meant to do.

Thanks again for getting back to me and now I'll run away sheepishly :)

David
Reply all
Reply to author
Forward
0 new messages