This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CODECOMPOSER: Unrecognized Object File from Library

Part Number: CODECOMPOSER

Tool/software:

I am trying to work with the XKCP library for the use of the cSHAKE algorithm and I am having difficulty as I get the following error: "{
    "resource": "file:///c%3A/Users/tyler/workspace_ccstheia/BoardTesting",
    "owner": "ccs-client",
    "severity": 1,
    "message": " #10006-D: member \"SP800-185.o\" of archive \"C:/Users/tyler/workspace_ccstheia/BoardTesting/keccak_generic32/libXKCP.a\" is not a recognized object file",
    "startLineNumber": 0,
    "startColumn": 0,
    "endLineNumber": 0,
    "endColumn": 0
}"

cSHAKE is prototyped in the SP800.185.h file, which I have had no trouble getting CCS to recognize, but compilation always fails with this error.

Any indication of what I might be doing wrong would be appreciated, and I can provide more information if it is necessary.

  • You don't say which compiler you use.  For now, I presume it is the Arm compiler from TI based on LLVM/Clang, or tiarmclang for short.

    The most likely explanation is that this library is not built for Arm.  Extract the object file from the library with a command similar to ...

    tiarmar -x libXKCP.a SP800-185.o

    Then inspect it with a command similar to ...

    tiarmobjdump --all-headers SP800-185.o

    What do you see?

    Thanks and regards,

    -George