You are not logged in.

#1 2016-04-27 13:42:25

IanF_
Member
Registered: 2016-04-27
Posts: 11

Problems on compiling exciting-boron dft code

Hello,
I'm somehow noob with Arch Linux, making a transition from debian and debian-like distros which I had succesfully compiled http://exciting-code.org/ . I've had already installed the dependencies: FoX xml library, open MPI, BLAS/LAPACK and libxc. I'm having these problems at the end of the compilation:

libtool: link: ranlib .libs/libxc.a
libtool: link: ( cd ".libs" && rm -f "libxc.la" && ln -s "../libxc.la" "libxc.la" )
/lib/cpp -C -ansi   ./libxc_master.F90 > ../src/libxc.f90
/bin/sh: /lib/cpp: No such file or directory
Makefile:2572: recipe for target 'xc_f90_lib_m.mod' failed
make[6]: *** [xc_f90_lib_m.mod] Error 127
make[6]: Leaving directory '/home/ian/exciting/src/libXC/src'
Makefile:474: recipe for target 'all' failed
make[5]: *** [all] Error 2
make[5]: Leaving directory '/home/ian/exciting/src/libXC/src'
Makefile:393: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/ian/exciting/src/libXC'
Makefile:301: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/ian/exciting/src/libXC'
../Make.common:110: recipe for target 'lib/libxc.a' failed
make[2]: *** [lib/libxc.a] Error 2
make[2]: Leaving directory '/home/ian/exciting/build/serial'
Makefile:3: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/ian/exciting/build/serial'
Makefile:16: recipe for target 'serial' failed
make: *** [serial] Error 2

What can I do to solve this? Thanks for helping!

Last edited by IanF_ (2016-04-29 16:28:59)

Offline

#2 2016-04-27 17:28:21

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Problems on compiling exciting-boron dft code

I have no idea what that error means. Use LC_ALL=C to get the output in english when posting to these forums.
Also please use [­code] tags when posting code.

Offline

#3 2016-04-28 00:07:26

IanF_
Member
Registered: 2016-04-27
Posts: 11

Re: Problems on compiling exciting-boron dft code

Thanks, I've edited the post for the output on terminal to be in english language. Sorry, about this newbie error.

Last edited by IanF_ (2016-04-28 00:08:11)

Offline

#4 2016-04-28 00:46:33

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Problems on compiling exciting-boron dft code

I meant bbcode [­code] tags for the part of the post that contains code: https://wiki.archlinux.org/index.php/fo … s_and_code

Unfortunately I don't understand why make would be looking for /lib/cpp.
Did you install base-devel package group? That may not help, but you'd probably want that installed if you're trying to build anything from source.

Since you're new to Arch, I should mention that when building programs for Arch, it's best to use makepkg to build a package that you can install with pacman. That way pacman keeps track of what files belong to the program.
Arch User Repository (AUR) is full of PKGBUILDs created by other users that you can use. It looks like no one has made one for exciting-boron yet, so if you want to learn more about packaging in arch linux, you could look into creating it yourself.

Offline

#5 2016-04-29 16:28:39

IanF_
Member
Registered: 2016-04-27
Posts: 11

Re: Problems on compiling exciting-boron dft code

I have edited the post, thanks.

Offline

#6 2016-04-30 14:05:27

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: Problems on compiling exciting-boron dft code

For clarity, you have followed the instructions on  http://exciting-code.org/how-to-compile ?

Which fortran compiler are you using ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2016-05-01 02:39:47

IanF_
Member
Registered: 2016-04-27
Posts: 11

Re: Problems on compiling exciting-boron dft code

I'm using gfortran, with MPI and SMP. For MPI, I've used open MPI and for SMP, I've used blas and lapack from arch repository.

Offline

#8 2016-05-01 03:46:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Problems on compiling exciting-boron dft code

I confirmed the error and checked the Makefile: the /lib/cpp is hardcoded into the Makefile.  That's just ridiculous: report it as a bug upstream.  How did you ever get this to build in debian?  You'd have the exact same problem there.  Did you build this same version in debian?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2016-05-03 02:41:27

IanF_
Member
Registered: 2016-04-27
Posts: 11

Re: Problems on compiling exciting-boron dft code

I've built this same version on Ubuntu 15.10 and in Ubuntu 16.04, which files can I show for you to contribute on helping this solution?

Offline

#10 2016-05-03 02:56:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Problems on compiling exciting-boron dft code

I have no idea what the equivalent tools / build scripts would be for Ubuntu.  But starting with the commands / files you use to build there would help.  There is not a /lib/cpp in Ubuntu is there?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#11 2016-05-03 03:16:31

IanF_
Member
Registered: 2016-04-27
Posts: 11

Re: Problems on compiling exciting-boron dft code

On ubuntu

 $which cpp 

gives me

 /usr/bin/cpp

the only thing I did to compile on Ubuntu was run make on the exciting-boron directory...

Last edited by IanF_ (2016-05-03 03:49:05)

Offline

#12 2016-05-03 09:51:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Problems on compiling exciting-boron dft code

`which cpp` isn't the relevant command.  The question is whether there is actually something at /lib/cpp.  If there is not something at /lib/cpp this would fail in exactly the same way on Ubuntu.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#13 2016-05-05 13:29:45

IanF_
Member
Registered: 2016-04-27
Posts: 11

Re: Problems on compiling exciting-boron dft code

The workaround that I saw on Ubuntu is to make an:

 ln -s /urs/bin/cpp /lib/cpp 

But now I'm having this:

 Makefile.mkmf:3629: recipe for target 'exciting' failed
make[3]: *** [exciting] Error 1
make[3]: Leaving directory '/home/ian/exciting/build/mpi'
../Make.common:35: recipe for target 'bin' failed
make[2]: *** [bin] Error 2
make[2]: Leaving directory '/home/ian/exciting/build/mpi'
Makefile:6: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/ian/exciting/build/mpi'
Makefile:19: recipe for target 'mpi' failed
make: *** [mpi] Error 2

Any guess?

Last edited by IanF_ (2016-05-05 13:30:00)

Offline

#14 2016-05-06 11:50:33

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: Problems on compiling exciting-boron dft code

IanF_ wrote:

The workaround that I saw on Ubuntu is to make an:

 ln -s /urs/bin/cpp /lib/cpp 

