[vsipl++] I'm having trouble using Sourcery VSIPL++ - UNIX-like environment with Intel(R) C++ Compiler 9.1

sonho4 at comcast.net sonho4 at comcast.net
Fri Dec 29 05:02:05 UTC 2006


Thanks for the response to my VSIPL++ questions.

But I also tried to compile and build /share/sourceryvsipl++/example1.cpp in  a UNIX-like environment (i.e. Cygwin/X installed on WinXP laptop computer) and ran into the same problems.

Method 1: Using pkg-config via UNIX-like command line failed. Any ideas?
Method 2: Using pkg-config via Makefile in a UNIX-like environment failed. Any ideas?

Results( Method 1): Using pkg-config via UNIX-like command line

bash-3.2$ export PKG_CONFIG_PATH=/cygdrive/c/SourceryVSIPL++/lib/pkgconfig
bash-3.2$ echo $PKG_CONFIG_PATH
/cygdrive/c/SourceryVSIPL++/lib/pkgconfig
bash-3.2$ pwd
/cygdrive/c/SourceryVSIPL++/share/sourceryvsipl++
bash-3.2$ ls
Copy of Makefile  Makefile.bak  example1.o  vsip
Makefile          example1.cpp  fft.cpp     vsip_csl
bash-3.2$ which pkg-config      
/usr/bin/pkg-config
bash-3.2$ pkg-config --cflags vsipl++
-DVSIP_IMPL_PAR_SERVICE=0 -DVSIP_IMPL_IPP_FFT=1 -DVSIP_IMPL_USE_CBLAS=2 -I.
bash-3.2$ pkg-config --variable=cxx vsipl++
icl
bash-3.2$ `pkg-config --variable=cxx vsipl++` -c `pkg-config --cflags vsipl++`
 -I. example1.cpp
Intel(R) C++ Compiler for 32-bit applications, Version 9.1    Build 20060706Z Pa
ckage ID: W_CC_C_9.1.028
Copyright (C) 1985-2006 Intel Corporation.  All rights reserved.
30 DAY EVALUATION LICENSE
example1.cpp
icl: NOTE: The evaluation period for this product ends on 25-jan-2007 UTC.
.\vsip/impl/aligned_allocator.hpp(49): error: namespace "std" has no member "size_t"
    typedef std::size_t    size_type;
                 ^
.\vsip/impl/aligned_allocator.hpp(50): error: namespace "std" has no member "ptrdiff_t"
    typedef std::ptrdiff_t difference_type;
                 ^
.\vsip/impl/copy_chain.hpp(72): error: identifier "back_inserter" is undefined
              back_inserter(this->chain_));
              ^
.\vsip/impl/domain-utils.hpp(198): error: namespace "std" has no member "max"
    index_type first = std::max(dom1.first(),     dom2.first());
                            ^
.\vsip/impl/domain-utils.hpp(199): error: namespace "std" has no member "min"
    index_type last  = std::min(dom1.impl_last(), dom2.impl_last());
                            ^
.\vsip/impl/fns_scalar.hpp(42): error: namespace "std" has no member "acos"
  using std::acos;
             ^
.\vsip/impl/fns_scalar.hpp(44): error: namespace "std" has no member "asin"
  using std::asin;
             ^
.\vsip/impl/fns_scalar.hpp(45): error: namespace "std" has no member "atan"
  using std::atan;
             ^
.\vsip/impl/fns_scalar.hpp(51): error: namespace "std" has no member "ceil"
  using std::ceil;
             ^
.\vsip/impl/fns_scalar.hpp(74): error: no instance of function template "std::lo
g" matches the argument list
            argument types are: (double)
    return exp(d * log(10.0));
                   ^
.\vsip/impl/fns_scalar.hpp(74): error: no instance of function template "std::ex
p" matches the argument list
            argument types are: (<error-type>)
    return exp(d * log(10.0));
           ^
.\vsip/impl/fns_scalar.hpp(97): error: no instance of function template "std::lo
g" matches the argument list
            argument types are: (long double)
    return exp(ld * log(10.0l));
                    ^
