Undefined reference to `dgesvd_' issue  [SOLVED]

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
dikapandu
Posts: 3
Joined: Fri Jun 19, 2020 9:55 am

Undefined reference to `dgesvd_' issue  [SOLVED]

Post by dikapandu » Fri Aug 14, 2020 5:38 am

Hi.

Recently I installed a fresh Ubuntu 18.04 and start Abinit 9.0.4 compilation with the configuration as stated in here.

After I installed the fallbacks, do ./configure, and make, I got this error:

Code: Select all

../../src/28_numeric_noabirule/lib28_numeric_noabirule.a(m_numeric_tools.o): In function `__m_numeric_tools_MOD_llsfit_svd':
/home/dika/abinit-9.0.4/build/shared/common/src/28_numeric_noabirule/../../../../../shared/common/src/28_numeric_noabirule/m_numeric_tools.F90:2303: undefined reference to `dgesvd_'
collect2: error: ld returned 1 exit status
Makefile:4247: recipe for target 'abinit' failed
make[3]: *** [abinit] Error 1
make[3]: Leaving directory '/home/dika/abinit-9.0.4/build/src/98_main'
Makefile:1227: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/dika/abinit-9.0.4/build/src'
Makefile:1430: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/dika/abinit-9.0.4/build'
Makefile:1354: recipe for target 'all' failed
make: *** [all] Error 2
Is there something to do to fix this problem?

Thank you.
Dika.

User avatar
jbeuken
Posts: 365
Joined: Tue Aug 18, 2009 9:24 pm
Contact:

Re: Undefined reference to `dgesvd_' issue

Post by jbeuken » Sun Aug 16, 2020 6:00 pm

Hi,

I noticed that under Ubuntu >=18, the python command doesn't exist even if a python package ( 2.x or 3.x ) is installed... :shock:

you have to manually create a symbolic link or use the os script :

Code: Select all

update-alternatives

Code: Select all

cd /usr/bin
ln -s python3.6 python
during the ./configure, there is a python script that is executed .
------
Jean-Michel Beuken
Computer Scientist

dikapandu
Posts: 3
Joined: Fri Jun 19, 2020 9:55 am

Re: Undefined reference to `dgesvd_' issue

Post by dikapandu » Thu Aug 20, 2020 5:12 am

Sorry for my late response.

The problem was still not been solved sir. Here is the output of the program after I applied your solution:

Code: Select all

../../src/28_numeric_noabirule/lib28_numeric_noabirule.a(m_hide_lapack.o): In function `__m_hide_lapack_MOD_wrap_cheev':
/home/dika/abinit/abinit-9.0.4/build/shared/common/src/28_numeric_noabirule/../../../../../shared/common/src/28_numeric_noabirule/m_hide_lapack.F90:241: undefined reference to `cheev_'
../../src/28_numeric_noabirule/lib28_numeric_noabirule.a(m_numeric_tools.o): In function `__m_numeric_tools_MOD_llsfit_svd':
/home/dika/abinit/abinit-9.0.4/build/shared/common/src/28_numeric_noabirule/../../../../../shared/common/src/28_numeric_noabirule/m_numeric_tools.F90:2303: undefined reference to `dgesvd_'
collect2: error: ld returned 1 exit status
Makefile:4247: recipe for target 'abinit' failed
make[3]: *** [abinit] Error 1
make[3]: Leaving directory '/home/dika/abinit/abinit-9.0.4/build/src/98_main'
Makefile:1227: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/dika/abinit/abinit-9.0.4/build/src'
Makefile:1430: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/dika/abinit/abinit-9.0.4/build'
Makefile:1354: recipe for target 'all' failed
make: *** [all] Error 2

User avatar
jbeuken
Posts: 365
Joined: Tue Aug 18, 2009 9:24 pm
Contact:

Re: Undefined reference to `dgesvd_' issue

Post by jbeuken » Thu Aug 20, 2020 3:13 pm

I'm sorry, my mistake...

it seems it's a problem with the linalg librairy !

I need more information

which options do you use for the ./configure?
if you use an ac file, what is the content?
the output at the end of the configure

jmb
------
Jean-Michel Beuken
Computer Scientist

dikapandu
Posts: 3
Joined: Fri Jun 19, 2020 9:55 am

Re: Undefined reference to `dgesvd_' issue

Post by dikapandu » Fri Aug 21, 2020 4:42 am

Sir, fortunately I successfully built the program.

After I installed

Code: Select all

sudo apt-get install libatlas-base-dev liblapack-dev libblas-dev
Then I did ./configure in top-level directory of Abinit, not in working directory as stated in here.

The problem when I ../configure --with-config-file="dika.ac9" on user-created build folder, the program still mentioned about installing hdf5 using fallbacks (even though I've already built fallbacks and copy the output of ./build-abinit-fallbacks.sh to the configuration file). When I tried to ./configure in top level of abinit directory, the program worked like a charm. :D

Thank you for your kind reply Sir.
Dika

Locked