I think that may fail on arch as /lib is a symlink to /usr/lib , and i'm 90% sure pacman won't allow creating /lib/cpp .
Maybe

 ln -s /usr/bin/cpp /usr/lib/cpp

will work.

But now I'm having this:

 Makefile.mkmf:3629: recipe for target 'exciting' failed
make[3]: *** [exciting] Error 1
make[3]: Leaving directory '/home/ian/exciting/build/mpi'
../Make.common:35: recipe for target 'bin' failed
make[2]: *** [bin] Error 2
make[2]: Leaving directory '/home/ian/exciting/build/mpi'
Makefile:6: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/ian/exciting/build/mpi'
Makefile:19: recipe for target 'mpi' failed
make: *** [mpi] Error 2

Any guess?

The real error is above those lines, please post full output.

Last edited by Lone_Wolf (2016-05-06 11:50:48)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#15 2016-05-06 16:34:50

IanF_
Member
Registered: 2016-04-27
Posts: 11

Re: Problems on compiling exciting-boron dft code

Pacman was okay after I made that symbolic link...

Problem here:

 .make[3]: Entering directory '/home/ian/exciting/build/mpi'
mpif90    -O3 -march=native -fopenmp -DUSEOMP -ffree-line-length-0 -cpp -DXS -DISO -DTETRA -DLIBXC -DMPI -DMPIRHO -DMPISEC -Ifinclude  -c -I../../src   ../../src/versionfromdate.F90
mpif90  fourintp.o sumrule.o xc_pzca.o bsedgridinit.o r3dot.o gensymt2.o initocc.o genloss.o getngkmax.o xszoutpr3.o initlibxc.o wavefmt_apw.o getdocc.o factr.o potxc.o getridx.o z3minv.o eigvec.o putbsemat.o writevars.o writedielt.o mod_misc.o projsbf.o writeldapu.o oepvnl.o tetgather.o symt2app.o writepmatasc.o mod_kpoint.o fxc_lrcd.o angavsc0.o deldynmat.o mod_OEP_HF.o genvxcig.o bse.o mpisumrhoandmag.o gradzfmt.o removerhocr.o tetcalccw.o genvmatk.o dftim.o ylm.o setwpa.o getsac.o tetcalccwq.o chgdist.o mod_spin.o kernxc_bse3.o hmllolo.o sortidx.o newton.o testselfeplot.o init_freq.o ggamt_sp_2b.o findprim.o task_emac.o symrfmt.o zaxpyc.o bsedgrid.o calcmpwmix.o ematgntsum.o fderiv.o genwiq2.o modsym.o genwfsv.o r3dist.o writeqgen.o c_pbe.o stringtim.o getlocmt.o genexpiqr.o libxc_funcs.o setpatrd.o ggamt_sp_2a.o moke.o sorteval.o checkmt.o mod_DOS_optics_response.o rdmdsdn.o hartfock.o findsymi.o dcell.o mixmsec.o putlocmt.o lbfgs_driver.o phdos.o modmixadapt.o polyfit_diel.o rtozflm.o kintw.o symtr2.o acrgn.o updatespecies.o emattim.o phononstasklauncher.o x0tobin.o testacont.o harmonic.o polyfit.o dfgather.o task_band.o scrcoulint.o check_msecparameters.o writepchgs.o sigma.o connecta.o xszoutpr.o alpha2f.o genvmat.o gensdmat.o stepbound.o rfinp.o sbesseldm.o df.o readgamma.o testbarc.o mod_potential_and_density.o genphasedm.o l2int.o idfq.o genplot2d.o rdiracdme.o genplot3d.o checkinput_stm.o elfplot.o i3minv.o olpalo.o scrtetcalccw.o stheta.o clebgor.o ratfun.o fermisurf_dx.o r3minv.o writeevec.o writeematasc.o exactupdatevectors.o xc_am05.o writelsj.o init_mb.o ematqk1.o lchargelinene.o rdmwriteengy.o portstate.o rdmminn.o sort.o findgroupq.o genwiqggp.o symrvf.o calcbarcsing.o DIISseceqnfv.o timesec.o genksubpts.o mod_corestate.o writesym2.o ggamt_1.o construct_symvec.o wavefcr.o ioarray.o mod_timing.o writelat.o stheta_sq.o calcvxcnn.o chkptchk.o init_c.o addrhocr.o exxengy.o fxc_bse_ma03.o dfq.o restore2.o gensfacgp.o backup1.o setsac.o readevaldft.o force.o setupsym.o gradzfmtr.o libxcifc.o mod_Gvector.o backup0.o initsolver.o ggair_2b.o dielmat.o rvfcross.o writewiq2.o pmatxs2orig.o genffacg.o excycle.o readfermi.o rschrodint.o ematqalloc.o vxclolo.o writeqpts.o xsestimate.o pmatrad.o kramkron.o vnlrhomt.o solvediislin.o hybrids.o writesymi.o xschkstop.o gengvec.o r3mmt.o gndcheck.o calchead.o mod_plotlabels.o findocclims.o setupprojectedhamilton.o zrhogp.o calcpmat.o kernxc.o putscreen.o polynom.o modfvsystem.o linengy.o gencore.o writetorque.o rhonorm.o summations.o scf_cycle.o testmbrotmat.o interpol.o getbsediag.o phonondebug.o findsymcrys.o init1.o findsymeqiv.o remove_converged.o calcpmatgw.o calcjlam.o bsegenspec.o readvxcnn.o testprodfun.o writeeps.o fsmooth.o pmatradcor.o init_kqpts.o setlocmixind.o mod_fnames.o mapxsparameters.o modmain.o task_dos.o rfint.o ematqkgir.o findsymlat.o wigner3j.o getoccsv0.o kernxc_bse.o calceqpx.o rdmdexcdn.o zflmconj.o oepmagmt.o writepositions.o putemat.o genlmirep.o stdesc.o putevalfv.o phveff.o screencoul.o mixerifc.o olprad.o barcq0.o getevalqp.o seceqnss.o chkpt.o writefsm.o freqconvl.o getdevaldoccsv.o solvediis.o mod_atoms.o setbarcev.o init1offs.o copyfilesq0.o genbmatk.o scrwritepmat.o gwf2val.o hermite.o transmat.o readdveff.o r3mtm.o acpatrd.o gensymcmut.o sleepifc.o setsingc.o epsshift.o getoccsv.o exxengyk.o x_wc06.o transijst.o rdmvnln.o shift.o phlwidth.o ggair.o setuprod.o ftfun.o r3taxi.o genscclieff.o stheta_mp.o putx0.o spectrum.o plot3d.o phononinterpolate.o phfext.o readbroydsteps.o writeeval.o symrf.o raman_utils.o writepwmat.o libxc.o polyfit_diel_res.o mod_symmetry.o ggamt_sp_1.o prerotate_preconditioner.o xc_wc06.o symrvfir.o spectrum_m.o reciplat.o writephnlist.o writeexpiqr.o xsmain.o genlocmt.o eigenen.o init2.o versionfromdate.o genjlgq0r.o mod_force.o writetime.o iterativearpacksequn.o rot1tosph.o ematq.o modmpi.o vxcalo.o euler.o gauntyry.o intevecpm.o testxs.o getevecfv0.o xc_vbh.o matrix_tr.o mod_charge_and_moment.o writedveff.o screencoulsing.o putevecsv.o writeangmom.o Lebedev-Laikov.o r3cross.o interpolate_diel.o expand_prods.o rfpack.o getevecfv.o getngqmax.o getevecsvgw.o delevec.o calceqp.o getdlmm.o vxcistl.o rdmdedc.o xszoutpr2.o avscq.o gentim.o potx6.o emattest.o mixadapt.o getpmat.o idf.o writevxcnn.o rdmdkdc.o genparidxran.o zfinp.o gensumrls.o genvmatlu.o mod_lattice.o eixb.o olpistl.o wavefmt_lo.o plot1d.o diisinterfaces.o mod_energy.o mixpulay.o seceqn.o modspdb.o setumix.o i2str.o mod_convergence.o seceqnfv.o hamiltonoverlapocopy_UL.o calcevecplot.o writefermi.o check_raman.o zfmtinp.o sdelta_mp.o genqvkloff.o higam.o idfgather.o spline.o dyson.o invert.o getemat.o genpmatcor.o z2mm.o putevalsv.o calceta.o writeefg.o init_gw.o moment.o writeklist.o bandanalysis.o mrqmin.o phonon.o rhoplot.o rfmtinp.o modinputdom.o dyndiag.o grad2rfmt.o mod_hybrids.o reallocate.o writeloss.o mrqcof.o hmlistln.o testmixfun.o groundstatetasklauncher.o kkpmap.o setcorind.o ggamt_2a.o vxcrad.o ematqkgmt.o fxc_lrc.o checkmbrot.o gradrfmt.o gettetcw.o deltax.o gentetlinkp.o rdiracint.o symvect.o calc_vxnl.o oepmain.o cutoffs.o gammln.o writegqpts.o symsci0.o gwcycle.o SclControlModule.o poteff.o axangsu2.o modxcifc.o plotevecmix.o residualvector.o getevalfv.o rkhint.o oepvnlk_deltax.o cat_logfiles.o calcepsilon.o rescaleYS.o writedynamicalmatrices.o rotzflm.o dos.o xsinit.o fijk.o dbxcplot.o genptclg.o rotematrad.o autoradmt.o writesumrls.o findsym.o normalize.o getx0.o mod_gkvector.o factnm.o vnlrho.o bandstr.o mpiresumeevecfiles.o genppts.o getpemat.o calcwmix0.o genfilextread.o ztorflm.o gencfun.o z2mctm.o projectedsecequn.o oepmag.o qdepwsum.o genapwfr.o bsesoldiag.o writeqp.o putoccsv.o mod_LDA_LU.o ggamt_2b.o speciesmodules.o mod_muffin_tin.o phdisp.o rayleighqotient.o energykncr.o reformatdynamicalmatrices.o rschroddme.o calcselfc.o plotlapw.o calcupdatevector.o splline4.o r3mv.o rfmtctof.o init0.o diagsgi.o fermisurf.o gridsize.o getinveps.o genrlm.o orthog_corewf.o xc_xalpha.o genshtmat.o genkinmat.o xc_pbe.o combin.o dysonsym.o calcmicm.o vecfbz.o writegamma.o checkinput.o dynrtoq.o initlattice.o rdmminc.o oepvnlk.o eptest.o phinterp.o writelambda.o genmeffig.o getapwcmt.o mod_qpoint.o occupy.o genepmat.o energynn.o forcek.o genkerr.o genfilname.o modmixermsec.o xsfinit.o seceqnit.o calcminc.o mod_SHT.o i3mdet.o ioutils.o hmlistl.o sdelta_sq.o gengqvec.o gradrf.o gauleg.o vxcaa.o idxkkp.o mod_phonon.o rewritesorted.o fsmfield.o dyntask.o outfilenamestring.o genmbrotmat.o zmatinp.o getscreen.o putevecfv.o gndstate.o normalizep.o hamiltonandoverlapsetup.o plotevecprod.o calcminm.o rdmvnlc.o gensmallq.o zpotcoul.o hmlaa.o genjlgpr.o check_acoustic.o lopzflm.o writestate.o calcinveps.o energy.o calcrlamint.o r3mm.o readprecond.o dynqtor.o zfint.o puttetcw.o symdmat.o seceqnsv2.o charge.o writekpts.o ws_weight.o r3mdet.o writechg.o gw_writeqpts.o readselfx.o terminateqry.o gaunt.o rdirac.o getematrad.o gdft.o sphcover.o potnucl.o modxs.o ematbdlims.o calcbradket.o dynsymapp.o mod_eigensystem.o ggair_sp_2b.o writesigma.o writephn.o sdelta_fd.o zoutpr.o gaulag.o findmin3.o genpchgs.o mod_RDMFT.o plotevec.o gwtasklauncher.o r3frac.o allatoms.o printbandgap.o gaussj.o genveelu.o rdmentropy.o genylmgq.o epcouple.o mossbauer.o elnes.o testcoulomb.o genveffig.o rdmft.o rfinterp.o nfftifc.o effmass.o getunit.o seceqnsv.o gensigma.o connect.o c_pbe_gcor.o initldapu.o readspeciesxml.o writesccli.o olplolo.o packeff.o rdmdexcdc.o ggamt.o gwf2cr.o orthogonalise.o calcmpwipw.o getevalsv.o writeiad.o terminate.o atom.o getevecfvgw.o calc_vnlmat.o putbsediag.o xstasklauncher.o scl_xml_out_module.o ematqdealloc.o setrindex.o testmixcomp.o writeinfo.o mod_eigenvalue_occupancy.o genocc.o hmlint.o genylm.o inputmodules.o sphcrd.o rotaxang.o genwgrid.o ggair_sp_2a.o readingw.o genlofr.o relax.o readselfc.o xssave0.o readdyn.o putapwcmt.o mod_raman.o restore0.o gendmatlu.o cpFileToNodes.o potplot.o tasklauncher.o writepmatxs.o backup2.o writeemat.o writeengy.o phdveff.o ematbdcmbs.o rdmenergy.o tildeg.o warning.o mod_APW_LO.o sdelta.o hmlalo.o ggair_1.o xslinopt.o writekmapkq.o findkmapkq.o ggair_sp_1.o diisupdate.o genapwcmt.o genrmesh.o jacdavblock.o seceqnhf.o ctdfrac.o versions_gt.o putematrad.o calcbarcpw.o olpistln.o stm.o xc_pwca.o transik.o writehistory.o getbsemat.o secequnfvprecond.o gcd.o genylmg.o raman.o rereadinput.o rdmvaryc.o findkpt.o xcd_pwca.o genidxlo.o filedel.o writeprecond.o writekerr.o writesym.o vecplot.o genpmat.o iscollinear.o rlkhint.o mod_plotting.o oepresk.o expand_evec.o hmlrad.o getevecsv.o reorderdynmat.o updateevecfv.o wfplot.o rhovalk.o screen.o write_current_to_broyden_file.o prep_ang_int.o shg.o timing.o writegeometryxml.o rdmwritededn.o tqgamma.o fxc_alda_check.o genpwmat.o r2str.o genpmatxs.o gw_main.o initatomcounter.o init_relax.o spectrum_res.o pade.o xsgauntgen.o x0toasc.o ematrad.o erf.o rdmdedn.o rdmengyxc.o match.o intevecpp.o setdefault.o task_epsev.o precondspectrumupdate.o gengpvec.o gndstateq.o geomplot.o findsymsite.o writelinen.o writeforce.o gendmat.o i3mtv.o modtetra.o dynsym.o ggair_2a.o findgqmap.o modfxcifc.o calcbarcmb.o scrgeneigvec.o zfinp2.o rdmvaryn.o r3mtv.o restore1.o potential.o qdepwtet.o setup_YY.o symrfir.o brzint.o exccoulint.o potcoul.o genpmatxscor.o phdelete.o xsgeneigvec.o construct_chartabl.o phcell.o propertylauncher.o mod_constants.o zpotclmt.o findgntn0.o modgw.o findsymgenr.o intipw.o testmain.o nllsq.o flushifc.o x_pbe.o findigp0.o derfc.o calcselfx.o fint.o rhoinit.o ncells.o plot2d.o minenergy.o wavefmt.o putpmat.o olpaa.o bandgap.o z2mmct.o stheta_fd.o writesymt2.o ematqk.o readstate.o calctildeg.o rfarray.o setuphsvect.o rschrodapp.o sbessel.o fxc_pwca.o genrhoir.o main.o genauxf.o getevalsv0.o zfftifc.o expand_basis.o shelsort.o findband.o rfirvec.o writepmat.o -o exciting   libarpack.a -L./ -llapack -lblas fftlib.a libbzint.a libmsec.a leblaiklib.a liblbfgs.a -L./lib -lxc -lFoX_dom -lFoX_sax -lFoX_utils -lFoX_wcml -lFoX_wxml -lFoX_fsys  -lFoX_common
genwfsv.o: In function `genwfsv_._omp_fn.0':
genwfsv.f90:(.text+0x1b): undefined reference to `omp_get_num_threads'
genwfsv.f90:(.text+0x22): undefined reference to `omp_get_thread_num'
genwfsv.o: In function `genwfsv_':
genwfsv.f90:(.text+0xfe7): undefined reference to `GOMP_parallel'
hartfock.o: In function `hartfock_._omp_fn.0':
hartfock.f90:(.text+0x8d): undefined reference to `omp_get_num_threads'
hartfock.f90:(.text+0x9a): undefined reference to `omp_get_thread_num'
hartfock.f90:(.text+0x2e1): undefined reference to `GOMP_barrier'
hartfock.f90:(.text+0x313): undefined reference to `GOMP_barrier'
hartfock.o: In function `hartfock_':
hartfock.f90:(.text+0x10e5): undefined reference to `GOMP_parallel'
rdmminn.o: In function `rdmminn_._omp_fn.0':
rdmminn.f90:(.text+0x12): undefined reference to `omp_get_num_threads'
rdmminn.f90:(.text+0x1a): undefined reference to `omp_get_thread_num'
rdmminn.f90:(.text+0x50): undefined reference to `GOMP_critical_start'
rdmminn.f90:(.text+0xc3): undefined reference to `GOMP_critical_end'
rdmminn.f90:(.text+0xdc): undefined reference to `GOMP_barrier'
rdmminn.o: In function `rdmminn_':
rdmminn.f90:(.text+0x2f6): undefined reference to `GOMP_parallel'
DIISseceqnfv.o: In function `diisseceqnfv_':
DIISseceqnfv.F90:(.text+0x406): undefined reference to `GOMP_critical_start'
DIISseceqnfv.F90:(.text+0x42b): undefined reference to `GOMP_critical_end'
vnlrhomt.o: In function `vnlrhomt_._omp_fn.0':
vnlrhomt.f90:(.text+0x28): undefined reference to `omp_get_num_threads'
vnlrhomt.f90:(.text+0x30): undefined reference to `omp_get_thread_num'
vnlrhomt.o: In function `vnlrhomt_._omp_fn.1':
vnlrhomt.f90:(.text+0x4c7): undefined reference to `omp_get_num_threads'
vnlrhomt.f90:(.text+0x4cf): undefined reference to `omp_get_thread_num'
vnlrhomt.o: In function `vnlrhomt_':
vnlrhomt.f90:(.text+0x9b4): undefined reference to `GOMP_parallel'
vnlrhomt.f90:(.text+0xac6): undefined reference to `GOMP_parallel'
zrhogp.o: In function `zrhogp_._omp_fn.0':
zrhogp.f90:(.text+0x1a): undefined reference to `omp_get_num_threads'
zrhogp.f90:(.text+0x21): undefined reference to `omp_get_thread_num'
zrhogp.o: In function `zrhogp_':
zrhogp.f90:(.text+0x671): undefined reference to `GOMP_parallel'
modfvsystem.o: In function `__modfvsystem_MOD_hermitianmatrixvector._omp_fn.0':
modfvsystem.f90:(.text+0xae): undefined reference to `omp_get_num_threads_'
modfvsystem.f90:(.text+0xb5): undefined reference to `omp_get_thread_num_'
modfvsystem.f90:(.text+0x166): undefined reference to `GOMP_barrier'
modfvsystem.o: In function `__modfvsystem_MOD_hermitianmatrixvector':
modfvsystem.f90:(.text+0x276d): undefined reference to `GOMP_parallel'
modfvsystem.o: In function `__modfvsystem_MOD_solvewithlapack':
modfvsystem.f90:(.text+0x3bef): undefined reference to `GOMP_critical_start'
modfvsystem.f90:(.text+0x3bf4): undefined reference to `GOMP_critical_end'
gencore.o: In function `gencore_._omp_fn.0':
gencore.f90:(.text+0x28): undefined reference to `omp_get_num_threads'
gencore.f90:(.text+0x30): undefined reference to `omp_get_thread_num'
gencore.f90:(.text+0x1a1): undefined reference to `GOMP_critical_start'
gencore.f90:(.text+0x495): undefined reference to `GOMP_critical_end'
gencore.f90:(.text+0x6db): undefined reference to `GOMP_critical_end'
gencore.f90:(.text+0x71c): undefined reference to `GOMP_critical_end'
gencore.o: In function `gencore_':
gencore.f90:(.text+0xb9d): undefined reference to `GOMP_parallel'
gencore.o: In function `gencore_._omp_fn.0':
gencore.f90:(.text+0x4c1): undefined reference to `GOMP_barrier'
putevalfv.o: In function `putevalfv_':
putevalfv.f90:(.text+0x1c4): undefined reference to `GOMP_critical_start'
putevalfv.f90:(.text+0x45e): undefined reference to `GOMP_critical_end'
seceqnss.o: In function `seceqnss_':
seceqnss.f90:(.text+0x32c6): undefined reference to `GOMP_critical_start'
seceqnss.f90:(.text+0x32cb): undefined reference to `GOMP_critical_end'
genjlgq0r.o: In function `genjlgq0r_._omp_fn.0':
genjlgq0r.f90:(.text+0x16): undefined reference to `omp_get_num_threads'
genjlgq0r.f90:(.text+0x1e): undefined reference to `omp_get_thread_num'
genjlgq0r.f90:(.text+0xf9): undefined reference to `GOMP_barrier'
genjlgq0r.o: In function `genjlgq0r_':
genjlgq0r.f90:(.text+0x1e0): undefined reference to `GOMP_parallel'
putevecsv.o: In function `putevecsv_':
putevecsv.f90:(.text+0x19b): undefined reference to `GOMP_critical_start'
putevecsv.f90:(.text+0x40c): undefined reference to `GOMP_critical_end'
getevecfv.o: In function `getevecfv_':
getevecfv.f90:(.text+0x1e8): undefined reference to `GOMP_critical_start'
getevecfv.f90:(.text+0xd4f): undefined reference to `GOMP_critical_end'
zfinp.o: In function `zfinp_._omp_fn.0':
zfinp.f90:(.text+0x12): undefined reference to `omp_get_num_threads'
zfinp.f90:(.text+0x1a): undefined reference to `omp_get_thread_num'
zfinp.f90:(.text+0x116): undefined reference to `GOMP_barrier'
zfinp.f90:(.text+0x11f): undefined reference to `GOMP_atomic_start'
zfinp.o: In function `zfinp_':
zfinp.f90:(.text+0x1cf): undefined reference to `GOMP_parallel'
zfinp.o: In function `zfinp_._omp_fn.0':
zfinp.f90:(.text+0x149): undefined reference to `GOMP_atomic_end'
zfmtinp.o: In function `zfmtinp_._omp_fn.0':
zfmtinp.f90:(.text+0x16): undefined reference to `omp_get_num_threads'
zfmtinp.f90:(.text+0x1d): undefined reference to `omp_get_thread_num'
zfmtinp.o: In function `zfmtinp_':
zfmtinp.f90:(.text+0x24b): undefined reference to `GOMP_parallel'
putevalsv.o: In function `putevalsv_':
putevalsv.f90:(.text+0x16d): undefined reference to `GOMP_critical_start'
putevalsv.f90:(.text+0x3cf): undefined reference to `GOMP_critical_end'
putoccsv.o: In function `putoccsv_':
putoccsv.f90:(.text+0x16d): undefined reference to `GOMP_critical_start'
putoccsv.f90:(.text+0x3ca): undefined reference to `GOMP_critical_end'
fermisurf.o: In function `fermisurf_._omp_fn.0':
fermisurf.f90:(.text+0xd1): undefined reference to `omp_get_num_threads'
fermisurf.f90:(.text+0xdf): undefined reference to `omp_get_thread_num'
fermisurf.f90:(.text+0x1aa): undefined reference to `GOMP_critical_start'
fermisurf.f90:(.text+0x226): undefined reference to `GOMP_critical_end'
fermisurf.f90:(.text+0x359): undefined reference to `GOMP_barrier'
fermisurf.f90:(.text+0x3b1): undefined reference to `GOMP_barrier'
fermisurf.o: In function `fermisurf_':
fermisurf.f90:(.text+0x525): undefined reference to `GOMP_parallel'
forcek.o: In function `forcek_':
forcek.f90:(.text+0x379b): undefined reference to `GOMP_critical_start'
forcek.f90:(.text+0x37f8): undefined reference to `GOMP_critical_end'
seceqnit.o: In function `seceqnit_._omp_fn.1':
seceqnit.f90:(.text+0x54): undefined reference to `GOMP_loop_ordered_static_start'
seceqnit.f90:(.text+0x89): undefined reference to `GOMP_ordered_start'
seceqnit.f90:(.text+0x1a4): undefined reference to `GOMP_ordered_end'
seceqnit.f90:(.text+0x57a): undefined reference to `GOMP_loop_ordered_static_next'
seceqnit.f90:(.text+0x587): undefined reference to `GOMP_loop_end'
seceqnit.o: In function `seceqnit_._omp_fn.0':
seceqnit.f90:(.text+0x693): undefined reference to `omp_get_num_threads'
seceqnit.f90:(.text+0x6a1): undefined reference to `omp_get_thread_num'
seceqnit.f90:(.text+0x1530): undefined reference to `GOMP_barrier'
seceqnit.f90:(.text+0x16f9): undefined reference to `GOMP_barrier'
seceqnit.o: In function `seceqnit_':
seceqnit.f90:(.text+0x19aa): undefined reference to `GOMP_parallel'
seceqnit.f90:(.text+0x19f0): undefined reference to `GOMP_parallel'
seceqnit.f90:(.text+0x1a59): undefined reference to `GOMP_critical_start'
seceqnit.f90:(.text+0x1a5e): undefined reference to `GOMP_critical_end'
putevecfv.o: In function `putevecfv_':
putevecfv.f90:(.text+0x220): undefined reference to `GOMP_critical_start'
putevecfv.f90:(.text+0x4ee): undefined reference to `GOMP_critical_end'
zpotcoul.o: In function `zpotcoul_._omp_fn.0':
zpotcoul.f90:(.text+0x31): undefined reference to `omp_get_num_threads'
zpotcoul.f90:(.text+0x39): undefined reference to `omp_get_thread_num'
zpotcoul.o: In function `zpotcoul_._omp_fn.1':
zpotcoul.f90:(.text+0x217): undefined reference to `omp_get_num_threads'
zpotcoul.f90:(.text+0x225): undefined reference to `omp_get_thread_num'
zpotcoul.f90:(.text+0x75b): undefined reference to `GOMP_barrier'
zpotcoul.f90:(.text+0x760): undefined reference to `omp_get_num_threads_'
zpotcoul.f90:(.text+0x767): undefined reference to `omp_get_thread_num_'
zpotcoul.f90:(.text+0x7aa): undefined reference to `GOMP_barrier'
zpotcoul.o: In function `zpotcoul_._omp_fn.3':
zpotcoul.f90:(.text+0x9ab): undefined reference to `omp_get_num_threads'
zpotcoul.f90:(.text+0x9ba): undefined reference to `omp_get_thread_num'
zpotcoul.f90:(.text+0xe2a): undefined reference to `GOMP_barrier'
zpotcoul.f90:(.text+0xe2f): undefined reference to `omp_get_num_threads_'
zpotcoul.f90:(.text+0xe36): undefined reference to `omp_get_thread_num_'
zpotcoul.f90:(.text+0xe76): undefined reference to `GOMP_barrier'
zpotcoul.o: In function `zpotcoul_._omp_fn.2':
zpotcoul.f90:(.text+0xf5b): undefined reference to `omp_get_num_threads'
zpotcoul.f90:(.text+0xf63): undefined reference to `omp_get_thread_num'
zpotcoul.f90:(.text+0x136e): undefined reference to `GOMP_barrier'
zpotcoul.o: In function `zpotcoul_':
zpotcoul.f90:(.text+0x1790): undefined reference to `GOMP_parallel'
zpotcoul.f90:(.text+0x210c): undefined reference to `GOMP_parallel'
zpotcoul.f90:(.text+0x246e): undefined reference to `GOMP_parallel'
zpotcoul.f90:(.text+0x28a3): undefined reference to `GOMP_parallel'
genjlgpr.o: In function `genjlgpr_._omp_fn.0':
genjlgpr.f90:(.text+0x18): undefined reference to `omp_get_num_threads'
genjlgpr.f90:(.text+0x1f): undefined reference to `omp_get_thread_num'
genjlgpr.f90:(.text+0xbb): undefined reference to `GOMP_barrier'
genjlgpr.o: In function `genjlgpr_':
genjlgpr.f90:(.text+0x18d): undefined reference to `GOMP_parallel'
allatoms.o: In function `allatoms_._omp_fn.0':
allatoms.f90:(.text+0x53): undefined reference to `omp_get_num_threads'
allatoms.f90:(.text+0x60): undefined reference to `omp_get_thread_num'
allatoms.f90:(.text+0x2c2): undefined reference to `GOMP_barrier'
allatoms.o: In function `allatoms_':
allatoms.f90:(.text+0x50c): undefined reference to `GOMP_parallel'
allatoms.o: In function `allatoms_._omp_fn.0':
allatoms.f90:(.text+0x2af): undefined reference to `GOMP_barrier'
epcouple.o: In function `epcouple_._omp_fn.0':
epcouple.f90:(.text+0x57): undefined reference to `omp_get_num_threads'
epcouple.f90:(.text+0x64): undefined reference to `omp_get_thread_num'
epcouple.f90:(.text+0x466): undefined reference to `GOMP_critical_start'
epcouple.f90:(.text+0x4f4): undefined reference to `GOMP_critical_end'
epcouple.f90:(.text+0x573): undefined reference to `GOMP_barrier'
epcouple.f90:(.text+0x5a1): undefined reference to `GOMP_barrier'
epcouple.o: In function `epcouple_':
epcouple.f90:(.text+0x288b): undefined reference to `GOMP_parallel'
effmass.o: In function `effmass_._omp_fn.0':
effmass.f90:(.text+0xce): undefined reference to `omp_get_num_threads'
effmass.f90:(.text+0xdb): undefined reference to `omp_get_thread_num'
effmass.f90:(.text+0x3df): undefined reference to `GOMP_barrier'
effmass.f90:(.text+0x43b): undefined reference to `GOMP_barrier'
effmass.o: In function `effmass_':
effmass.f90:(.text+0x870): undefined reference to `GOMP_parallel'
seceqnsv.o: In function `seceqnsv_._omp_fn.0':
seceqnsv.f90:(.text+0x1fd): undefined reference to `omp_get_num_threads'
seceqnsv.f90:(.text+0x20c): undefined reference to `omp_get_thread_num'
seceqnsv.f90:(.text+0x902): undefined reference to `GOMP_barrier'
seceqnsv.o: In function `seceqnsv_':
seceqnsv.f90:(.text+0x3a58): undefined reference to `GOMP_parallel'
seceqnsv.f90:(.text+0x3c66): undefined reference to `GOMP_critical_start'
seceqnsv.f90:(.text+0x3c6b): undefined reference to `GOMP_critical_end'
atom.o: In function `atom_._omp_fn.0':
atom.f90:(.text+0x18): undefined reference to `omp_get_num_threads'
atom.f90:(.text+0x1f): undefined reference to `omp_get_thread_num'
atom.o: In function `atom_':
atom.f90:(.text+0xd4f): undefined reference to `GOMP_parallel'
atom.o: In function `atom_._omp_fn.0':
atom.f90:(.text+0xe7): undefined reference to `GOMP_barrier'
hmlint.o: In function `hmlint_._omp_fn.0':
hmlint.f90:(.text+0x79): undefined reference to `omp_get_num_threads'
hmlint.f90:(.text+0x80): undefined reference to `omp_get_thread_num'
hmlint.f90:(.text+0x431): undefined reference to `GOMP_barrier'
hmlint.o: In function `hmlint_._omp_fn.1':
hmlint.f90:(.text+0x53c): undefined reference to `omp_get_num_threads'
hmlint.f90:(.text+0x543): undefined reference to `omp_get_thread_num'
hmlint.f90:(.text+0x941): undefined reference to `GOMP_barrier'
hmlint.o: In function `hmlint_._omp_fn.2':
hmlint.f90:(.text+0xa59): undefined reference to `omp_get_num_threads'
hmlint.f90:(.text+0xa60): undefined reference to `omp_get_thread_num'
hmlint.f90:(.text+0xdd9): undefined reference to `GOMP_barrier'
hmlint.o: In function `hmlint_':
hmlint.f90:(.text+0x2dca): undefined reference to `GOMP_parallel'
hmlint.f90:(.text+0x3e98): undefined reference to `GOMP_parallel'
hmlint.f90:(.text+0x5bbe): undefined reference to `GOMP_parallel'
seceqnhf.o: In function `seceqnhf_':
seceqnhf.f90:(.text+0xb7): undefined reference to `GOMP_critical_start'
seceqnhf.f90:(.text+0x142): undefined reference to `GOMP_critical_end'
olpistln.o: In function `olpistln_._omp_fn.0':
olpistln.f90:(.text+0x14): undefined reference to `omp_get_num_threads'
olpistln.f90:(.text+0x1c): undefined reference to `omp_get_thread_num'
olpistln.f90:(.text+0x186): undefined reference to `GOMP_barrier'
olpistln.o: In function `olpistln_':
olpistln.f90:(.text+0x3ec): undefined reference to `GOMP_parallel'
xc_pwca.o: In function `xc_pwca_._omp_fn.0':
xc_pwca.f90:(.text+0x1c): undefined reference to `omp_get_num_threads'
xc_pwca.f90:(.text+0x24): undefined reference to `omp_get_thread_num'
xc_pwca.o: In function `xc_pwca_':
xc_pwca.f90:(.text+0x8c2): undefined reference to `GOMP_parallel'
xc_pwca.o: In function `xc_pwca_._omp_fn.0':
xc_pwca.f90:(.text+0x85c): undefined reference to `GOMP_barrier'
rdmvaryc.o: In function `rdmvaryc_._omp_fn.0':
rdmvaryc.f90:(.text+0x17): undefined reference to `omp_get_num_threads'
rdmvaryc.f90:(.text+0x1f): undefined reference to `omp_get_thread_num'
rdmvaryc.f90:(.text+0x5a): undefined reference to `GOMP_critical_start'
rdmvaryc.f90:(.text+0xcd): undefined reference to `GOMP_critical_end'
rdmvaryc.f90:(.text+0x100): undefined reference to `GOMP_barrier'
rdmvaryc.o: In function `rdmvaryc_':
rdmvaryc.f90:(.text+0x280): undefined reference to `GOMP_parallel'
oepresk.o: In function `oepresk_._omp_fn.0':
oepresk.f90:(.text+0x2b): undefined reference to `omp_get_num_threads'
oepresk.f90:(.text+0x33): undefined reference to `omp_get_thread_num'
oepresk.o: In function `oepresk_._omp_fn.1':
oepresk.f90:(.text+0x80b): undefined reference to `omp_get_num_threads'
oepresk.f90:(.text+0x813): undefined reference to `omp_get_thread_num'
oepresk.o: In function `oepresk_':
oepresk.f90:(.text+0x26ed): undefined reference to `GOMP_parallel'
oepresk.f90:(.text+0x2ed8): undefined reference to `GOMP_parallel'
getevecsv.o: In function `getevecsv_':
getevecsv.f90:(.text+0x16d): undefined reference to `GOMP_critical_start'
getevecsv.f90:(.text+0x9b8): undefined reference to `GOMP_critical_end'
rhovalk.o: In function `rhovalk_':
rhovalk.f90:(.text+0x2483): undefined reference to `GOMP_critical_start'
rhovalk.f90:(.text+0x305b): undefined reference to `GOMP_critical_end'
symrfir.o: In function `symrfir_._omp_fn.0':
symrfir.f90:(.text+0x1b): undefined reference to `omp_get_num_threads'
symrfir.f90:(.text+0x23): undefined reference to `omp_get_thread_num'
symrfir.o: In function `symrfir_':
symrfir.f90:(.text+0x7c2): undefined reference to `GOMP_parallel'
symrfir.o: In function `symrfir_._omp_fn.0':
symrfir.f90:(.text+0x3db): undefined reference to `GOMP_barrier'
rhoinit.o: In function `rhoinit_._omp_fn.1':
rhoinit.f90:(.text+0x12): undefined reference to `omp_get_num_threads'
rhoinit.f90:(.text+0x19): undefined reference to `omp_get_thread_num'
rhoinit.o: In function `rhoinit_._omp_fn.0':
rhoinit.f90:(.text+0x372): undefined reference to `omp_get_num_threads'
rhoinit.f90:(.text+0x379): undefined reference to `omp_get_thread_num'
rhoinit.o: In function `rhoinit_._omp_fn.3':
rhoinit.f90:(.text+0x49d): undefined reference to `omp_get_num_threads'
rhoinit.f90:(.text+0x4a4): undefined reference to `omp_get_thread_num'
rhoinit.f90:(.text+0x772): undefined reference to `GOMP_barrier'
rhoinit.o: In function `rhoinit_._omp_fn.2':
rhoinit.f90:(.text+0xaf6): undefined reference to `omp_get_num_threads'
rhoinit.f90:(.text+0xafe): undefined reference to `omp_get_thread_num'
rhoinit.f90:(.text+0x2adf): undefined reference to `GOMP_barrier'
rhoinit.f90:(.text+0x2ae4): undefined reference to `omp_get_num_threads_'
rhoinit.f90:(.text+0x2af2): undefined reference to `omp_get_thread_num_'
rhoinit.f90:(.text+0x2c40): undefined reference to `GOMP_barrier'
rhoinit.o: In function `rhoinit_':
rhoinit.f90:(.text+0x4dbb): undefined reference to `GOMP_parallel'
rhoinit.f90:(.text+0x4f1d): undefined reference to `GOMP_parallel'
rhoinit.f90:(.text+0x6492): undefined reference to `GOMP_parallel'
rhoinit.f90:(.text+0x655d): undefined reference to `GOMP_parallel'
rhoinit.o: In function `rhoinit_._omp_fn.1':
rhoinit.f90:(.text+0x358): undefined reference to `GOMP_barrier'
rhoinit.o: In function `rhoinit_._omp_fn.0':
rhoinit.f90:(.text+0x47a): undefined reference to `GOMP_barrier'
genrhoir.o: In function `genrhoir_':
genrhoir.f90:(.text+0xabe): undefined reference to `GOMP_critical_start'
genrhoir.f90:(.text+0x1445): undefined reference to `GOMP_critical_end'
collect2: error: ld returned 1 exit status
Makefile.mkmf:3628: recipe for target 'exciting' failed
make[3]: *** [exciting] Error 1
make[3]: Leaving directory '/home/ian/exciting/build/mpi'
../Make.common:35: recipe for target 'bin' failed
make[2]: *** [bin] Error 2
make[2]: Leaving directory '/home/ian/exciting/build/mpi'
Makefile:6: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/ian/exciting/build/mpi'
Makefile:19: recipe for target 'mpi' failed
make: *** [mpi] Error 2

