Compiling ADDA

61 views
Skip to first unread message

Gonzalo Vargas

unread,
May 8, 2024, 7:13:17 AM5/8/24
to ADDA questions and answers
Hello All
Im just starting with ADDA, I want to compile it in macOS and I followed the steps in:

but I obtained this error: 

Screenshot 2024-05-08 at 13.00.14.png
Regards, Gonzalo

Maxim Yurkin

unread,
May 8, 2024, 7:28:31 AM5/8/24
to adda-d...@googlegroups.com, Gonzalo Vargas
Dear Gonzalo,

Thanks for your interest in ADDA. As you have seen, we provide three options for MacOS, so can you please specify which
one you followed? And maybe also include the execution lines in your screenshot (it seems to be above the current frame
of view).

Maxim.

P.S. This answer has been forwarded to your e-mail address for your convenience. However, if you want to continue the
discussion please reply to the group's e-mail. You are also advised to check the corresponding discussion thread at
http://groups.google.com/group/adda-discuss and/or subscribe to it to receive automatic notifications, since other
answers/comments will not be necessarily forwarded to your e-mail.

Gonzalo Vargas

unread,
Jun 13, 2024, 7:40:22 AM6/13/24
to ADDA questions and answers
Dear Maxim, 
Thanks for your help on the last issue. I successfully run Adda on my computer. But now I have another issue trying to run it in the institute Cluster. I tried to run it in the sequencial mode and I get the next error:

[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


I didn't find anything similar in the discussion group, and I don't have a clue about how to solve it
Thanks for your help and regards, Gonzalo

Maxim Yurkin

unread,
Jun 13, 2024, 10:39:04 AM6/13/24
to adda-d...@googlegroups.com

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.

Gonzalo Vargas

unread,
Jun 14, 2024, 3:17:05 AM6/14/24
to ADDA questions and answers
Thanks! it works perfectly
Regards, Gonzalo

Reply all
Reply to author
Forward
0 new messages