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