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/2205Make selects SDL sources despite SDL not being available2017-11-23T23:24:44ZMiguel Sousa DiogoMake selects SDL sources despite SDL not being available| | |
| --- | --- |
| Bugzilla Link | [945](http://bugs.sac-home.org/show_bug.cgi?id=945) |
| Created on | Apr 10, 2012 16:29 |
| Resolution | FIXED |
| Resolved on | Jun 20, 2012 13:18 |
| Version | svn |
| OS | All |
| Architecture |...| | |
| --- | --- |
| Bugzilla Link | [945](http://bugs.sac-home.org/show_bug.cgi?id=945) |
| Created on | Apr 10, 2012 16:29 |
| Resolution | FIXED |
| Resolved on | Jun 20, 2012 13:18 |
| Version | svn |
| OS | All |
| Architecture | PC |
| Attachments | [Terminal_Saved_Output.txt](/uploads/22baf22b100fe341fa6a061650d09e70/Terminal_Saved_Output.txt) |
## Extended Description
I'm trying to compile the SaC stdlib in a system without SDL. The configure script correctly figures out that SDL is not installed, and make displays a warning:
"Skipping BMP, SDLisplay and SDL2 because libSDL was not found"
Despite this, make selects several C files in world/stdio/src/SDL2/ and world/stdio/src/BMP for compilation, which obviously fails.
I attached some console output to illustrate this.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 Guohttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2200warning in sprintf.c2017-11-23T23:24:20ZSven-Bodo Scholzwarning in sprintf.c| | |
| --- | --- |
| Bugzilla Link | [931](http://bugs.sac-home.org/show_bug.cgi?id=931) |
| Created on | Mar 09, 2012 14:40 |
| Resolution | FIXED |
| Resolved on | Mar 10, 2012 10:25 |
| Version | svn |
| OS | All |
| Architecture |...| | |
| --- | --- |
| Bugzilla Link | [931](http://bugs.sac-home.org/show_bug.cgi?id=931) |
| Created on | Mar 09, 2012 14:40 |
| Resolution | FIXED |
| Resolved on | Mar 10, 2012 10:25 |
| Version | svn |
| OS | All |
| Architecture | PC |
## Extended Description
The latest masterrun shows:
(sac2c: Checked out revision 17749.
stdlib: Checked out revision 1598.
sac: Checked out revision 1633.)
modules/structures/src/String/sprintf.c:16: warning: ‘new’ may be used uninitialized in this functionBugZillaBugZillahttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2199png2array does not compile2017-11-23T23:24:15ZSven-Bodo Scholzpng2array does not compile| | |
| --- | --- |
| Bugzilla Link | [930](http://bugs.sac-home.org/show_bug.cgi?id=930) |
| Created on | Mar 09, 2012 14:38 |
| Resolution | FIXED |
| Resolved on | Mar 09, 2012 15:13 |
| Version | svn |
| OS | All |
| Architecture |...| | |
| --- | --- |
| Bugzilla Link | [930](http://bugs.sac-home.org/show_bug.cgi?id=930) |
| Created on | Mar 09, 2012 14:38 |
| Resolution | FIXED |
| Resolved on | Mar 09, 2012 15:13 |
| Version | svn |
| OS | All |
| Architecture | PC |
## Extended Description
<pre>The lates masterrun
(
sac2c: Checked out revision 17749.
stdlib: Checked out revision 1598.
sac: Checked out revision 1633.
)
shows:
world/stdio/src/PNG/png2array.c: In function ‘SAC_PNG_png2array’:
world/stdio/src/PNG/png2array.c:65: error: ‘PNG_TRANSFORM_GRAY_TO_RGB’ undeclared (first use in this function)
world/stdio/src/PNG/png2array.c:65: error: (Each undeclared identifier is reported only once
world/stdio/src/PNG/png2array.c:65: error: for each function it appears in.)
make[5]: *** [world/stdio/src/PNG/png2array.o] Error 1</pre>BugZillaBugZilla