[gvargas@n2 src]$ make seq
--- Compilation options: ---
Release mode
FFTW3
updgithash.sh: line 19: git: command not found
Compiler set 'gnu'
----------------------------
updgithash.sh: line 19: git: command not found
Compiling sequential version of ADDA
make -C seq
make[1]: Entering directory '/home/users/dss/gvargas/adda-1.4.0/src/seq'
Building adda
gcc -o adda ADDAmain.o CalculateE.o calculator.o chebyshev.o cmplx.o comm.o crosssec.o GenerateB.o interaction.o io.o iterative.o linalg.o make_particle.o memory.o mt19937ar.o param.o Romberg.o sinint.o somnec.o timing.o vars.o fft.o matvec.o d07hre.o d09hre.o d113re.o d132re.o dadhre.o dchhre.o dcuhre.o dfshre.o dinhre.o drlhre.o dtrhre.o propaesplibreintadda.o -w -lm -lfftw3 -lgfortran
/usr/bin/ld: GenerateB.o:(.bss+0xc8): multiple definition of `InterTerm_real'; calculator.o:(.bss+0x3a8): first defined here
/usr/bin/ld: GenerateB.o:(.bss+0xb8): multiple definition of `ReflTerm_real'; calculator.o:(.bss+0x398): first defined here
/usr/bin/ld: GenerateB.o:(.bss+0xc0): multiple definition of `ReflTerm_int'; calculator.o:(.bss+0x3a0): first defined here
/usr/bin/ld: GenerateB.o:(.bss+0xd0): multiple definition of `InterTerm_int'; calculator.o:(.bss+0x3b0): first defined here
/usr/bin/ld: interaction.o:(.bss+0x20): multiple definition of `InterTerm_int'; calculator.o:(.bss+0x3b0): first defined here
/usr/bin/ld: interaction.o:(.bss+0x18): multiple definition of `InterTerm_real'; calculator.o:(.bss+0x3a8): first defined here
/usr/bin/ld: interaction.o:(.bss+0x10): multiple definition of `ReflTerm_int'; calculator.o:(.bss+0x3a0): first defined here
/usr/bin/ld: interaction.o:(.bss+0x8): multiple definition of `ReflTerm_real'; calculator.o:(.bss+0x398): first defined here
/usr/bin/ld: fft.o:(.bss+0x80): multiple definition of `InterTerm_int'; calculator.o:(.bss+0x3b0): first defined here
/usr/bin/ld: fft.o:(.bss+0x40): multiple definition of `Xmatrix'; vars.o:(.bss+0x68): first defined here
/usr/bin/ld: fft.o:(.bss+0x70): multiple definition of `ReflTerm_int'; calculator.o:(.bss+0x3a0): first defined here
/usr/bin/ld: fft.o:(.bss+0x68): multiple definition of `ReflTerm_real'; calculator.o:(.bss+0x398): first defined here
/usr/bin/ld: fft.o:(.bss+0x78): multiple definition of `InterTerm_real'; calculator.o:(.bss+0x3a8): first defined here
/usr/bin/ld: matvec.o:(.bss+0x0): multiple definition of `ReflTerm_real'; calculator.o:(.bss+0x398): first defined here
/usr/bin/ld: matvec.o:(.bss+0x8): multiple definition of `ReflTerm_int'; calculator.o:(.bss+0x3a0): first defined here
/usr/bin/ld: matvec.o:(.bss+0x10): multiple definition of `InterTerm_real'; calculator.o:(.bss+0x3a8): first defined here
/usr/bin/ld: matvec.o:(.bss+0x18): multiple definition of `InterTerm_int'; calculator.o:(.bss+0x3b0): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [../common.mk:72: adda] Error 1
make[1]: Leaving directory '/home/users/dss/gvargas/adda-1.4.0/src/seq'
make: *** [Makefile:496: seq] Error 2
Dear Gonzalo,
That's a known issue of ADDA 1.4.0 with modern gcc versions - https://github.com/adda-team/adda/issues/284
In short, either switch to current source or add
EXTRA_FLAGS=-fcommon
when you execute make.
Maxim.