Offline

#16 2016-05-06 16:47:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Problems on compiling exciting-boron dft code

You need to install the dependencies.  Many of those errors are due to not having (or finding) libgomp installed.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#17 2016-05-06 23:23:09

IanF_
Member
Registered: 2016-04-27
Posts: 11

Re: Problems on compiling exciting-boron dft code

I have installed in my computer both, multilib/gcc-libs-multilib 5.3.0-5 and multilib/lib32-gcc-libs 5.3.0-5 . The libgomp package appears to be part of the gcc lib on base-devel group but I can't resolve the dependence or install the gcc from base-devel, maybe the compiler are not finding the libs... How to solve this?

Last edited by IanF_ (2016-05-06 23:34:05)

Offline

#18 2016-05-07 01:12:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Problems on compiling exciting-boron dft code

IanF_ wrote:

The libgomp package appears to be part of the gcc lib

Based on what?  Those functions are not found in any file under /usr/include on my system.

EDIT: oops, it's not needed in an include file, but the lib is needed, and you are right this is part of gcc-libs.  But the error is still due to not linking to to libgomp.  Adding -lgomp to the linker line should do it.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#19 2016-05-08 05:33:25

IanF_
Member
Registered: 2016-04-27
Posts: 11

Re: Problems on compiling exciting-boron dft code

Trilby wrote:

EDIT: oops, it's not needed in an include file, but the lib is needed, and you are right this is part of gcc-libs.  But the error is still due to not linking to to libgomp.  Adding -lgomp to the linker line should do it.

Sorry, I don't know how to add -lgomp to the linker line... Could you help me?

Offline

#20 2016-05-08 12:08:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Problems on compiling exciting-boron dft code

Not really.  The upstream source just seems severely broken.  I'd need to make symlinks in odd places to even start which I'd rather not do - then I'd have to dig through oddly-written makefiles to find where this needs to be added (if you are going to try it, look for an LDLIBS variable, though I wouldn't be surprised if they did this differently as well).  Odds are that even when this is fixed, it will just push the problem back to some other issue.

You should report these issues upstream.  It would be trivial for the authors of the software to fix both of these problems as they know how they've hacked together their makefiles.  If they are either unwilling or unable to make their software build properly, I'd worry about other issues of the software.

EDIT: it seems they suggest the best way to contact them is through their discussion forum.  But other build errors reported on their forum seem to be ignored.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#21 2016-06-04 01:26:24

IanF_
Member
Registered: 2016-04-27
Posts: 11

Re: Problems on compiling exciting-boron dft code

Hello, I've sent a message to the exciting forum and a person told me this:
"The compiler/linker cannot find the libgomp.a library. You have to find it. The typical location is something like /usr/lib/gcc/x86_64-linux-gnu/4.7/libgomp.a . Once you found it, edit build/make.inc file. There is a line with the following.
LIBS = $(LIB_ARP) $(LIB_LPK) $(LIB_FFT) $(LIB_BZINT)
Simply append the full file name (including the path) to this line. If the above location is assumed, the updated line looks as follows.
LIBS = $(LIB_ARP) $(LIB_LPK) $(LIB_FFT) $(LIB_BZINT) /usr/lib/gcc/x86_64-linux-gnu/4.7/libgomp.a
After these actions, there should be no problem to build the binary."

But I haven't found the libgomp.a on /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1  . What can I do ?

Last edited by IanF_ (2016-06-04 01:26:49)

Offline

#22 2016-06-04 02:04:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Problems on compiling exciting-boron dft code

You will not find libgomp.a anywhere on an arch system (except in mingw libs used for cross compiling windows binaries).  Static libs are not distributed in arch (or most other linuxes as far as I know).  You'd have to rebuild gcc yourself and add static libraries.

You could try adding '-lgomp' to that line instead and see it if will work with dynamic linking.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB