sac2c issueshttps://gitlab.sac-home.org/sac-group/sac2c/-/issues2021-05-27T12:58:37Zhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2206stdlib make crashes if it can't find png.2021-05-27T12:58:37ZRobert Berneckystdlib make crashes if it can't find png.| | |
| --- | --- |
| Bugzilla Link | [1054](http://bugs.sac-home.org/show_bug.cgi?id=1054) |
| Created on | Mar 29, 2013 20:13 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>As of 2013-03-29, s...| | |
| --- | --- |
| Bugzilla Link | [1054](http://bugs.sac-home.org/show_bug.cgi?id=1054) |
| Created on | Mar 29, 2013 20:13 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>As of 2013-03-29, stdlib make crashes if the system it is running
on does not contain PNG, or if make can't find ping.h.
Which, in my case, it can't.
pngtools was installed by Ubuntu "apt-get install pngtools".
Copying png.h into /usr/include does not help things out,
so as a workaround, it is useless.</pre>Sven-Bodo ScholzSven-Bodo Scholzhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/1211Can't make sac2c at all now, after bug #1170 fix2021-05-27T12:40:32ZRobert BerneckyCan't make sac2c at all now, after bug #1170 fix| | |
| --- | --- |
| Bugzilla Link | [1173](http://bugs.sac-home.org/show_bug.cgi?id=1173) |
| Created on | Nov 05, 2015 18:59 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>I just did this:
sa...| | |
| --- | --- |
| Bugzilla Link | [1173](http://bugs.sac-home.org/show_bug.cgi?id=1173) |
| Created on | Nov 05, 2015 18:59 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>I just did this:
sac2c -V
sac2c 1.2.beta-BlackForest-59-ead52
developer
(Wed Nov 4 10:03:11 EST 2015 by sac)
sac@rattler:~/sac2c$ ./configure;make clean; make -j8
and got this:
Creating lib/libsac2c.d.so (developer version)
Using lib/libsac2c.d.so (developer version)
SAC libsac2c (developer version) is up to date !
************************************************************
* Building SAC runtime (default version)
* revision 1.2.beta-BlackForest-67-22416
************************************************************
make[2]: *** No rule to make target `../runtime/mt_pth_h/mt_barriers.h', needed by `../../include/sac.h'. Stop.
make[2]: *** Waiting for unfinished jobs....
Generating header files in directory src/runtime/../runtime/essentials_h/
Generating header files in directory src/runtime/../runtime/mt_beehive_h/
Generating header file from M4 macro specification: std_gen.h
Generating header file from M4 macro specification: rc_impl_gen.h
Generating header file from M4 macro specification: mt_gen.h
make[1]: *** [make_default] Error 2
make: *** [default] Error 2</pre>Clemens GrelckClemens Grelckhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2213stdlib build fails even after make clean2021-05-27T12:39:32ZRobert Berneckystdlib build fails even after make clean| | |
| --- | --- |
| Bugzilla Link | [1181](http://bugs.sac-home.org/show_bug.cgi?id=1181) |
| Created on | Sep 05, 2016 21:01 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>This was preceeded ...| | |
| --- | --- |
| Bugzilla Link | [1181](http://bugs.sac-home.org/show_bug.cgi?id=1181) |
| Created on | Sep 05, 2016 21:01 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>This was preceeded by a "make clean" and "./configure":
make[2]: Entering directory '/home/sac/sac/BASE/stdlib'
** Note: modules Dislin DislinBars DislinQuick DislinCanvas DislinPage DislinPlot3d DislinSystem IplImage CvCapture RGB disabled due to configuration.
SAC2C targets/seq/ArrayBasics.done
abort: The module 'ScalarArith'
abort: (/usr/local/libexec/sac2c/1.2.beta-BlackForest-294-7460/tree/host/libScalarArithTree.so) uses an incompatible syntax tree layout. Please update the module and compiler to the most recent version.
compilation failed while Loading SAC program.
targets/seq/GNUmakefile:188: recipe for target 'targets/seq/ArrayBasics.done' failed
make[2]: *** [targets/seq/ArrayBasics.done] Error 1
make[2]: Leaving directory '/home/sac/sac/BASE/stdlib'
GNUmakefile:988: recipe for target 'subtarget-seq-activate-recursive' failed
make[1]: *** [subtarget-seq-activate-recursive] Error 2
make[1]: Leaving directory '/home/sac/sac/BASE/stdlib'
GNUmakefile:841: recipe for target 'install' failed
make: *** [install] Error 2
sac@rattler:~/sac/BASE/stdlib$
sac@rattler:~/sac/BASE/stdlib$ ./configure; make -j8; sudo make install
The problem goes away when I do:
sudo rm -r /usr/local/libexec/sac2c.*
and redo the whole stdlib build.</pre>Sven-Bodo ScholzSven-Bodo Scholzhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/1212cmake-follow "sudo make install" does not produce executable binary2018-05-25T22:21:40ZRobert Berneckycmake-follow "sudo make install" does not produce executable binary| | |
| --- | --- |
| Bugzilla Link | [1188](http://bugs.sac-home.org/show_bug.cgi?id=1188) |
| Created on | Jan 16, 2017 20:46 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>See Bug #1184 for b...| | |
| --- | --- |
| Bugzilla Link | [1188](http://bugs.sac-home.org/show_bug.cgi?id=1188) |
| Created on | Jan 16, 2017 20:46 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>See Bug #1184 for background on this.
The cmake-follow "sudo make install" script does not update the
exectable sac2c (etc.) binary in /usr/local/bin (or wherever
it is supposed to be). I consider this to be wrong, because
the "standard" method of installing applications is generally
something like:
./configure
make
sudo make install
After these steps, you have a working app.
The current sac2c approach does not do this. Hence, newcomers
to SAC will likely be confused. The current sac2c approach
appears to cater, instead, to people doing compiler development
under a particular workflow.
I recommend that "sudo make install" operate in such a way
as to minimize confusion for The Great Unwashed, by ensuring
that updated sac2c/sac2c_d,sac2c_r... appear in /usr/local/bin.
If developers want some other behavior, e.g., so as to be able to
execute back levels of the compiler, then we might have a
"sudo make developerinstall" or similar target.</pre>Clemens GrelckClemens Grelckhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2211stdlib-follow does not build completely2017-11-23T23:25:14ZRobert Berneckystdlib-follow does not build completely| | |
| --- | --- |
| Bugzilla Link | [1162](http://bugs.sac-home.org/show_bug.cgi?id=1162) |
| Created on | Sep 25, 2015 19:16 |
| Resolution | FIXED |
| Resolved on | Sep 26, 2015 17:47 |
| Version | svn |
| OS | Linux |
| Architectu...| | |
| --- | --- |
| Bugzilla Link | [1162](http://bugs.sac-home.org/show_bug.cgi?id=1162) |
| Created on | Sep 25, 2015 19:16 |
| Resolution | FIXED |
| Resolved on | Sep 26, 2015 17:47 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>I tried to build stdlib-follow just now, and it eventually died,
with this error text:
make
make all-am
make[1]: Entering directory `/home/sac/sac/BASE/stdlib'
make -f targets/seq/GNUmakefile \
activate \
INCLUDEMODS="" EXCLUDEMODS="" V=""
** Note: modules Dislin DislinBars DislinQuick DislinCanvas DislinPage DislinPlot3d DislinSystem IplImage CvCapture RGB disabled due to configuration.
make[2]: Entering directory `/home/sac/sac/BASE/stdlib'
Aliasing modules in lib/host/seq..........................................................................................
Aliasing trees in lib/tree/host..........................................................................................
make[2]: Leaving directory `/home/sac/sac/BASE/stdlib'
rm -f targets/mt_pth/.configure_done
/bin/mkdir -p targets/mt_pth
cd targets/mt_pth && /home/sac/sac/BASE/stdlib/sub/configure \
--with-sac2c=/usr/local/bin/sac2c \
--with-saccc=/usr/local/bin/saccc \
--with-sac-target=mt_pth \
CPPFLAGS="" \
CFLAGS="" \
LDFLAGS="" \
checking for selected SAC compilation target... mt_pth
checking whether /usr/local/bin/sac2c -target mt_pth works... no
configure: error: Cannot compile a test SAC program. See config.log for details.
make[1]: *** [targets/mt_pth/.configure_done] Error 1
make[1]: Leaving directory `/home/sac/sac/BASE/stdlib'
make: *** [all] Error 2</pre>Sven-Bodo ScholzSven-Bodo Scholzhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2210stdlib make dies2017-11-23T23:25:07ZRobert Berneckystdlib make dies| | |
| --- | --- |
| Bugzilla Link | [1146](http://bugs.sac-home.org/show_bug.cgi?id=1146) |
| Created on | Feb 18, 2015 20:07 |
| Resolution | FIXED |
| Resolved on | Feb 20, 2015 21:01 |
| Version | svn |
| OS | Linux |
| Architectu...| | |
| --- | --- |
| Bugzilla Link | [1146](http://bugs.sac-home.org/show_bug.cgi?id=1146) |
| Created on | Feb 18, 2015 20:07 |
| Resolution | FIXED |
| Resolved on | Feb 20, 2015 21:01 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>On Linux, I get this failure when trying to rebuild the stdlib,
after git pull; ./configure; make clean; make:
~/sac/BASE/stdlib$ make
note: modules BMP, SDLisplay and SDL2 were disabled in configure.
note: module Dislin was diabled in configure.
cd modules/structures/; sac2c -v0 -linksetsize 0 -O3 ScalarArith.sac -o /home/sac/sac/BASE/stdlib/shared-libs
cd modules/structures/; sac2c -v0 -linksetsize 0 -O3 ArrayBasics.sac -o /home/sac/sac/BASE/stdlib/shared-libs
/home/sac/sac/BASE/stdlib/shared-libs.c: In function ‘main’:
/home/sac/sac/BASE/stdlib/shared-libs.c:923:3: warning: implicit declaration of function ‘SACf__MAIN__main’ [-Wimplicit-function-declaration]
SAC_INVOKE_MAIN_FUN( SACf__MAIN__main, SAC_ND_ARG_out( (SAC_res, (SCL, (NHD, (NUQ, (INT, (GLO, (NON, (NOT, )))))))), int));
^
/usr/bin/ld: cannot open output file /home/sac/sac/BASE/stdlib/shared-libs: Is a directory
collect2: error: ld returned 1 exit status
abort: System failed to execute shell command
abort: gcc -std=gnu99 -pedantic -Wall -Wno-unused -fno-builtin -march=native -mtune=native -I$SAC2CBASE/include/ -O3
abort: -I$SAC2CBASE/include/ -o /home/sac/sac/BASE/stdlib/shared-libs /home/sac/sac/BASE/stdlib/shared-libs.c -ldl
abort: -pthread -Wl,--no-as-needed -L$SAC2CBASE/lib/ -L/tmp/SAC_mYLJtv -L. -Wl,-rpath,. -L/home/sac/sac2c/lib
abort: -Wl,-rpath,/home/sac/sac2c/lib -L/home/sac/sac/BASE/stdlib/shared-libs
abort: -Wl,-rpath,/home/sac/sac/BASE/stdlib/shared-libs -L. -Wl,-rpath,. -L/usr/local/dislin -Wl,-rpath,/usr/local/dislin
abort: -L/opt/local/lib -Wl,-rpath,/opt/local/lib -lsacphm.seq -lsac.seq -ldl
abort: with exit code 1
compilation failed while Creating binary code.
make: *** [libArrayBasicsTree.so] Error 150
I suspect the failure is some environment variable being set incorrectly,
but am not sure where to go from here.
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 18521 linux-gnu_x86_64
(Wed Feb 18 10:48:33 EST 2015 by sac)</pre>Sven-Bodo ScholzSven-Bodo Scholzhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2207New stdlib won't build2017-11-23T23:24:55ZRobert BerneckyNew stdlib won't build| | |
| --- | --- |
| Bugzilla Link | [1068](http://bugs.sac-home.org/show_bug.cgi?id=1068) |
| Created on | Apr 24, 2013 15:25 |
| Resolution | FIXED |
| Resolved on | Oct 15, 2013 10:13 |
| Version | svn |
| OS | Linux |
| Architectu...| | |
| --- | --- |
| Bugzilla Link | [1068](http://bugs.sac-home.org/show_bug.cgi?id=1068) |
| Created on | Apr 24, 2013 15:25 |
| Resolution | FIXED |
| Resolved on | Oct 15, 2013 10:13 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>I just did:
cd sac2c
git pull
make clean; make -j6; make -j6 prod
cd
cd sac/BASE/stdlib
git pull (nothing arrived)
make clean
./configure
make -j6 mtfast
and immediately got this:
lib.c: In function ‘main’:
lib.c:605: warning: implicit declaration of function ‘SACf__MAIN_CL_ST__main’
/home/sac/sac2c/src/bin/cse modules/structures/src/StringArray/genarray.o
/home/sac/sac2c/src/bin/cse modules/structures/src/StringArray/index2offset.o
gcc -Wall -std=c99 -fPIC -DPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DYYDEBUG -Wall -std=c99 -fPIC -DPIC -DCHECK -DHAVE_PUTENV -D__EXTENSIONS__ -DSAC_RC_METHOD=SAC_RCM_local -g -O1 -DGNUPLOT_PATH=/usr/bin/gnuplot -DSAC_BACKEND_C99 -I/home/sac/sac2c/include -I/home/sac/sac/BASE/stdlib/config/ -o modules/structures/src/String/btos.o -c modules/structures/src/String/btos.c
gcc -Wall -std=c99 -fPIC -DPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DYYDEBUG -Wall -std=c99 -fPIC -DPIC -DCHECK -DHAVE_PUTENV -D__EXTENSIONS__ -DSAC_RC_METHOD=SAC_RCM_local -g -O1 -DGNUPLOT_PATH=/usr/bin/gnuplot -DSAC_BACKEND_C99 -I/home/sac/sac2c/include -I/home/sac/sac/BASE/stdlib/config/ -o modules/structures/src/String/copystr.o -c modules/structures/src/String/copystr.c
/usr/bin/ld: cannot open output file lib: Is a directory
collect2: ld returned 1 exit status
ABORT: System failed to execute shell command
ABORT: gcc -pedantic -Wall -Wno-unused -fno-builtin -std=c99 -ldl
ABORT: -lpthread -I$SAC2CBASE/include/ -L$SAC2CBASE/lib/ -L/tmp/SAC_AHxyCS
ABORT: -O3 -g -o lib lib.c -L. -Wl,-rpath,. -L/home/sac/sac2c/lib
ABORT: -Wl,-rpath,/home/sac/sac2c/lib
ABORT: -L/home/sac/sac/BASE/stdlib/modules/structures/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/modules/structures/lib
ABORT: -L/home/sac/sac/BASE/stdlib/modules/numerical/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/modules/numerical/lib
ABORT: -L/home/sac/sac/BASE/stdlib/modules/numerical/blas/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/modules/numerical/blas/lib
ABORT: -L/home/sac/sac/BASE/stdlib/modules/unibench/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/modules/unibench/lib
ABORT: -L/home/sac/sac/BASE/stdlib/modules/auxiliary/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/modules/auxiliary/lib
ABORT: -L/home/sac/sac/BASE/stdlib/modules/mutc/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/modules/mutc/lib
ABORT: -L/home/sac/sac/BASE/stdlib/world/mutc/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/world/mutc/lib
ABORT: -L/home/sac/sac/BASE/stdlib/world/system/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/world/system/lib
ABORT: -L/home/sac/sac/BASE/stdlib/world/stdio/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/world/stdio/lib
ABORT: -L/home/sac/sac/BASE/stdlib/world/stdio/dislin/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/world/stdio/dislin/lib
ABORT: -L/home/sac/sac/BASE/stdlib/world/stdio/gnuplot/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/world/stdio/gnuplot/lib
ABORT: -L/home/sac/sac/BASE/stdlib/classes/random/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/classes/random/lib
ABORT: -L/home/sac/sac/BASE/stdlib/classes/auxiliary/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/classes/auxiliary/lib
ABORT: -L/home/sac/sac/BASE/stdlib/utrace/lib
ABORT: -Wl,-rpath,/home/sac/sac/BASE/stdlib/utrace/lib -L. -Wl,-rpath,.
ABORT: -L/usr/local/dislin -Wl,-rpath,/usr/local/dislin -L/opt/local/lib
ABORT: -Wl,-rpath,/opt/local/lib -lsacphm.mt -lsac.mt.pth -pthread -ldl
ABORT: with exit code 1
*** Compilation failed ***
*** Exit code 383 (Creating binary code)
*** 1 Error(s), 0 Warning(s)
make[1]: *** [modules/structures/lib/libScalarArithTree.so] Error 127
make[1]: *** Waiting for unfinished jobs....
/home/sac/sac2c/src/bin/cse modules/structures/src/StringArray/sel.o
/home/sac/sac2c/src/bin/cse modules/structures/src/StringArray/shape.o
/home/sac/sac2c/src/bin/cse modules/structures/src/StringArray/modarray.o
/home/sac/sac2c/src/bin/cse modules/structures/src/String/btos.o
/home/sac/sac2c/src/bin/cse modules/structures/src/String/copystr.o
rm modules/structures/lib/../ScalarArith.sac modules/structures/lib/../ComplexArrayBasics.sac modules/structures/lib/../ArrayBasics.sac modules/structures/lib/../ArrayArith.sac modules/structures/lib/../ArrayTransform.sac modules/structures/lib/../ComplexArrayTransform.sac modules/structures/lib/../ComplexArrayArith.sac
make: *** [mtfast] Error 2
sac@rattler:~/sac/BASE/stdlib$
I then did:
make -j6 mtfast
and it did some whirr-bash stuff.
Eventually, it finished, and I compiled this:
use Array:{sum,==,+,-,iota};
int[*] id( int[*] y)
{
return(y);
}
int main()
{
pos = _reshape_VxA_( [2,2], 10 + iota(4));
pos = id( pos );
z = ( 2 == id( 2)) ? pos : -pos;
z = sum( z);
z = _sub_SxS_( z, 46);
return ( z);
}
Which gives this:
sac2c bugsdl.sac -doawlf -nowlf -dolacsi -dolacso
WARNING: AWLF is enabled: -ecc enabled.
WARNING: AWLF is enabled: -extrema enabled.
WARNING: AWLF is enabled: -maxoptcyc=20
ERROR: line 1881 in file ArrayTransform.sac:
ERROR: argument #1 of "_sel_VxA_" should be legal index into argument #2;
ERROR: types found: int[1]{1} and int[1]{4}
This (line 1881) is, indeed, an index operation in the sum() code, so
we're better off than before, inasmuch as there is only one sum()
in my source code. However, if the function was, say, +, we might
not have it so easy, because there is still no way to determine
which invocation of the stdlib code caused the problem.
[The complaint above is due to a fault in my -dolacso code,
but it makes for a good example...]</pre>Sven-Bodo ScholzSven-Bodo Scholzhttps://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/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/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/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/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/2179stdlib make still broken with -mtfast2017-11-19T22:05:09ZRobert Berneckystdlib make still broken with -mtfast| | |
| --- | --- |
| Bugzilla Link | [740](http://bugs.sac-home.org/show_bug.cgi?id=740) |
| Created on | Sep 01, 2010 20:59 |
| Resolution | FIXED |
| Resolved on | Sep 02, 2010 09:03 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [740](http://bugs.sac-home.org/show_bug.cgi?id=740) |
| Created on | Sep 01, 2010 20:59 |
| Resolution | FIXED |
| Resolved on | Sep 02, 2010 09:03 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>make -j4 mtfast
make -f buildfile "MTSAC2CFLAGS=-mt" MODE=fat
cd modules/structures/lib/..; sac2c -v0 -O3 -linksetsize 0 -mt ComplexArrayTransform.sac -o lib
cd modules/structures/lib/..; sac2c -v0 -O3 -linksetsize 0 -mt SimpleImage.sac -o lib
cd modules/numerical/lib/..; sac2c -v0 -O3 -linksetsize 0 -mt Blas.sac -o lib
cd world/stdio/lib/..; sac2c -v0 -O3 -linksetsize 0 -mt ScalarIO.sac -o lib
cd world/stdio/lib/..; sac2c -v0 -O3 -linksetsize 0 -mt FibreIO.sac -o lib
cd world/stdio/lib/..; sac2c -v0 -O3 -linksetsize 0 -mt PPM.sac -o lib
ABORT: Cannot find library `libStdIOTree.so' for module `StdIO'
This is Stdlib revision 1396.
It looks like bad dependencies again...
Perhaps we should write a script to generate these makefiles
automatically. Can someone briefly, and correctly, describe what the criteria for
such a generator would be? E.g., is it enough to collect the set of
'use' statements in all modules, then build a tree from those?
If not, what is the correct procedure for doing this?</pre>Carl JoslinCarl Joslinhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2178Make Failed for STDLIB2017-11-19T22:05:04ZSalem ReyenMake Failed for STDLIB| | |
| --- | --- |
| Bugzilla Link | [738](http://bugs.sac-home.org/show_bug.cgi?id=738) |
| Created on | Aug 15, 2010 08:14 |
| Resolution | DUPLICATE |
| Resolved on | Sep 03, 2010 13:55 |
| Version | svn |
| OS | Linux |
| Architec...| | |
| --- | --- |
| Bugzilla Link | [738](http://bugs.sac-home.org/show_bug.cgi?id=738) |
| Created on | Aug 15, 2010 08:14 |
| Resolution | DUPLICATE |
| Resolved on | Sep 03, 2010 13:55 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
| Attachments | [Templates.mac](/uploads/f48061126d536ec94afb149bfb8f5483/Templates.mac) |
## Extended Description
<pre>I need the long type (64 bit integer) for stdlib and by following the instruction given by Clemens, I add fun( long) to the list in the CPP else case in stdlib/modules/structures/Templates.mac. That is, the file becomes
#else
#define BUILT_IN( fun) \
fun( int) \
fun( long) \
fun( float) \
fun( double) \
fun( bool) \
fun( char)
#define NUM( fun) \
fun( int) \
fun( long) \
fun( float) \
fun( double)
But when I try to make mtfast, I get
inux@linux-desktop:~/sac2c-1.00-beta-linux-x86_64/stdlib$ make mtfast
make -f buildfile "MTSAC2CFLAGS=-mt" MODE=lean
Module SDLisplay cannot be built because libSDL was not found
Module Gnuplot cannot be built because gnuplot was not found
Module Dislin cannot be built because DISLIN was not found
Module PNG cannot be built because libpng was not found
cd modules/structures/lib/..; sac2c -v0 -O3 -linksetsize 0 -mt ScalarArith.sac -o lib
cd modules/structures/lib/..; sac2c -v0 -O3 -linksetsize 0 -mt ArrayBasics.sac -o lib
OOOOOOOPS, your program crashed the compiler 8-((
Please, send a bug report to bugs@sac-home.org,
or file a bug in the SaC-Zilla bug management system.
For your convenience, the compiler has pre-fabricated a bug report
in the file "./ArrayBasics.sacbugreport" !
Besides some infos concerning the compiler version and its
usage it contains the specified source file.
If you want to send that bug report to us, you may simply type
mail bugs@sac-home.org < ArrayBasics.sacbugreport
If you decide to file a bug in SaC-Zilla, please go to
http://bugs.sac-home.org/.
When filing a bug report, please copy/paste the initial comment section of
the bug report into the plain text comment section of SaC-Zilla, and add
the whole bug report file as an attachment.
Aborted
make[1]: *** [modules/structures/lib/libArrayBasicsTree.so] Error 134
make: *** [mtfast] Error 2</pre>Santanu Kumar DashSantanu Kumar Dashhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2176stdlb build broken again2017-11-19T22:04:52ZRobert Berneckystdlb build broken again| | |
| --- | --- |
| Bugzilla Link | [724](http://bugs.sac-home.org/show_bug.cgi?id=724) |
| Created on | Jun 15, 2010 20:33 |
| Resolution | WONTFIX |
| Resolved on | Jun 21, 2010 10:50 |
| Version | svn |
| OS | Linux |
| Architectu...| | |
| --- | --- |
| Bugzilla Link | [724](http://bugs.sac-home.org/show_bug.cgi?id=724) |
| Created on | Jun 15, 2010 20:33 |
| Resolution | WONTFIX |
| Resolved on | Jun 21, 2010 10:50 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>This after:
svn update .
make clean
make -j4 fast
ABORT: The module 'Interval'
ABORT: (/home/sac/sac/BASE/stdlib/modules/auxiliary/lib/libIntervalTree.so)
ABORT: uses an incompatible syntax tree layout. Please update the module
ABORT: and compiler to the most recent version.</pre>Daniel RollsDaniel Rollshttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2170Dependences wrong in stdlib build if using -j42017-11-19T22:04:24ZRobert BerneckyDependences wrong in stdlib build if using -j4| | |
| --- | --- |
| Bugzilla Link | [599](http://bugs.sac-home.org/show_bug.cgi?id=599) |
| Created on | Nov 19, 2009 15:41 |
| Resolution | FIXED |
| Resolved on | Dec 19, 2009 21:18 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [599](http://bugs.sac-home.org/show_bug.cgi?id=599) |
| Created on | Nov 19, 2009 15:41 |
| Resolution | FIXED |
| Resolved on | Dec 19, 2009 21:18 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>stdlib build#1223 dependencies still wrong:
make clean;make -j4 fast
...
cd world/mutc/lib/..; sac2c -v0 -O3 -linksetsize 0 String.sac -o lib
ABORT: Cannot find library `libArrayBasicsTree.so' for module `ArrayBasics'
*** Compilation failed ***
*** Exit code 15 (Running module system)
*** 1 Error(s), 0 Warning(s)
make[1]: *** [world/mutc/lib/libStringTree.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$ svn update .
At revision 1223.</pre>Sven-Bodo ScholzSven-Bodo Scholzhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2169stdlib huild broken due to srand type conflict2017-11-19T22:04:18ZRobert Berneckystdlib huild broken due to srand type conflict| | |
| --- | --- |
| Bugzilla Link | [567](http://bugs.sac-home.org/show_bug.cgi?id=567) |
| Created on | Oct 05, 2009 16:03 |
| Resolution | FIXED |
| Resolved on | Oct 06, 2009 10:26 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [567](http://bugs.sac-home.org/show_bug.cgi?id=567) |
| Created on | Oct 05, 2009 16:03 |
| Resolution | FIXED |
| Resolved on | Oct 06, 2009 10:26 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>Building the stdlib dies with this:
cd classes/random/lib/..; sac2c -v0 -O3 -linksetsize 0 Rand.sac -o lib
In file included from fun0.c:1:
header.h:157: error: conflicting types for ‘srand’
/usr/include/stdlib.h:382: error: previous declaration of ‘srand’ was here
ABORT: System failed to execute shell command
This with sac2c build #16459, stdlib #1192.</pre>Sven-Bodo ScholzSven-Bodo Scholzhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2167buildfile dependence wrong for Fibrescan2017-11-19T22:04:07ZRobert Berneckybuildfile dependence wrong for Fibrescan| | |
| --- | --- |
| Bugzilla Link | [541](http://bugs.sac-home.org/show_bug.cgi?id=541) |
| Created on | Aug 04, 2009 20:53 |
| Resolution | FIXED |
| Resolved on | Jul 18, 2012 09:07 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [541](http://bugs.sac-home.org/show_bug.cgi?id=541) |
| Created on | Aug 04, 2009 20:53 |
| Resolution | FIXED |
| Resolved on | Jul 18, 2012 09:07 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>make -f buildfile -j5
cd modules/structures/lib/..; sac2c -v0 -O3 -linksetsize 0 ArrayBasics.sac -o lib
cd modules/structures/lib/..; sac2c -v0 -O3 -linksetsize 0 crud.breaks.sac -o lib
cd modules/structures/lib/..; sac2c -v0 -O3 -linksetsize 0 crud.sac -o lib
cd world/stdio/src/FibreIO; flex -PFibreScan FibreScan.l
cd modules/numerical/blas/lib/..; sac2c -v0 -O3 -linksetsize 0 SacBlasLevel1.sac -o lib
/home/sac/sac2c/src/bin/cse world/stdio/src/FibreIO/lex.FibreScan.c
cd world/system/lib/..; sac2c -v0 -O3 -linksetsize 0 PTimer.sac -o lib
ABORT: Cannot find library `libArrayTree.so' for module `Array'
It looks like recent changes to the stdlib have not adjusted the buildfile to
match the dependences in those changes.</pre>Sven-Bodo ScholzSven-Bodo Scholzhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2165(old) stdlib makefile system broken2017-11-19T22:03:55ZClemens Grelck(old) stdlib makefile system broken| | |
| --- | --- |
| Bugzilla Link | [538](http://bugs.sac-home.org/show_bug.cgi?id=538) |
| Created on | Aug 04, 2009 16:26 |
| Resolution | LATER |
| Resolved on | Jul 18, 2012 09:09 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [538](http://bugs.sac-home.org/show_bug.cgi?id=538) |
| Created on | Aug 04, 2009 16:26 |
| Resolution | LATER |
| Resolved on | Jul 18, 2012 09:09 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>The old/real makefile system of the standard lib is broken, probably because
no-one has used it for ages. The top-level makefile starts with some pretty
weird dependencies and actions:
all: hidden/src/FibreScan/FibreScan.y
$(MAKE) $(SACBASE)/stdlib/Makefiles/Makefile.Config
$(CLOCK_SKEW_ELIMINATION) Makefiles/Makefile.Config
$(CLOCK_SKEW_ELIMINATION) config/config.h
$(MAKE) standard_all
hidden/src/FibreScan/FibreScan.y:
# $(MAKE) untar
./configure
$(CLOCK_SKEW_ELIMINATION) Makefiles/Makefile.Config
$(CLOCK_SKEW_ELIMINATION) config/config.h
I have disabled the make untar in the second rule because I have no idea
what tar-file is supposed to be untarred here. make untar does make sense
in conjunction with make tar, but as the start rule? The stdlib doesn't
come as a tar-file.
It is also strange that configure is forced to run each and every time.
Even with the make untar disabled the make fails with complaining about a
missing rule.
At least the documentation is still in the state of the old module system.
If this is to be resurrected, preferably the originator needs to have a
close look at it.</pre>Sven-Bodo ScholzSven-Bodo Scholzhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2160make mandelbrot fails2017-11-19T22:03:28ZRobert Berneckymake mandelbrot fails| | |
| --- | --- |
| Bugzilla Link | [475](http://bugs.sac-home.org/show_bug.cgi?id=475) |
| Created on | Mar 06, 2009 17:19 |
| Resolution | FIXED |
| Resolved on | Apr 01, 2011 09:14 |
| Version | svn |
| OS | Linux |
| Architecture...| | |
| --- | --- |
| Bugzilla Link | [475](http://bugs.sac-home.org/show_bug.cgi?id=475) |
| Created on | Mar 06, 2009 17:19 |
| Resolution | FIXED |
| Resolved on | Apr 01, 2011 09:14 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
## Extended Description
<pre>sac@rattler:~/sac/demos/graphics$ make
sac2c -O3 -v1 -noPHM -o . /home/sac/sac/BASE/stdlib/modules/structures/./SimpleImage.sac
ar: src/SimpleImage/imshow.o: No such file or directory
ABORT: System failed to execute shell command
ABORT: ar cr ./libSimpleImageMod.a /tmp/SAC_sihTfi/fun*_nonpic.o
ABORT: /tmp/SAC_sihTfi/globals_nonpic.o src/SimpleImage/imshow.o
ABORT: src/SimpleImage/array2png.o
ABORT: with exit code 1
*** Compilation failed ***
*** Exit code 245 (Creating binary code)
*** 1 Error(s), 0 Warning(s)
make: *** [/home/sac/sac/BASE/stdlib/modules/structures/./libSimpleImageTree.so] Error 245
---------------
No idea what's happening here. rebuild of stdlib did not help.</pre>Sven-Bodo ScholzSven-Bodo Scholz