sac2c issueshttps://gitlab.sac-home.org/sac-group/sac2c/-/issues2017-11-23T23:25:17Zhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2212stdlib's modules {SDL,SDL2} use outdated SDL1.22017-11-23T23:25:17ZRaphael 'kena' Possstdlib's modules {SDL,SDL2} use outdated SDL1.2| | |
| --- | --- |
| Bugzilla Link | [1168](http://bugs.sac-home.org/show_bug.cgi?id=1168) |
| Created on | Nov 03, 2015 17:13 |
| Version | svn |
| OS | All |
| Architecture | PC |
## Extended Description
SDL 1.2 is seriously depre...| | |
| --- | --- |
| Bugzilla Link | [1168](http://bugs.sac-home.org/show_bug.cgi?id=1168) |
| Created on | Nov 03, 2015 17:13 |
| Version | svn |
| OS | All |
| Architecture | PC |
## Extended Description
SDL 1.2 is seriously deprecated and simply does not work on a number of modern platforms. To ensure that SAC's SDL modules continue to exist/work, the code should be adapted to use the SDL 2.x APIs.BugZillaBugZillahttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2204Printf crashes nvcc on CUDA targets2017-11-23T23:24:38ZMiguel Sousa DiogoPrintf crashes nvcc on CUDA targets| | |
| --- | --- |
| Bugzilla Link | [941](http://bugs.sac-home.org/show_bug.cgi?id=941) |
| Created on | Mar 27, 2012 15:21 |
| Version | svn |
| OS | All |
| Architecture | PC |
## Extended Description
<pre>Using the printf functi...| | |
| --- | --- |
| Bugzilla Link | [941](http://bugs.sac-home.org/show_bug.cgi?id=941) |
| Created on | Mar 27, 2012 15:21 |
| Version | svn |
| OS | All |
| Architecture | PC |
## Extended Description
<pre>Using the printf function and compiling SaC for CUDA generates invalid CUDA code, which crashes the nvcc compiler. A simple hello-world program is enough to cause this crash:
----------------------------
$ sac2c -target cuda world.sac
...
** 22: Creating binary code ...
**** Handling dependencies ...
**** Invoking C compiler ...
a.out.cu(204): error: more than one instance of overloaded function "printf" has "C" linkage
a.out.cu(685): warning: variable "SACp_tcp_924__emal_696__flat_1__shp0" was set but never used
a.out.cu(686): warning: variable "SACp_tcp_924__emal_696__flat_1__sz" was set but never used
a.out.cu(687): warning: variable "SACp_tcp_924__emal_696__flat_1__dim" was declared but never referenced
1 error detected in the compilation of "/tmp/tmpxft_00009db2_00000000-4_a.out.cpp1.ii".
ABORT: System failed to execute shell command
...
with exit code 2
*** Compilation failed ***
*** Exit code 373 (Creating binary code)
*** 1 Error(s), 4 Warning(s)
----------------------------
Contents of world.sac:
----------------------------
use StdIO: all;
use Array: all;
int main() {
printf( "Hello World!\n");
return(0); }
----------------------------
Using sac2c from svn, nvcc version 4.1, and gcc version 4.5.3.</pre>Jing GuoJing Guo