.\vsip/impl/fns_scalar.hpp(97): error: no instance of function template "std::ex
p" matches the argument list
            argument types are: (<error-type>)
    return exp(ld * log(10.0l));
           ^
.\vsip/impl/fns_scalar.hpp(112): error: namespace "std" has no member "floor"
  using std::floor;
             ^
.\vsip/impl/fns_scalar.hpp(170): error: namespace "std" has no member "tan"
  using std::tan;
             ^
.\vsip/impl/fns_scalar.hpp(171): error: namespace "std" has no member "tanh"
  using std::tanh;
             ^
.\vsip/impl/fns_scalar.hpp(177): error: namespace "std" has no member "atan2"
  using std::atan2;
             ^
.\vsip/impl/fns_scalar.hpp(187): error: namespace "std" has no member "div"
  using std::div;
             ^
.\vsip/impl/fns_scalar.hpp(188): error: namespace "std" has no member "fmod"
  using std::fmod;
             ^
.\vsip/impl/fns_scalar.hpp(239): error: namespace "std" has no member "max"
  using std::max;
             ^
.\vsip/impl/fns_scalar.hpp(253): error: namespace "std" has no member "min"
  using std::min;
             ^
.\vsip/impl/lapack.hpp(83): catastrophic error: could not open source file "mkl_
cblas.h"
  #  include <mkl_cblas.h>
                          ^
compilation aborted for example1.cpp (code 4)

Results (Method 2): Using pkg-config via Makefile in a UNIX-like environment 

bash-3.2$ pwd
/cygdrive/c/SourceryVSIPL++/share/sourceryvsipl++
bash-3.2$ make
icl -DVSIP_IMPL_PAR_SERVICE=0 -DVSIP_IMPL_IPP_FFT=1 -DVSIP_IMPL_USE_CBLAS=2 -I.
  /Qcxx-features /Qvc8   -c -o example1.o example1.cpp
Intel(R) C++ Compiler for 32-bit applications, Version 9.1    Build 20060706Z Pa
ckage ID: W_CC_C_9.1.028
Copyright (C) 1985-2006 Intel Corporation.  All rights reserved.
icl: Command line warning: overriding '/Qvc6' with '/Qvc8'
30 DAY EVALUATION LICENSE
example1.cpp
icl: NOTE: The evaluation period for this product ends on 25-jan-2007 UTC.
.\vsip/impl/aligned_allocator.hpp(49): error: namespace "std" has no member "size_t"
    typedef std::size_t    size_type;
                 ^
.\vsip/impl/aligned_allocator.hpp(50): error: namespace "std" has no member "ptrdiff_t"
    typedef std::ptrdiff_t difference_type;
                 ^
.\vsip/impl/domain-utils.hpp(198): error: namespace "std" has no member "max"
    index_type first = std::max(dom1.first(),     dom2.first());
                            ^
.\vsip/impl/domain-utils.hpp(199): error: namespace "std" has no member "min"
    index_type last  = std::min(dom1.impl_last(), dom2.impl_last());
                            ^
.\vsip/impl/fns_scalar.hpp(42): error: namespace "std" has no member "acos"
  using std::acos;
             ^
.\vsip/impl/fns_scalar.hpp(44): error: namespace "std" has no member "asin"
  using std::asin;
             ^
.\vsip/impl/fns_scalar.hpp(45): error: namespace "std" has no member "atan"
  using std::atan;
             ^
.\vsip/impl/fns_scalar.hpp(51): error: namespace "std" has no member "ceil"
  using std::ceil;
             ^
.\vsip/impl/fns_scalar.hpp(74): error: no instance of function template "std::lo
g" matches the argument list
            argument types are: (double)
    return exp(d * log(10.0));
                   ^
.\vsip/impl/fns_scalar.hpp(74): error: no instance of function template "std::ex
p" matches the argument list
            argument types are: (<error-type>)
    return exp(d * log(10.0));
           ^
