Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown Type Name ‘CFE_TBL_BufferSelect_Enum_t’ #2628

Open
arielswalker opened this issue Jan 14, 2025 · 0 comments
Open

Unknown Type Name ‘CFE_TBL_BufferSelect_Enum_t’ #2628

arielswalker opened this issue Jan 14, 2025 · 0 comments

Comments

@arielswalker
Copy link

Describe the bug
SC is failing when building the app target due to unknown type name as seen here: https://github.com/arielswalker/SC/actions/runs/12756981276.

/home/runner/work/SC/SC/cfe/modules/tbl/config/default_cfe_tbl_msgdefs.h:57:5: error: unknown type name ‘CFE_TBL_BufferSelect_Enum_t’
   57 |     CFE_TBL_BufferSelect_Enum_t ActiveTableFlag;       /**< \brief #CFE_TBL_BufferSelect_INACTIVE=Inactive Table,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/work/SC/SC/cfe/modules/tbl/config/default_cfe_tbl_msgdefs.h:78:5: error: unknown type name ‘CFE_TBL_BufferSelect_Enum_t’
   78 |     CFE_TBL_BufferSelect_Enum_t ActiveTableFlag;       /**< \brief #CFE_TBL_BufferSelect_INACTIVE=Inactive Table,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [apps/sc/unit-test/CMakeFiles/coverage-sc_internal-stubs.dir/build.make:121: apps/sc/unit-test/CMakeFiles/coverage-sc_internal-stubs.dir/stubs/sc_cmds_stubs.c.o] Error 1

Due to this PR: #2459

To Reproduce
Follow steps in https://github.com/nasa/cFS/blob/main/.github/workflows/unit-test-coverage.yml

Expected behavior
SC can build successfully in the Run unit test and coverage workflow.

Code snips
CFE_TBL_BufferSelect_Enum_t is defined in

typedef uint16 CFE_TBL_BufferSelect_Enum_t;
which is used in
CFE_TBL_BufferSelect_Enum_t ActiveTableFlag; /**< \brief #CFE_TBL_BufferSelect_INACTIVE=Inactive Table,
The default_cfe_tbl_msgdefs.h file does not define default_cfe_tbl_extern_typedefs.h.

System observed on:
GitHub workflows.

Additional context
Add #include "cfe_tbl_extern_typedefs.h" in modules/tbl/config/default_cfe_tbl_msgdefs.h.

Reporter Info
Ariel Walker, MCSG TECH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant