|
|
Bugzilla Link |
1126 |
Created on |
Jul 16, 2014 19:11 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
I'm trying to get my development box here back on its wheels, and
have run into a number of anomalies that I'll report here:
1. cd sac2c; make clean:
Removing compilation target: bin/sacprapolyhedral
/bin/bash: bin/sac2c: No such file or directory
./src/makefiles/rtlibs.mkf:23: ** Warning: SAC2CRC=${SAC2CRC:-setup/sac2crc} LD_LIBRARY_PATH=lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} DYLD_LIBRARY_PATH=lib${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH} bin/sac2c does not appear to work - cannot determine SBI data, skipping
make[1]: Nothing to be done for `clean'.
/bin/bash: bin/sac2c: No such file or directory
./src/makefiles/rtlibs.mkf:23: ** Warning: SAC2CRC=${SAC2CRC:-setup/sac2crc} LD_LIBRARY_PATH=lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} DYLD_LIBRARY_PATH=lib${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH} bin/sac2c does not appear to work - cannot determine SBI data, skipping
make[1]: Nothing to be done for `clean'.
2. cd sac2c; make:
Codeveloper code: annotate_memory_transfers.c
..
Compiling executionmode.c: In function ‘CUTEMassign’:
cuda/cuda_tag_executionmode.c:597:18: warning: comparison between ‘cudaexecmode_t’ and ‘enum ’ [-Wenum-compare]
if( old_mode == CUDA_DEVICE_SINGLE &&
^
Compiling developer code: prepare_forloop_generation.c
Compiling developer code: cuda_create_cells.c
Compiling developer code: minimize_cudast_transfers.c
Compiling developer code: single_thread_kernels.c
Compiling developer code: adjust_stknl_rets.c
cuda/cuda_create_cells.c: In function ‘CUCCassign’:
cuda/cuda_create_cells.c:90:34: warning: comparison between ‘mtexecmode_t’ and ‘enum ’ [-Wenum-compare]
if( ASSIGN_EXECMODE( arg_node) == CUDA_DEVICE_SINGLE) {
^
cuda/cuda_create_cells.c:97:60: warning: comparison between ‘mtexecmode_t’ and ‘enum ’ [-Wenum-compare]
ASSIGN_EXECMODE( ASSIGN_NEXT( last_cellassign)) == CUDA_DEVICE_SINGLE) {
...
3. cd sac2c; make
Linking bin/sac2c-d (developer version)
'/home/sac/.sac2crc' not found or not readable, skipping.
MT_MODE = 0 in target, forcing -numthreads to 1.
'/home/sac/.sac2crc' not found or not readable, skipping.
MT_MODE = 0 in target, forcing -numthreads to 1.
'/home/sac/.sac2crc' not found or not readable, skipping.
MT_MODE = 0 in target, forcing -numthreads to 1.
'/home/sac/.sac2crc' not found or not readable, skipping.
MT_MODE = 0 in target, forcing -numthreads to 1.
'/home/sac/.sac2crc' not found or not readable, skipping.
MT_MODE = 0 in target, forcing -numthreads to 1.
'/home/sac/.sac2crc' not found or not readable, skipping.
MT_MODE = 0 in target, forcing -numthreads to 1.
** INFO: target 'seq' does *not* support PHM.
[I don't see the rationale for a connection between 'seq" and PHM, btw.]
4. a bit further on...
LD bin/csimt
'/home/sac/.sac2crc' not found or not readable, skipping.
'/home/sac/.sac2crc' not found or not readable, skipping.
'/home/sac/.sac2crc' not found or not readable, skipping.
'/home/sac/.sac2crc' not found or not readable, skipping.
'/home/sac/.sac2crc' not found or not readable, skipping.
'/home/sac/.sac2crc' not found or not readable, skipping.
** INFO: target 'mt_pth' does support PHM.
5, I think I had DISLIN working here before, and it still lives
in /usr/local/dislin. However, stdlib comes up with this:
Making all for target mt_pth
** Note: modules Dislin DislinBars DislinQuick DislinCanvas DislinPage DislinPlot3d DislinSystem disabled due to configuration.
6. Once I got stdlib built, I tried a few unit tests:
cd ~/sac/testsuite/optimizations/rcopt
sac2 bug1107.sac
/usr/local/lib/sac2c/18604/rt/host/seq/libsac.so: undefined reference to `SAC_HM_ShowDiagnostics'
collect2: error: ld returned 1 exit status
abort: System failed to execute shell command
abort: gcc -std=gnu99 /tmp/SAC_ZGPsKC/a.out.o
abort: -L/usr/local/lib/sac2c/18604/modlibs/host/seq
abort: -Wl,-rpath,/usr/local/lib/sac2c/18604/modlibs/host/seq
abort: -L/usr/local/lib/sac2c/18604/modlibs/host/seq
abort: -Wl,-rpath,/usr/local/lib/sac2c/18604/modlibs/host/seq -L./host/seq
abort: -Wl,-rpath,./host/seq -L/usr/local/lib/sac2c/18604/rt/host/seq
abort: -Wl,-rpath,/usr/local/lib/sac2c/18604/rt/host/seq -lArrayMod
abort: -lArrayTransformMod -lConstantsMod -lArrayArithMod -lArrayBasicsMod -lBoolMod
abort: -lScalarArithMod -lsacpreludeMod -L/usr/local/dislin
abort: -Wl,-rpath,/usr/local/dislin -L/opt/local/lib -Wl,-rpath,/opt/local/lib
abort: -lsacphmc -lsac -lsacphmc -o a.out
abort: with exit code 1
^
I am guessing that HM is for Heap Manager.
7. Let's try some other unit tests:
cd sac/testsuite/optimizations/polylib
sac2c -v0 -target seq -O3 guard_val_lt_val_S.sac -o guard_val_lt_val_S.sac.exe -check c -doawlf -nowlf -dopogo -noggs
sac@rattler:~/sac/testsuite/optimizations/polylib$ guard_val_lt_val_S.sac.exe ; echo $?guard_val_lt_val_S.sac.exe: error while loading shared libraries: libsac.so: cannot open shared object file: No such file or directory
These failures are all new post-Mull.
The host and target system is an Ubuntu 14.10LTS system.
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
product rev 18604
(Tue Jul 15 15:06:15 EDT 2014 by sac)