.\vsip/impl/fns_scalar.hpp(97): error: no instance of function template "std::lo
g" matches the argument list
            argument types are: (long double)
    return exp(ld * log(10.0l));
                    ^
.\vsip/impl/fns_scalar.hpp(97): error: no instance of function template "std::ex
p" matches the argument list
            argument types are: (<error-type>)
    return exp(ld * log(10.0l));
           ^
.\vsip/impl/fns_scalar.hpp(112): error: namespace "std" has no member "floor"
  using std::floor;
             ^
.\vsip/impl/fns_scalar.hpp(170): error: namespace "std" has no member "tan"
  using std::tan;
             ^
.\vsip/impl/fns_scalar.hpp(171): error: namespace "std" has no member "tanh"
  using std::tanh;
             ^
.\vsip/impl/fns_scalar.hpp(177): error: namespace "std" has no member "atan2"
  using std::atan2;
             ^
.\vsip/impl/fns_scalar.hpp(187): error: namespace "std" has no member "div"
  using std::div;
             ^
.\vsip/impl/fns_scalar.hpp(188): error: namespace "std" has no member "fmod"
  using std::fmod;
             ^
.\vsip/impl/fns_scalar.hpp(239): error: namespace "std" has no member "max"
  using std::max;
             ^
.\vsip/impl/fns_scalar.hpp(253): error: namespace "std" has no member "min"
  using std::min;
             ^
.\vsip/impl/lapack.hpp(83): catastrophic error: could not open source file "mkl_
cblas.h"
  #  include <mkl_cblas.h>
                          ^
compilation aborted for example1.cpp (code 4)
make: *** [example1.o] Error 4


Thanks,

Son Ho


-------------- Original message -------------- 
From: Stefan Seefeld <stefan at codesourcery.com> 

> sonho4 at comcast.net wrote: 
> > 
> > 1) I downloaded the VSIPL++ Binary package (IA32 Microsoft Windows XP), 
> > sourceryvsipl++-1.2-win-x86 (WinZip file), from 
> > http://www.codesourcery.com/vsiplplusplus/1.2/download.html to my WinXP 
> > laptop computer. 
> > 
> > 2) Also, I installed the Intel(R) C++ Compiler for 32-bit applications, 
> > Version 9.1 (evaluation copy) on my laptop computer. 
> > 
> > 3) I unzipped the VSIPL++ binary package. 
> > 
> > 4) I tried to compile and run /share/sourceryvsipl++/example1.cpp 
> > *without success.* 
> 
> The Makefile in that directory assumes a UNIX-like environment with 
> tools such as pkg-config to extract build parameters from pre-built 
> and packaged configuration files. Unfortunately, that strategy isn't 
> supported on Windows, where these tools don't exist. 
> 
> Instead, it is assumed that you use some platform-specific build 
> environment (such as the MSVC IDE), where you manually add build 
> parameters, such as installation paths for third-party libraries 
> that are used in conjunction with Sourcery VSIPL++. 
> 
> We are working on ways to enhance this for future releases. 
> 
> > Please look at the following compilation output and tell me what's wrong. 
> > 
> > The last error showed the header file, mkl_cblas.h, was not found. 
> > The *VSIPL++ binary package does not contain mkl_cblas.h*. Should I go 
> > somewhere else to get this missing header file? 
> 
> The Windows version of Sourcery VSIPL++ is built using Intel's 
> IPP and MKL libraries (see 
> http://www.codesourcery.com/public/vsiplplusplus/sourceryvsipl++-1.2/quickstart/ 
> chap-installation.html#id287819 
> for more information on these). 
> We are looking into how to remove that restriction, i.e. to make IPP and MKL 
> optional, like they are on other platforms. 
> 
> Regards, 
> Stefan 
> 
> -- 
> Stefan Seefeld 
> CodeSourcery 
> stefan at codesourcery.com 
> (650) 331-3385 x718 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20061229/05f50ddc/attachment.html>


More information about the vsipl++ mailing list