1 Reply Latest reply on Aug 3, 2009 12:20 PM by const24

    linux build problem

    const24

      Project build successfuly and work in winXP, but in linux i have error

      In file included from /usr/local/atibrook/sdk/include/brook/brook.h:55,
                       from src/brookgenfiles/sw_atistream.cpp:8:
      /usr/local/atibrook/sdk/include/brook/CPU/brt.hpp:596: warning: unused parameter ‘i’
      /usr/local/atibrook/sdk/include/brook/CPU/brt.hpp:601: warning: unused parameter ‘f’
      /usr/local/atibrook/sdk/include/brook/CPU/brt.hpp:623: warning: unused parameter ‘s’
      /usr/local/atibrook/sdk/include/brook/CPU/brt.hpp:623: warning: unused parameter ‘idx’
      /usr/local/atibrook/sdk/include/brook/CPU/brt.hpp:628: warning: unused parameter ‘index’
      In file included from /usr/local/atibrook/sdk/include/brook/brook.h:57,
                       from src/brookgenfiles/sw_atistream.cpp:8:
      /usr/local/atibrook/sdk/include/brook/CPU/brtintrinsic.hpp: In function ‘float imp_sign(float)’:
      /usr/local/atibrook/sdk/include/brook/CPU/brtintrinsic.hpp:348: warning: dereferencing type-punned pointerwill break strict-aliasing rules
      /usr/local/atibrook/sdk/include/brook/CPU/brtintrinsic.hpp: In function ‘double imp_sign(double)’:
      /usr/local/atibrook/sdk/include/brook/CPU/brtintrinsic.hpp:353: warning: dereferencing type-punned pointerwill break strict-aliasing rules
      In file included from src/brookgenfiles/sw_atistream.cpp:9:
      src/brookgenfiles/sw_atistream_gpu.h: At global scope:
      src/brookgenfiles/sw_atistream_gpu.h:5: error: no matching function for call to ‘brook::KernelDesc::technique(brook::Technique)’
      /usr/local/atibrook/sdk/include/brook/KernelDesc.h:188: note: candidates are: brook::KernelDesc& brook::KernelDesc::technique(brook::Technique&
      src/sw_atistream.br:5: warning: unused parameter ‘__brt_isreduce’
      src/sw_atistream.br:32: warning: unused parameter ‘queryLength’
      src/sw_atistream.br:32: warning: unused parameter ‘indexofg_isActual’
      src/sw_atistream.br:81: warning: unused parameter ‘__brt_isreduce’
      make[1]: *** [_tmp/obj/release/sw_atistream.o] Error 1
      make[1]: Leaving directory `/home/const/projects/ugene1/trunk/src/plugins/smith_waterman2'
      make: *** [release] Error 2

      But brook's samples build and work fine.

        • linux build problem
          const24

          I foun the information that I shoul use gcc4.2

          Now I have other huge error

           

          _tmp/obj/release/sw_atistream.o: In function `__calculateMatrixOnGPU::operator()(brook::Stream<char> const&, int, brook::Stream<int> const&, int, int, int, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, int, brook::Stream<int> const&, int)': sw_atistream.cpp:(.text+0x8c0): multiple definition of `__calculateMatrixOnGPU::operator()(brook::Stream<char> const&, int, brook::Stream<int> const&, int, int, int, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, int, brook::Stream<int> const&, int)' /tmp/ccjvclCj.o:sw_atistream.cpp:(.text+0xa44): first defined here _tmp/obj/release/sw_atistream.o: In function `__calculateMatrixOnGPU_cpu_inner(__BrtArray<vec<char, 1u> > const&, vec<int, 1u> const&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u> const&, vec<int, 1u> const&, vec<int, 1u> const&, __BrtArray<vec<int, 1u> > const&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, __BrtArray<vec<int, 1u> > const&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, vec<int, 1u> const&, __BrtArray<vec<int, 1u> >&, vec<int, 4u> const&, vec<int, 1u> const&)': sw_atistream.cpp:(.text+0xc70): multiple definition of `__calculateMatrixOnGPU_cpu_inner(__BrtArray<vec<char, 1u> > const&, vec<int, 1u> const&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u> const&, vec<int, 1u> const&, vec<int, 1u> const&, __BrtArray<vec<int, 1u> > const&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, __BrtArray<vec<int, 1u> > const&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, vec<int, 1u> const&, __BrtArray<vec<int, 1u> >&, vec<int, 4u> const&, vec<int, 1u> const&)' /tmp/ccjvclCj.o:sw_atistream.cpp:(.text+0xe4c): first defined here _tmp/obj/release/sw_atistream.o: In function `__calculateMatrixOnGPU_cpu(brt::KernelC*, int, int, bool)': sw_atistream.cpp:(.text+0x24c0): multiple definition of `__calculateMatrixOnGPU_cpu(brt::KernelC*, int, int, bool)' /tmp/ccjvclCj.o:sw_atistream.cpp:(.text+0x1856): first defined here _tmp/obj/release/sw_atistream.o:(.tbss+0x0): multiple definition of `calculateMatrixOnGPU' /tmp/ccjvclCj.o:(.tbss+0x0): first defined here _tmp/obj/release/sw_atistream.o: In function `__calculateMatrixOnGPU::operator()(brook::Stream<char> const&, int, brook::Stream<int> const&, int, int, int, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, int, brook::Stream<int> const&, int)': sw_atistream.cpp:(.text+0x8c0): multiple definition of `__calculateMatrixOnGPU::operator()(brook::Stream<char> const&, int, brook::Stream<int> const&, int, int, int, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, brook::Stream<int> const&, int, brook::Stream<int> const&, int)' /tmp/ccjvclCj.o:sw_atistream.cpp:(.text+0xa44): first defined here _tmp/obj/release/sw_atistream.o: In function `__calculateMatrixOnGPU_cpu_inner(__BrtArray<vec<char, 1u> > const&, vec<int, 1u> const&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u> const&, vec<int, 1u> const&, vec<int, 1u> const&, __BrtArray<vec<int, 1u> > const&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, __BrtArray<vec<int, 1u> > const&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, vec<int, 1u> const&, __BrtArray<vec<int, 1u> >&, vec<int, 4u> const&, vec<int, 1u> const&)': sw_atistream.cpp:(.text+0xc70): multiple definition of `__calculateMatrixOnGPU_cpu_inner(__BrtArray<vec<char, 1u> > const&, vec<int, 1u> const&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u> const&, vec<int, 1u> const&, vec<int, 1u> const&, __BrtArray<vec<int, 1u> > const&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, __BrtArray<vec<int, 1u> > const&, __BrtArray<vec<int, 1u> > const&, vec<int, 1u>&, vec<int, 1u> const&, __BrtArray<vec<int, 1u> >&, vec<int, 4u> const&, vec<int, 1u> const&)' /tmp/ccjvclCj.o:sw_atistream.cpp:(.text+0xe4c): first defined here _tmp/obj/release/sw_atistream.o: In function `__calculateMatrixOnGPU_cpu(brt::KernelC*, int, int, bool)': sw_atistream.cpp:(.text+0x24c0): multiple definition of `__calculateMatrixOnGPU_cpu(brt::KernelC*, int, int, bool)' /tmp/ccjvclCj.o:sw_atistream.cpp:(.text+0x1856): first defined here _tmp/obj/release/sw_atistream.o:(.tbss+0x0): multiple definition of `calculateMatrixOnGPU' /tmp/ccjvclCj.o:(.tbss+0x0): first defined here collect2: ld returned 1 exit status