sac2c issueshttps://gitlab.sac-home.org/sac-group/sac2c/-/issues2022-05-20T13:02:16Zhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/1213When RTSPEC is off, unable to compile Rand.sac from STDLIB2022-05-20T13:02:16ZHans-Nikolai ViessmannWhen RTSPEC is off, unable to compile Rand.sac from STDLIB| | |
| --- | --- |
| Bugzilla Link | [1191](http://bugs.sac-home.org/show_bug.cgi?id=1191) |
| Created on | Apr 21, 2017 18:21 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>Hi all,
As part of ...| | |
| --- | --- |
| Bugzilla Link | [1191](http://bugs.sac-home.org/show_bug.cgi?id=1191) |
| Created on | Apr 21, 2017 18:21 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>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</pre>Clemens GrelckClemens Grelck