Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 403
    • Issues 403
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1213
Closed
Open
Created Apr 21, 2017 by Hans-Nikolai Viessmann@hansOwner

When RTSPEC is off, unable to compile Rand.sac from STDLIB

Bugzilla Link 1191
Created on Apr 21, 2017 18:21
Version svn
OS Linux
Architecture PC

Extended Description

Hi all,
As part of the package building stuff, I've encountered a minor problem
with the RTSPEC stuff. In essence, if we disable the compiling of RTSPEC
into the compiler and then try to compile Rand.sac from the stdlib, we
get the following errors:
/tmp/SAC_grBAYc/fun1.c: In function ‘SACwf_Rand__random__i_S__d_S__d_S’:
/tmp/SAC_grBAYc/fun1.c:240: warning: implicit declaration of function ‘SAC_WE_DECL_REG_FLAG’
/tmp/SAC_grBAYc/fun1.c:241: error: expected ‘;’ before ‘SAC_WE_DECL_REG_OBJ’
/tmp/SAC_grBAYc/fun1.c:284: warning: implicit declaration of function ‘SAC_WE_FUN_DEF_END2’
/tmp/SAC_grBAYc/fun1.c:294: error: expected ‘;’ before ‘void’
/tmp/SAC_grBAYc/fun1.c:2098: error: expected declaration or statement at end of input
These macros are defined within runtime/rtspec_h/rtspec.h within a
ifdef/endif of SAC_DO_RTSPEC.
These macros are added to the generated code as part of 
libsac2c/codegen/icm2c_rtspec.c. I would think that the codegen/ICMs
would be omitted from the compiler if RTSPEC is disabled. This seems
not to be case.
Hans
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking