sac2c issueshttps://gitlab.sac-home.org/sac-group/sac2c/-/issues2017-11-23T23:24:35Zhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2203revision 1622 by asv breaks stdlib2017-11-23T23:24:35ZBep Rintorevision 1622 by asv breaks stdlib| | |
| --- | --- |
| Bugzilla Link | [937](http://bugs.sac-home.org/show_bug.cgi?id=937) |
| Created on | Mar 20, 2012 14:57 |
| Resolution | WORKSFORME |
| Resolved on | Apr 21, 2012 19:17 |
| Version | svn |
| OS | Linux |
| Archite...| | |
| --- | --- |
| Bugzilla Link | [937](http://bugs.sac-home.org/show_bug.cgi?id=937) |
| Created on | Mar 20, 2012 14:57 |
| Resolution | WORKSFORME |
| Resolved on | Apr 21, 2012 19:17 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>After r 1622 by asv the stdlib no longer compiles by sac2c v1.00-beta:
cd modules/structures/lib/..; sac2c -v0 -g -O3 -linksetsize 0 ComplexArrayTransform.sac -o lib
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
ERROR: unknown user defined type `ComplexArrayTransform::complex'.
*** Compilation failed ***
*** Exit code 24 (Simplifying source code)
*** 41 Error(s), 0 Warning(s)
make[2]: *** [modules/structures/lib/libComplexArrayTransformTree.so] Error 24
make[1]: *** [fast] Error 2
make: *** [libz] Error 2</pre>BugZillaBugZillahttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2201stdlib fails to compile on a system without SDL22017-11-23T23:24:26ZJaroslav Sýkorastdlib fails to compile on a system without SDL2| | |
| --- | --- |
| Bugzilla Link | [933](http://bugs.sac-home.org/show_bug.cgi?id=933) |
| Created on | Mar 16, 2012 14:56 |
| Resolution | FIXED |
| Resolved on | Mar 16, 2012 15:24 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [933](http://bugs.sac-home.org/show_bug.cgi?id=933) |
| Created on | Mar 16, 2012 14:56 |
| Resolution | FIXED |
| Resolved on | Mar 16, 2012 15:24 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>Starting from r1609 the stdlib won't compile on a system without SDL2 installed. The configure process does not properly detect this situation.
Expected outcome: detect SDL2 presence in configure and enable it only iff it is available.
System: CentOS release 5.8 (Final)
sdl-config --version: 1.2.10
cd world/stdio/lib/..; sac2c -v0 -g -O3 -linksetsize 0 SDL2.sac -o lib
gcc: -ldl: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
gcc: -ldl: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
gcc: -ldl: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
gcc: -ldl: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
gcc: -ldl: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
gcc: -ldl: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
ar: src/SDL2/close.o: No such file or directory
ABORT: System failed to execute shell command
ABORT: ar cr lib/libSDL2Mod.a /tmp/SAC_87AUmA/fun*_nonpic.o
ABORT: /tmp/SAC_87AUmA/globals_nonpic.o src/SDL2/close.o src/SDL2/draw.o
ABORT: src/SDL2/extent.o src/SDL2/line.o src/SDL2/color.o src/SDL2/select.o
ABORT: src/SDL2/rect.o src/SDL2/pixel.o src/SDL2/window.o src/SDL2/resize.o
ABORT: src/SDL2/update.o src/SDL2/title.o src/SDL2/setup.o src/SDL2/sem.o
ABORT: src/SDL2/names.o src/SDL2/mouse.o src/SDL2/invert.o src/SDL2/init.o
ABORT: src/SDL2/event.o src/SDL2/display.o src/SDL2/data.o
ABORT: with exit code 1
*** Compilation failed ***
*** Exit code 372 (Creating binary code)
*** 1 Error(s), 0 Warning(s)
make[1]: *** [world/stdio/lib/libSDL2Tree.so] Error 116
make: *** [fast] Error 2</pre>Bep RintoBep Rintohttps://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>BugZillaBugZillahttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2198stdlib build dependencies are broken. Again2017-11-23T23:24:10ZRobert Berneckystdlib build dependencies are broken. Again| | |
| --- | --- |
| Bugzilla Link | [923](http://bugs.sac-home.org/show_bug.cgi?id=923) |
| Created on | Feb 23, 2012 20:46 |
| Resolution | WORKSFORME |
| Resolved on | Mar 10, 2012 10:43 |
| Version | svn |
| OS | Linux |
| Archite...| | |
| --- | --- |
| Bugzilla Link | [923](http://bugs.sac-home.org/show_bug.cgi?id=923) |
| Created on | Feb 23, 2012 20:46 |
| Resolution | WORKSFORME |
| Resolved on | Mar 10, 2012 10:43 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>Revision 1558 of stdlib build breaks with:
make -j6 mtfast
Running the above enough times cures the problem,
so it is a dependence problem.</pre>Sven-Bodo ScholzSven-Bodo Scholzhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2197new improved fast and complete PGM implementation2017-11-23T23:24:04ZBep Rintonew improved fast and complete PGM implementation| | |
| --- | --- |
| Bugzilla Link | [922](http://bugs.sac-home.org/show_bug.cgi?id=922) |
| Created on | Feb 23, 2012 15:28 |
| Resolution | FIXED |
| Resolved on | Mar 04, 2012 17:15 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [922](http://bugs.sac-home.org/show_bug.cgi?id=922) |
| Created on | Feb 23, 2012 15:28 |
| Resolution | FIXED |
| Resolved on | Mar 04, 2012 17:15 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
| Attachments | [SACfastPGM.tar](/uploads/95ee4d64f7166c206546427ed7069c29/SACfastPGM.tar) |
## Extended Description
<pre>Created an attachment (id=854)
Drop in replacement for SAC PGM
PGM is a simple but handy image file format.
The SAC provided PGM implementation has several drawbacks:
- it uses the Grey datastructure which is inefficient
and cumbersome to work with and has incomplete SAC support.
- it doesn't support PGM 16-bit pixels.
- it uses slow stdio routines to parse PGM files.
- due to a bug it is currently unusable.
Attached is a tar file which provides a drop in replacement for the SAC PGM.
The new fast PGM implementation supports the complete PGM spec,
is very fast even for large data files,
detects all invalid data conditions and simply works.
Details are in the source files.
An included test script tests most of the features.</pre>BugZillaBugZillahttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2196SAC needs getopt, implementation provided2017-11-23T23:23:58ZBep RintoSAC needs getopt, implementation provided| | |
| --- | --- |
| Bugzilla Link | [921](http://bugs.sac-home.org/show_bug.cgi?id=921) |
| Created on | Feb 23, 2012 10:30 |
| Resolution | FIXED |
| Resolved on | Mar 10, 2012 10:27 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [921](http://bugs.sac-home.org/show_bug.cgi?id=921) |
| Created on | Feb 23, 2012 10:30 |
| Resolution | FIXED |
| Resolved on | Mar 10, 2012 10:27 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
| Attachments | [SACgetopt.tar](/uploads/549b8c946f5369723ab2f4ee34bc3165/SACgetopt.tar) |
## Extended Description
The getopt library routine is a handy tool which is often
used to parse command line options and arguments
in a standardized way. See the getopt(3) manual page.
The fact that SAC heretofore lacked such a facility
made porting software from C to SAC more cumbersome and
errorprone than needed. Therefore the attached getopt
module was developed for SAC. It includes a test script.BugZillaBugZillahttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2195SACsprintf easily buffer-overflows and is not threadsafe2017-11-23T23:23:52ZBep RintoSACsprintf easily buffer-overflows and is not threadsafe| | |
| --- | --- |
| Bugzilla Link | [918](http://bugs.sac-home.org/show_bug.cgi?id=918) |
| Created on | Feb 22, 2012 13:08 |
| Resolution | FIXED |
| Resolved on | Mar 01, 2012 19:00 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [918](http://bugs.sac-home.org/show_bug.cgi?id=918) |
| Created on | Feb 22, 2012 13:08 |
| Resolution | FIXED |
| Resolved on | Mar 01, 2012 19:00 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
SACsprintf uses a small static buffer
and uses the unsafe function vsprintf.
This makes SAC yet another bufferoverflowable language.
For a minimum it should use a local buffer
(either on stack or malloced) and
it should use the safe function vnsprintf
which is in C99.
An alternative is to use vasprintf, which
dynamically allocates the destination buffer.Bep RintoBep Rintohttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2194fclose crashes2017-11-23T23:23:47ZBep Rintofclose crashes| | |
| --- | --- |
| Bugzilla Link | [915](http://bugs.sac-home.org/show_bug.cgi?id=915) |
| Created on | Feb 22, 2012 10:49 |
| Resolution | FIXED |
| Resolved on | Mar 01, 2012 19:01 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [915](http://bugs.sac-home.org/show_bug.cgi?id=915) |
| Created on | Feb 22, 2012 10:49 |
| Resolution | FIXED |
| Resolved on | Mar 01, 2012 19:01 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>There's a bug with fclose.c for
sac2c-1.00-17729-beta-linux-i386.tar.gz
It expects a two star pointer
while SAC only gives it a one.
Fix in stdlib/world/stdio/src/File/fclose.c:
// bug in SAC: void SACfclose(FILE **stream)
// fix is here below:
void SACfclose(FILE *stream)
{
...
}
Use this SAC file for testing stdio:
use File: { File, fopen, fclose, fseek, ftell, rewind };
use RuntimeError: { error };
use CommandLine: { argc, argv };
use SysErr: { fail };
import ScalarArith: all;
int main()
{
if (argc() < 2) {
error(1, "Need at least one file arg");
}
for (i = 1; i < argc(); ++i) {
name = argv(i);
err, fp = fopen( name, "r");
if (fail(err)) {
if ( SysErr::fail(err) == true) {
error( (:int)err, "Failed to open %s for reading", name);
}
} else {
fseek(fp, 0, 2);
size = ftell(fp);
rewind(fp);
fclose(fp);
}
}
return 0;
}</pre>Bep RintoBep Rintohttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2193SDLdisplay.sac has missing dependency in stdlib2017-11-23T23:23:41ZRobert BerneckySDLdisplay.sac has missing dependency in stdlib| | |
| --- | --- |
| Bugzilla Link | [900](http://bugs.sac-home.org/show_bug.cgi?id=900) |
| Created on | Jan 06, 2012 17:58 |
| Resolution | FIXED |
| Resolved on | Jul 18, 2012 09:04 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [900](http://bugs.sac-home.org/show_bug.cgi?id=900) |
| Created on | Jan 06, 2012 17:58 |
| Resolution | FIXED |
| Resolved on | Jul 18, 2012 09:04 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>cd world/stdio/lib/..; sac2c -v0 -g -O3 -linksetsize 0 -mt SDLdisplay.sac -o lib
ABORT: Cannot find library `libStructuresTree.so' for module `Structures'
*** Compilation failed ***
*** Exit code 15 (Running module system)
*** 1 Error(s), 0 Warning(s)
make[1]: *** [world/stdio/lib/libSDLdisplayTree.so] Error 15
This for Build #1557.</pre>Sven-Bodo ScholzSven-Bodo Scholzhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2192stdlib r1515 won't compile2017-11-23T23:23:36ZRoeland Doumastdlib r1515 won't compile| | |
| --- | --- |
| Bugzilla Link | [844](http://bugs.sac-home.org/show_bug.cgi?id=844) |
| Created on | Apr 28, 2011 13:28 |
| Resolution | WONTFIX |
| Resolved on | May 09, 2011 13:00 |
| Version | svn |
| OS | Linux |
| Architectu...| | |
| --- | --- |
| Bugzilla Link | [844](http://bugs.sac-home.org/show_bug.cgi?id=844) |
| Created on | Apr 28, 2011 13:28 |
| Resolution | WONTFIX |
| Resolved on | May 09, 2011 13:00 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>I did an svn up this morning and had to recompile sac2c and the stdlib. However my now the stdlib fails:
WARNING: dbug-maxdepth 400000 too low
WARNING: dbug-maxdepth 400000 too low
...
...
WARNING: dbug-maxdepth 400000 too low
WARNING: dbug-maxdepth 400000 too low
Killed
make[1]: *** [world/stdio/lib/libScalarIOTree.so] Error 137
make: *** [mtfast] Error 2
I just did a new checkout (so none of my, uncommitted, changes are to blame ;) ).
sac2c: r17388
stdlib: r1515</pre>Sven-Bodo ScholzSven-Bodo Scholzhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2191stdlib make dies with -j6 fast2017-11-23T23:23:31ZRobert Berneckystdlib make dies with -j6 fast| | |
| --- | --- |
| Bugzilla Link | [837](http://bugs.sac-home.org/show_bug.cgi?id=837) |
| Created on | Mar 16, 2011 19:31 |
| Resolution | FIXED |
| Resolved on | Jul 29, 2011 08:08 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [837](http://bugs.sac-home.org/show_bug.cgi?id=837) |
| Created on | Mar 16, 2011 19:31 |
| Resolution | FIXED |
| Resolved on | Jul 29, 2011 08:08 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>This from stdlib revision 1509, after: make clean; make -j6 fast:
cd modules/unibench/lib/..; sac2c -v0 -O3 -linksetsize 0 UnibenchStructures.sac -o lib
ABORT: Cannot find library `libStringArrayTree.so' for module `StringArray'
*** Compilation failed ***
*** Exit code 15 (Running module system)
*** 1 Error(s), 0 Warning(s)
make[1]: *** [modules/unibench/lib/libUnibenchStructuresTree.so] Error 15
make[1]: *** Waiting for unfinished jobs....
rm world/stdio/src/FibreIO/lex.FibreScan.c
make: *** [fast] Error 2
sac@rattler:~/sac/BASE/stdlib$ make -j6 fast
Running the make again makes it work OK, so there is a defect
in the dependencies for the stdlib make.</pre>Sven-Bodo ScholzSven-Bodo Scholzhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2190ArrayIO.sac has very broken show() function2017-11-23T23:23:25ZRobert BerneckyArrayIO.sac has very broken show() function| | |
| --- | --- |
| Bugzilla Link | [823](http://bugs.sac-home.org/show_bug.cgi?id=823) |
| Created on | Feb 11, 2011 16:43 |
| Resolution | FIXED |
| Resolved on | Feb 11, 2011 20:18 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [823](http://bugs.sac-home.org/show_bug.cgi?id=823) |
| Created on | Feb 11, 2011 16:43 |
| Resolution | FIXED |
| Resolved on | Feb 11, 2011 20:18 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>Recent masterrun failures, e.g., see below, demonstrate that
the show() function in ~/sac/BASE/stdlib/world/stdio/ArrayIO.sac
is sadly broken on non-scalars:
For example, consider:
xx = ([(2 == 3), (3 == 3)]); /* Boolean vector */
show(xx);
StdIO::print( xx);
show(toi(xx));
StdIO::print( toi(xx));
This produces:
a.out
0
Dimension: 1
Shape : < 2>
< 0 1 >
0
Dimension: 1
Shape : < 2>
< 0 1 >
Since the whole purpose of ArrayFormat is to produce
character arrays without the ugly programmer-"friendly"
decorations, this is not quite adequate. Note that
the vectors are displaying as scalars.
If we do: xx = reshape( [2,1], xx), both work
properly, but tensors are very wrong, too.
Revision 1060 of ArrayIO gives us this much prettier
output for show( reshape( [ 2,3,4], iota(30))):
a.out
0 1 2 3 4
5 6 7 8 9
10 11 12 13 14
15 16 17 18 19
20 21 22 23 24
25 26 27 28 29
Dimension: 3
Shape : < 2, 3, 5>
< 0 1 2 3 4 > < 5 6 7 8 9 > <10 11 12 13 14 >
<15 16 17 18 19 > <20 21 22 23 24 > <25 26 27 28 29 >
Revision -r1141 (CAJ) works fine. Revision -r1258 (SKD)
does not build. Revision -r1260 (SBS) is broken.</pre>BugZillaBugZillahttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2188SaC fails to compile a constant with-loop from demos2021-06-09T15:28:56ZArtem ShinkarovSaC fails to compile a constant with-loop from demosHere is a SaC program:
```
int sel (int[.] iv, int[*] a) { return _sel_VxA_ (iv, a); }
int main ()
{
a = with {
([1,1] <= idx <= [7,10] step [3,2]): 3;
}: genarray ([9,12], 0);
return a[[0,1]];
}
```
Here is the ...Here is a SaC program:
```
int sel (int[.] iv, int[*] a) { return _sel_VxA_ (iv, a); }
int main ()
{
a = with {
([1,1] <= idx <= [7,10] step [3,2]): 3;
}: genarray ([9,12], 0);
return a[[0,1]];
}
```
Here is the error message:
```
Internal compiler error
Assertion "!WLGRID_ISMODIFIED (grid1)" failed at /tmp/sac2c/src/libsac2c/wltransform/wltransform.c:5036 -- grid was modified
Please file a bug at: http://bugs.sac-home.org
```
The version of the compiler is:
```
sac2c 1.2-beta-BlackForest-611-g777dc
build-type: RELEASE
built-by: "tema" at 2017-11-21T12:36:57
```
Commit #777dcd63d92f7b902a12c1e94506da87077b0121
Any ideas?https://gitlab.sac-home.org/sac-group/sac2c/-/issues/2186nas parallel FT benchmark fails with -mt2017-11-19T22:05:48ZRoeland Doumanas parallel FT benchmark fails with -mt| | |
| --- | --- |
| Bugzilla Link | [803](http://bugs.sac-home.org/show_bug.cgi?id=803) |
| Created on | Dec 15, 2010 17:34 |
| Resolution | FIXED |
| Resolved on | Feb 17, 2011 09:38 |
| Version | unspecified |
| OS | Linux |
| Arch...| | |
| --- | --- |
| Bugzilla Link | [803](http://bugs.sac-home.org/show_bug.cgi?id=803) |
| Created on | Dec 15, 2010 17:34 |
| Resolution | FIXED |
| Resolved on | Feb 17, 2011 09:38 |
| Version | unspecified |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>Execution of the benchmark fails if it is compiled with -mt. When compiled without -mt execution is just fine.
It seems to be a problem with mt since the problem also occurs when running with -mt 1
Outputs:
./fft_cpx -mt 1
Dimension: 256 x 256 x 128, N-Iter: 6 Total Size: 8388608 Complex
.
Segmentation Fault (core dumped)
./fft_dbl -mt 256
Dimension: 256 x 256 x 128, N-Iter: 6 Total Size: 8388608 Complex
Segmentation Fault (core dumped)</pre>BugZillaBugZillahttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2185PPM module broken2017-11-19T22:05:42ZClemens GrelckPPM module broken| | |
| --- | --- |
| Bugzilla Link | [797](http://bugs.sac-home.org/show_bug.cgi?id=797) |
| Created on | Dec 10, 2010 16:51 |
| Resolution | FIXED |
| Resolved on | Dec 10, 2010 18:37 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [797](http://bugs.sac-home.org/show_bug.cgi?id=797) |
| Created on | Dec 10, 2010 16:51 |
| Resolution | FIXED |
| Resolved on | Dec 10, 2010 18:37 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
| Attachments | [flip_broken.sac](/uploads/6cb0783b5e5a2e8b29732be20aadf1ab/flip_broken.sac), [tiny.ppm](/uploads/6c15dc13e13ab470fe6ec022e3f9874c/tiny.ppm) |
## Extended Description
The PPM read/write images module is broken. The attached code is supposed to flip the image, but the ppm output is just garbage. The print statements though show that the SAC code is indeed correct.Carl JoslinCarl Joslinhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2183Fibre can not handle pipes2017-11-19T22:05:31ZCarl JoslinFibre can not handle pipes| | |
| --- | --- |
| Bugzilla Link | [752](http://bugs.sac-home.org/show_bug.cgi?id=752) |
| Created on | Sep 28, 2010 14:59 |
| Resolution | FIXED |
| Resolved on | Sep 28, 2010 17:30 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [752](http://bugs.sac-home.org/show_bug.cgi?id=752) |
| Created on | Sep 28, 2010 14:59 |
| Resolution | FIXED |
| Resolved on | Sep 28, 2010 17:30 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>Given a sac program that reads Fibre from stdin it will fail on the second fibre array if stdin is a pipe.
This works
./sacprog <fibre
This fails
cat fibre | sacprog</pre>Daniel RollsDaniel Rollshttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2182Fibre Parser can return garbage when switching between multiple files2017-11-19T22:05:26ZDaniel RollsFibre Parser can return garbage when switching between multiple files| | |
| --- | --- |
| Bugzilla Link | [745](http://bugs.sac-home.org/show_bug.cgi?id=745) |
| Created on | Sep 13, 2010 13:27 |
| Resolution | FIXED |
| Resolved on | Sep 21, 2010 01:20 |
| Version | svn |
| OS | All |
| Architecture |...| | |
| --- | --- |
| Bugzilla Link | [745](http://bugs.sac-home.org/show_bug.cgi?id=745) |
| Created on | Sep 13, 2010 13:27 |
| Resolution | FIXED |
| Resolved on | Sep 21, 2010 01:20 |
| Version | svn |
| OS | All |
| Architecture | PC |
## Extended Description
<pre>The Fibre parser in the standard library is non-reentrant. This means we shouldn't be surprised if FibreScan* calls ever give the wrong values when reading from multiple files. The lexer potentially caches data read ahead of the last FibreScan call which means the next call may incorrectly return data cached during the last call.
Switching to a reentrant parser should fix this.
http://www.usualcoding.eu/post/2007/09/03/Building-a-reentrant-parser-in-C-with-Flex/Bison</pre>Daniel RollsDaniel Rollshttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2181configure should check for the existence of bison and complain if it is missing2017-11-19T22:05:20ZDaniel Rollsconfigure should check for the existence of bison and complain if it is missing| | |
| --- | --- |
| Bugzilla Link | [742](http://bugs.sac-home.org/show_bug.cgi?id=742) |
| Created on | Sep 08, 2010 17:09 |
| Resolution | FIXED |
| Resolved on | Sep 08, 2010 17:58 |
| Version | svn |
| OS | All |
| Architecture |...| | |
| --- | --- |
| Bugzilla Link | [742](http://bugs.sac-home.org/show_bug.cgi?id=742) |
| Created on | Sep 08, 2010 17:09 |
| Resolution | FIXED |
| Resolved on | Sep 08, 2010 17:58 |
| Version | svn |
| OS | All |
| Architecture | PC |
## Extended Description
The stdlib configure script should check for the existence of bison and complain if it is missing.Daniel RollsDaniel Rollshttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2180imshow broken in stdlib2017-11-19T22:05:15ZDaniel Rollsimshow broken in stdlib| | |
| --- | --- |
| Bugzilla Link | [741](http://bugs.sac-home.org/show_bug.cgi?id=741) |
| Created on | Sep 06, 2010 18:13 |
| Resolution | WORKSFORME |
| Resolved on | Sep 26, 2015 17:26 |
| Version | svn |
| OS | All |
| Architect...| | |
| --- | --- |
| Bugzilla Link | [741](http://bugs.sac-home.org/show_bug.cgi?id=741) |
| Created on | Sep 06, 2010 18:13 |
| Resolution | WORKSFORME |
| Resolved on | Sep 26, 2015 17:26 |
| Version | svn |
| OS | All |
| Architecture | PC |
## Extended Description
<pre>An mt stdlib build with compiler 16923 and stdlib 1399 (stdlib head) gives the error below. The source file in question has changed recently.
modules/structures/src/SimpleImage/imshow.c:6:17: error: png.h: No such file or directory
modules/structures/src/SimpleImage/imshow.c: In function ‘imshow’:
modules/structures/src/SimpleImage/imshow.c:13: error: ‘png_structp’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:13: error: (Each undeclared identifier is reported only once
modules/structures/src/SimpleImage/imshow.c:13: error: for each function it appears in.)
modules/structures/src/SimpleImage/imshow.c:13: error: expected ‘;’ before ‘png_ptr’
modules/structures/src/SimpleImage/imshow.c:14: error: ‘png_infop’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:14: error: expected ‘;’ before ‘info_ptr’
modules/structures/src/SimpleImage/imshow.c:15: error: ‘png_bytep’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:15: error: ‘row_pointers’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:16: error: expected ‘;’ before ‘img_data’
modules/structures/src/SimpleImage/imshow.c:17: error: ‘png_int_32’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:17: error: ‘bptr’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:28: error: ‘png_ptr’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:28: warning: implicit declaration of function ‘png_create_write_struct’
modules/structures/src/SimpleImage/imshow.c:28: error: ‘PNG_LIBPNG_VER_STRING’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:33: error: ‘info_ptr’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:33: warning: implicit declaration of function ‘png_create_info_struct’
modules/structures/src/SimpleImage/imshow.c:35: warning: implicit declaration of function ‘png_destroy_write_struct’
modules/structures/src/SimpleImage/imshow.c:36: error: ‘png_infopp’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:43: warning: implicit declaration of function ‘png_set_IHDR’
modules/structures/src/SimpleImage/imshow.c:47: error: ‘PNG_COLOR_TYPE_RGB’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:48: error: ‘PNG_INTERLACE_NONE’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:49: error: ‘PNG_COMPRESSION_TYPE_DEFAULT’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:50: error: ‘PNG_FILTER_TYPE_DEFAULT’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:53: error: ‘img_data’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:61: error: expected expression before ‘)’ token
modules/structures/src/SimpleImage/imshow.c:67: error: expected ‘)’ before ‘ar’
modules/structures/src/SimpleImage/imshow.c:68: error: expected ‘)’ before ‘ar’
modules/structures/src/SimpleImage/imshow.c:69: error: expected ‘)’ before ‘ar’
modules/structures/src/SimpleImage/imshow.c:74: warning: implicit declaration of function ‘png_set_rows’
modules/structures/src/SimpleImage/imshow.c:79: warning: implicit declaration of function ‘png_init_io’
modules/structures/src/SimpleImage/imshow.c:80: warning: implicit declaration of function ‘png_set_filler’
modules/structures/src/SimpleImage/imshow.c:80: error: ‘PNG_FILLER_BEFORE’ undeclared (first use in this function)
modules/structures/src/SimpleImage/imshow.c:81: warning: implicit declaration of function ‘png_write_png’
modules/structures/src/SimpleImage/imshow.c:81: error: ‘PNG_TRANSFORM_STRIP_FILLER’ undeclared (first use in this function)</pre>Daniel RollsDaniel Rolls