Blitz logo

Blitz Devel :

From: Chandraprakash S Jain (jain_at_[hidden])
Date: 2004-03-29 01:45:30


Hi,
I found some bugs in your configure script while building it on
GNU-Linux (IA32 platform) with gcc/intel compilers.

Here are the details -

There is no way you can modify CXXFLAGS variable.
Configure help shows two ways to modify CXXFLAGS variable
  - using CXXFLAGS environment  variable - this doesn't work
    this is clear from configure script

  - using --with-cxx=COMPILER:name-flags command line option
     I tried this and found one more bug in configure script
     if I just use --with-cxx=gcc then it works fine i.e. CXX is set to gcc,
     but if I use --withcxx=gcc:-O3, CXX is set to -O3 and with
     --with-cxx=icc:-O3,  it sets CXX to gcc because the switch statement
     for icc is icc) and not icc*) [for GNU compiler it is gcc*)]

"make check-benchmarks" failed for compile_time_benchmarks - there is a bug in
rule for make ctime. Failure -

ctime5.cpp(1): catastrophic error: could not open source file "blitz/array.h"
 #include <blitz/array.h>

Replaced the rule for ctime in benchmark/Makefile

ctime:
  ...
   time $(CXX) $(CXXFLAGS)  -c $$benchmark.cpp; \
   ...

with

ctime:
   ...
    time $(CXX) $(CXXFLAGS)  -I$(top_srcdir) -c $$benchmark.cpp; \
    ...

Also to use Intel Compiler v8, I had to change the LIBS flag for fortran
libraries -
Replaced "-lF90 -lCEPCF90 -lIEPCF90 -lintrins -lg2c" with "-lifcore -ldl"
in benchmark/makefile

I hope these are valid issues and will be fixed in next release of
blitz++.

Thanks,
Chandraprakash Jain