|
|
Bugzilla Link |
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
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...]