guagua-pamcn / a-dda

Automatically exported from code.google.com/p/a-dda
0 stars 0 forks source link

Problem in Installation #194

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying to install adda in my computer but I am getting following error :
-------------------------------------------------------------------
root@cpl2:/home/administrator/softwares/adda_1.3b4/src# make seq
--- Compilation options: ---
Release mode
FFTW3
Compiler set 'gnu'
----------------------------
Compiling sequential version of ADDA
make -C seq
make[1]: Entering directory `/home/administrator/softwares/adda_1.3b4/src/seq'
gcc -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../linalg.c
../linalg.c: In function ‘nIncrem’:
../linalg.c:215:6: internal compiler error: in vect_get_vec_def_for_operand, at 
tree-vect-stmts.c:1294
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccV5lO1Y.out file, please attach this to 
your bugreport.
make[1]: *** [linalg.o] Error 1
make[1]: Leaving directory `/home/administrator/softwares/adda_1.3b4/src/seq'
make: *** [seq] Error 2

--------------------------------------
I will be very thankful if you can tell me the how to install ADDA on my linux 
Ubuntu 13.04. 
Regards,
Abhay

Original issue reported on code.google.com by bhu.ab...@gmail.com on 1 Apr 2014 at 6:11

GoogleCodeExporter commented 8 years ago
Hello Abhay,

I can reproduce the error with gcc-4.6. 
You can try compiling a-dda using gcc-4.4 from the Ubuntu repository with:

sudo apt-get install gcc-4.4

and then compile the sequential version of a-dda like:
make seq CC=gcc-4.4

Best Regards,
Marcus

Original comment by Marcus.H...@gmail.com on 1 Apr 2014 at 6:30

GoogleCodeExporter commented 8 years ago
Many thanks for replying Marcus. I installed gcc-4.4 and then tried to compiled 
as you have told. But again I got an error which is following: 
-----------------------------
root@cpl2:/home/administrator/softwares/adda_1.3b4/src# make seq CC=gcc-4.4
--- Compilation options: ---
Release mode
FFTW3
Compiler set 'gnu'
----------------------------
Compiling sequential version of ADDA
make -C seq
make[1]: Entering directory `/home/administrator/softwares/adda_1.3b4/src/seq'
C sources need to be recompiled
echo -n "gcc-4.4 -O3 -ffast-math -funroll-loops -w  -std=c99 " > .copts
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../ADDAmain.c
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../CalculateE.c
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../calculator.c
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../chebyshev.c
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../comm.c
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../crosssec.c
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../GenerateB.c
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../interaction.c
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../io.c
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../iterative.c
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../linalg.c
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../make_particle.c
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../matvec.c
gcc-4.4 -c -O3 -ffast-math -funroll-loops -w  -std=c99  -MD ../memory.c
../memory.c:30: fatal error: fftw3.h: No such file or directory
compilation terminated.
make[1]: *** [memory.o] Error 1
make[1]: Leaving directory `/home/administrator/softwares/adda_1.3b4/src/seq'
make: *** [seq] Error 2
-------------------------------------------------------------- 
I think fftw3.h is related to MKL and I have intel mkl installed.
So still I am baffled in installation. 
Thanks and Regards,
Abhay

Original comment by bhu.ab...@gmail.com on 1 Apr 2014 at 6:52

GoogleCodeExporter commented 8 years ago
Hello Abhay,

FFTW is an external dependency and not directly related to the intel mkl. You 
can install it also from the repository with:
apt-get libfftw3-3 libfftw3-double3 libfftw3-dev
I'm not exactly sure if all three packages are needed, but it should work 
afterwards.

Regards,
Marcus

Original comment by Marcus.H...@gmail.com on 1 Apr 2014 at 7:00

GoogleCodeExporter commented 8 years ago
Marcus has already solved the problem. 
I can only add some minor things: see InstallingFFTW for more details on FFTW, 
and the compiler issue was discussed at 
https://groups.google.com/forum/#!topic/adda-discuss/uO_7j7WopvY

Original comment by yurkin on 2 Apr 2014 at 5:41

GoogleCodeExporter commented 8 years ago
Here is the link to the wiki page - 
http://code.google.com/p/a-dda/wiki/InstallingFFTW3

Original comment by yurkin on 2 Apr 2014 at 5:42