Skip to content

Build Errors and Fixes for successful compilation #1

@Pranjali-Innominds

Description

@Pranjali-Innominds

Hello,

I encountered few build errors while compiling the Audio Reach Engine project. After fixing the issues and making the necessary changes, the build process completed successfully. Below are the details of the errors and the corresponding fixes.

Error 1:
Build Error in ar_guids.h Due to Misformatted Comment.
Encountered the following error during the build:

error: expected ';' after top-level declarator in ar_guids.h at line 25

Fix: Change

  • GUID owner is Qualcomm.
    to

/* GUID owner is Qualcomm. */
This resolves the issue.

Error 2:
Build Error: Too Few Arguments in AR_MSG Macro
Encountered the following error during the build:

error: too few arguments to function call, expected at least 6, have 5

Fix: Updated ar_msg.h at line no 115 to pass the missing argument to ar_log():

  • ar_log( xx_ss_mask, msg_tag, filename, line_no, xx_fmt, ##VA_ARGS);
  • ar_log( xx_ss_mask, msg_tag, filename, FUNCTION, line_no, xx_fmt, ##VA_ARGS);
    This resolves the issue.

Error 3:
Build Error: Missing Prototype for posal_memorymap_global_unmap_all
Encountered the following error during the build:

error: passing arguments to 'posal_memorymap_global_unmap_all' without a prototype is deprecated in all versions of C and is not supported in C2x

Fix: Updated the function prototype in posal_memorymap.h:

  • void posal_memorymap_global_unmap_all();
  • void posal_memorymap_global_unmap_all(int param);
    This resolves the issue.

Hope this helps anyone facing similar issues!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions