I'm still stuck with the same problem and would really appreciate if anyone
could please help me.

I'm running Ubuntu 9.04 64-bit and have Tesla C870 as my Cuda device.

Here's what I've done so far:

I've installed dev. driver 190.53 from the NVIDIA website, and have
installed the 2.3 toolkit as well as the SDK. I've run deviceQuery and
bandwithTest to check that everything is working properly, and they both
pass.

zlib1g-dev and libpng12-dev were installed from package manager.

I've tried using both boost 1.37 and 1.39 and built with either:

*bjam --build-type=complete --with-filesystem --with-system --with-date_time
--with-thread --with-program_options --with-regex --with-iostreams stage
*
or:

*bjam --build-type=complete link=static --with-filesystem --with-system
--with-date_time --with-thread --with-program_options --with-regex
--with-iostreams stage *

Stxxl 1.2.1 was then installed with the following commands:

*tar zfxv stxxl-1.2.1.tar.gz
cd stxxl-1.2.1*

In the make.settings.gnu file i added -gcc41 (or -gcc43) to following line
BOOST_LIB_COMPILER_SUFFIX    ?= -gcc41

I then ran:
*make config _gnu*

Edited make.settnings.local so it looked like this:
                                                21
STXXL_ROOT              = \$(HOME)/stxxl-1.2.1
BOOST_ROOT             = \$(HOME)/boost_1_37_0
USE_BOOST                = yes

and then ran:

*make library_g++*

I would then end up with the following error:

/usr/bin/ld: cannot find -lboost_thread-gcc41-mt

In order to fix this I had to put a copy of the files from the *
boost_1_37_0/stage/lib* folder into the */usr/lib *folder. This removed the
errors during installation, but I suppose this is not the proper way of
doing this? Unfortunately I'm no Linux guru ;)

I then checked out the a51 code:

*svn co https://svn.reflextor.com/tmto-svn*

Then ran:

*cd tmto-svn
cp Makefile.local.dist Makefile.local; vi Makefile.local*

Edited the makefile.local file so it looked like this:
-------------------------------------------------------------------------------------------
# SDK is not needed anymore

#HOST_CFLAGS=-malign-double
ifeq (${NODEBUGMSG},)
    ifeq (${NODEBUG},)
    HOST_CFLAGS+=-g -DDEBUGGING#-O2 #-g #-O2 -static
    NVCC_CFLAGS+=-g -DDEBUGGING
    else
    HOST_CFLAGS+=-O2
    SSE_KERNEL_CFLAGS+=-O3 -funroll-all-loops
    endif
else
    HOST_CFLAGS+=-g
    NVCC_CFLAGS+=-g
endif

ifeq ($(CROSS), 32bit)
CUDA_DIR=/home/sascha/cuda2.3-32/cuda
#SDK_DIR=/home/sascha/NVSDK-32/C
STXXL_DIR=/home/sascha/stxxl-32/trunk
BOOST_DIR=/home/sascha/Desktop/boost-32/boost_1_37_0
BOOST_INFIX=-gcc41
M32=-m32
else
CUDA_DIR=/usr/local/cuda
#SDK_DIR=/home/sascha/NVIDIA_CUDA_SDK
STXXL_DIR=/home/cryptos/stxxl-1.2.1
//STXXL_DIR=/home/sascha/stxxl-ps3
//BOOST_DIR=/home/sascha/boost-ps3/boost_1_37_0
BOOST_DIR=/home/cryptos/boost_1_39_0
#LIBSPE2_DIR=/home/sascha/cell/libspe2-2.2.80-95
BOOST_INFIX=-gcc41
endif
----------------------------------------------------------------------------------------

Then I ran

*cd obj
make c*

And ended up with the errors described in the previous email.

I've tested using both gcc 4.1 and gcc 4.3, but nothing seems to change.

Hope this info can be a help in spotting what the error is.

Best regards,

Magnus

2010/4/9 Magnus Glendrange <[email protected]>

> Hi!
>
> I'm a master student at the Norwegian University of Science and Technology
> doing a master thesis about GSM cryptanalysis. I'm in the process of
> installing the table generator in order to contribute to the A5/1-project,
> but at the moment I'm stuck with some errors that occur during the
> installation.
>
> When I'm running "make c", I get the following errors:
>
>
> g++-4.1  -g -DDEBUGGING  -DSTXXL_BOOST_THREADS -DSTXXL_BOOST_CONFIG
> -DSTXXL_BOOST_FILESYSTEM -DSTXXL_BOOST_RANDOM -DSTXXL_BOOST_TIMESTAMP -I..
> -I/usr/local/cuda/include -I/home/cryptos/stxxl-1.2.1/include
> -I/home/cryptos/boost_1_37_0 -I -I/spebase -c -o calculate_chain.o
> ../calculate_chain.cpp
> g++-4.1  -g -DDEBUGGING  -DSTXXL_BOOST_THREADS -DSTXXL_BOOST_CONFIG
> -DSTXXL_BOOST_FILESYSTEM -DSTXXL_BOOST_RANDOM -DSTXXL_BOOST_TIMESTAMP -I..
> -I/usr/local/cuda/include -I/home/cryptos/stxxl-1.2.1/include
> -I/home/cryptos/boost_1_37_0 -I -I/spebase -c -o main_plugin.o
> ../plugins/A51/main.cpp
> g++-4.1  -g -DDEBUGGING  -DSTXXL_BOOST_THREADS -DSTXXL_BOOST_CONFIG
> -DSTXXL_BOOST_FILESYSTEM -DSTXXL_BOOST_RANDOM -DSTXXL_BOOST_TIMESTAMP -I..
> -I/usr/local/cuda/include -I/home/cryptos/stxxl-1.2.1/include
> -I/home/cryptos/boost_1_37_0 -I -I/spebase -c -o cuda_device_plugin.o
> ../plugins/A51/cuda.cpp
> g++-4.1  -g -DDEBUGGING  -DSTXXL_BOOST_THREADS -DSTXXL_BOOST_CONFIG
> -DSTXXL_BOOST_FILESYSTEM -DSTXXL_BOOST_RANDOM -DSTXXL_BOOST_TIMESTAMP -I..
> -I/usr/local/cuda/include -I/home/cryptos/stxxl-1.2.1/include
> -I/home/cryptos/boost_1_37_0 -I -I/spebase -c -o cuda_bitslice_plugin.o
> ../plugins/A51/cuda_bitslice.cpp
> (echo "#!/bin/sh"; echo "exec g++-4.1  \"\...@\"") > gcc
> chmod 755 gcc
> PATH=.:$PATH /usr/local/cuda/bin/nvcc -keep --ptxas-options="-v
> --maxrregcount=128" -g -DDEBUGGING -I.. -I/usr/local/cuda/include
> -I/home/cryptos/stxxl-1.2.1/include -I/home/cryptos/boost_1_37_0 -I
> -I/spebase  -DSTXXL_BOOST_THREADS -DSTXXL_BOOST_CONFIG
> -DSTXXL_BOOST_FILESYSTEM -DSTXXL_BOOST_RANDOM -DSTXXL_BOOST_TIMESTAMP -c -o
> cuda_bitslice_kernel.o ../plugins/A51/cuda_bitslice_kernel.cu 2>&1 | grep
> -v 'Warning: Cannot tell what pointer points to'
> ptxas info    : Compiling entry function
> '_Z23crunch_bitslice_multirfIN4tmto9algorithm3A5114implementation4cuda3tag8bitsliceILb0ELb1ELb1EEENS0_13configuration6unusedENS0_9condition3tag19distinguished_pointENS0_14round_function9arguments8selectorINSD_3tag4xor_ESC_NSD_9generator7adaptor3tag8bitsliceINSI_3tag5lfsr2EEEEENS8_9arguments16select_argumentsIS7_S9_SC_SP_EEEvbiiPT3_i'
> ptxas info    : Used 62 registers, 2852+16 bytes smem, 24 bytes cmem[1]
> ptxas info    : Compiling entry function
> '_Z23crunch_bitslice_multirfIN4tmto9algorithm3A5114implementation4cuda3tag8bitsliceILb0ELb1ELb1EEENS0_13configuration6unusedENS0_9condition3tag6roundsENS0_14round_function9arguments8selectorINSD_3tag4xor_ENSB_19distinguished_pointENSD_9generator7adaptor3tag8bitsliceINSJ_3tag5lfsr2EEEEENS8_9arguments16select_argumentsIS7_S9_SC_SQ_EEEvbiiPT3_i'
> ptxas info    : Used 62 registers, 2852+16 bytes smem, 24 bytes cmem[1]
> ptxas info    : Compiling entry function
> '_Z23crunch_bitslice_multirfIN4tmto9algorithm3A5114implementation4cuda3tag8bitsliceILb0ELb0ELb1EEENS0_13configuration6unusedENS0_9condition3tag19distinguished_pointENS0_14round_function9arguments8selectorINSD_3tag4xor_ESC_NSD_9generator7adaptor3tag8bitsliceINSI_3tag5lfsr2EEEEENS8_9arguments16select_argumentsIS7_S9_SC_SP_EEEvbiiPT3_i'
> ptxas info    : Used 62 registers, 2852+16 bytes smem, 24 bytes cmem[1]
> ptxas info    : Compiling entry function
> '_Z23crunch_bitslice_multirfIN4tmto9algorithm3A5114implementation4cuda3tag8bitsliceILb0ELb0ELb1EEENS0_13configuration6unusedENS0_9condition3tag6roundsENS0_14round_function9arguments8selectorINSD_3tag4xor_ENSB_19distinguished_pointENSD_9generator7adaptor3tag8bitsliceINSJ_3tag5lfsr2EEEEENS8_9arguments16select_argumentsIS7_S9_SC_SQ_EEEvbiiPT3_i'
> ptxas info    : Used 62 registers, 2852+16 bytes smem, 24 bytes cmem[1]
> ptxas info    : Compiling entry function
> '_Z23crunch_bitslice_multirfIN4tmto9algorithm3A5114implementation4cuda3tag8bitsliceILb1ELb1ELb1EEENS0_13configuration6unusedENS0_9condition3tag19distinguished_pointENS0_14round_function9arguments8selectorINSD_3tag4xor_ESC_NSD_9generator7adaptor3tag8bitsliceINSI_3tag5lfsr2EEEEENS8_9arguments16select_argumentsIS7_S9_SC_SP_EEEvbiiPT3_i'
> ptxas info    : Used 62 registers, 2852+16 bytes smem, 16 bytes cmem[1]
> ptxas info    : Compiling entry function
> '_Z23crunch_bitslice_multirfIN4tmto9algorithm3A5114implementation4cuda3tag8bitsliceILb1ELb1ELb1EEENS0_13configuration6unusedENS0_9condition3tag6roundsENS0_14round_function9arguments8selectorINSD_3tag4xor_ENSB_19distinguished_pointENSD_9generator7adaptor3tag8bitsliceINSJ_3tag5lfsr2EEEEENS8_9arguments16select_argumentsIS7_S9_SC_SQ_EEEvbiiPT3_i'
> ptxas info    : Used 62 registers, 2852+16 bytes smem, 16 bytes cmem[1]
> ptxas info    : Compiling entry function
> '_Z23crunch_bitslice_multirfIN4tmto9algorithm3A5114implementation4cuda3tag8bitsliceILb1ELb0ELb1EEENS0_13configuration6unusedENS0_9condition3tag19distinguished_pointENS0_14round_function9arguments8selectorINSD_3tag4xor_ESC_NSD_9generator7adaptor3tag8bitsliceINSI_3tag5lfsr2EEEEENS8_9arguments16select_argumentsIS7_S9_SC_SP_EEEvbiiPT3_i'
> ptxas info    : Used 62 registers, 2852+16 bytes smem, 16 bytes cmem[1]
> ptxas info    : Compiling entry function
> '_Z23crunch_bitslice_multirfIN4tmto9algorithm3A5114implementation4cuda3tag8bitsliceILb1ELb0ELb1EEENS0_13configuration6unusedENS0_9condition3tag6roundsENS0_14round_function9arguments8selectorINSD_3tag4xor_ENSB_19distinguished_pointENSD_9generator7adaptor3tag8bitsliceINSJ_3tag5lfsr2EEEEENS8_9arguments16select_argumentsIS7_S9_SC_SQ_EEEvbiiPT3_i'
> ptxas info    : Used 62 registers, 2852+16 bytes smem, 16 bytes cmem[1]
> g++-4.1  -g -DDEBUGGING  -DSTXXL_BOOST_THREADS -DSTXXL_BOOST_CONFIG
> -DSTXXL_BOOST_FILESYSTEM -DSTXXL_BOOST_RANDOM -DSTXXL_BOOST_TIMESTAMP -I..
> -I/usr/local/cuda/include -I/home/cryptos/stxxl-1.2.1/include
> -I/home/cryptos/boost_1_37_0 -I -I/spebase -c -o sse_bitslice_plugin.o
> ../plugins/A51/sse_bitslice.cpp
> In file included from ../tmto/device/sse/sse.hpp:5,
>                  from ../tmto/device/sse/sse_methods.hpp:4,
>                  from ../plugins/A51/sse_bitslice.cpp:20:
> ../tmto/device/sse/working_set.hpp:4:50: error:
> tmto/device/common/cpu/working_set.hpp: No such file or directory
> ../tmto/device/sse/working_set.hpp:9: error: 'common' has not been declared
> ../tmto/device/sse/working_set.hpp:9: error: expected `{' before
> 'simple_host'
> ../tmto/device/sse/working_set.hpp:9: error: invalid declarator before '{'
> token
> ../tmto/device/sse/working_set.hpp:20: error: 'common' has not been
> declared
> ../tmto/device/sse/working_set.hpp:20: error: expected `{' before
> 'bitslice_host'
> ../tmto/device/sse/working_set.hpp:20: error: wrong number of template
> arguments (3, should be 1)
> ../tmto/device/sse/working_set.hpp:20: error: provided for 'template<class
> T> class tmto::device::sse::working_set::bitslice_host'
> ../tmto/device/factory_impl.hpp: In member function 'bool
> tmto::device::make_wrapper<DataT, StateList>::apply<T, Subobjects,
>
>
>
> then there's a lot of output with some occational errors (connected to the
> ones above), before the output ends with:
>
>
>
> ../plugins/A51/sse_bitslice.cpp:64:   instantiated from here
> ../tmto/algorithm/A51/implementation/sse/bitslice.hpp:84: error: invalid
> use of undefined type 'class
> tmto::device::sse::working_set::bitslice_host<tmto::device::combined_work_item<tmto::algorithm::A51::data_type,
> tmto::configuration::state::state<void, void, tmto::condition::tag::rounds,
> tmto::round_function::arguments::selector<tmto::round_function::tag::xor_,
> tmto::condition::tag::distinguished_point,
> tmto::round_function::generator::tag::lfsr2> > > >'
> ../tmto/device/sse/working_set.hpp:20: error: declaration of 'class
> tmto::device::sse::working_set::bitslice_host<tmto::device::combined_work_item<tmto::algorithm::A51::data_type,
> tmto::configuration::state::state<void, void, tmto::condition::tag::rounds,
> tmto::round_function::arguments::selector<tmto::round_function::tag::xor_,
> tmto::condition::tag::distinguished_point,
> tmto::round_function::generator::tag::lfsr2> > > >'
> make: *** [sse_bitslice_plugin.o] Error 1
>
>
> If anyone could please help me I would be very grateful! I'm running Ubuntu
> 9.04 64-bit.
>
>
> Best regards,
>
> Magnus Glendrange,
> Norway
>
_______________________________________________
A51 mailing list
[email protected]
http://lists.lists.reflextor.com/cgi-bin/mailman/listinfo/a51

Reply via email to