Re: [Pw_forum] installation error: linking to Fortran libraries from C fails
Hello, I downloaded colorgcc from here http://packages.ubuntu.com/precise/all/colorgcc/download Then, I was able to run ./configure successfully. Then $ make all ran for quiet some time and ended with gfortran -o xspectra.x xspectra.o ./xspectra_mod.o ./radin_mod.o > ./mygetK.o ./ipoolscatter.o ./lr_sm1_psi.o ./orthoUatwfc_k.o > ./read_k_points.o ./reset_k_points_and_reinit.o ./paw_gipaw.o > ./gipaw_module.o ./init_gipaw_1.o ./init_gipaw_2.o \ ../../PW/src/libpw.a ../../Modules/libqemod.a -g -pthread > ../../iotk/src/libiotk.a ../../flib/flib.a ../../clib/clib.a > ../../flib/ptools.a -llapack -lblas -lfftw3 -lblas ( cd ../../bin ; ln -fs ../XSpectra/src/xspectra.x . ) make[3]: Leaving directory `/home/amel/espresso-5.1.1/XSpectra/src' make[2]: Leaving directory `/home/amel/espresso-5.1.1/XSpectra' touch make-xspectra make[1]: Leaving directory `/home/amel/espresso-5.1.1/install' I assume there is nothing wrong; unless make[ ] means an error(?!) I guess I am equipped to do some simulations now :-) Thank you very much Paolo and Phanikumar Pentyala Best regards, Amel On Sat, Feb 4, 2017 at 8:47 PM, Amel Alhassan wrote: > Thank you Paolo for translation :D I couldn't get what was the error > actually. > > Ok, now checking for gcc and colorgcc, it seems like there is gcc > installed but no colorgcc and I can't even install it. > > running > >> $ sudo apt-get install colorgcc > > I get > >> E: Package 'colorgcc' has no installation candidate > > > Can I make espresso use gcc instead? How? > > Kind regards, > Amel > > > On Sat, Feb 4, 2017 at 7:14 PM, Paolo Giannozzi > wrote: > >> Out of the hundreds of lines you posted, the only relevant ones: >> >> >> /usr/bin/colorgcc -O3 -D__GFORTRAN -D__STD_F95 -D__FFTW3 >> -I../include -c customize_signals.c >> >> >> >> make[1]: /usr/bin/colorgcc: Command not found >> >> clearly show that you are trying to use "/usr/bin/colorgcc" as C >> compiler, and that there is no "/usr/bin/colorgcc" in your system >> >> Paolo >> ___ >> Pw_forum mailing list >> Pw_forum@pwscf.org >> http://pwscf.org/mailman/listinfo/pw_forum >> > > > > -- > Amel Shamseldeen Ali Alhassan > Lecturer > Nile College > Khartoum, Sudan > +249 915382411 > -- Amel Shamseldeen Ali Alhassan Lecturer Nile College Khartoum, Sudan +249 915382411 ___ Pw_forum mailing list Pw_forum@pwscf.org http://pwscf.org/mailman/listinfo/pw_forum
Re: [Pw_forum] installation error: linking to Fortran libraries from C fails
Thank you Paolo for translation :D I couldn't get what was the error actually. Ok, now checking for gcc and colorgcc, it seems like there is gcc installed but no colorgcc and I can't even install it. running > $ sudo apt-get install colorgcc I get > E: Package 'colorgcc' has no installation candidate Can I make espresso use gcc instead? How? Kind regards, Amel On Sat, Feb 4, 2017 at 7:14 PM, Paolo Giannozzi wrote: > Out of the hundreds of lines you posted, the only relevant ones: > > >> /usr/bin/colorgcc -O3 -D__GFORTRAN -D__STD_F95 -D__FFTW3 -I../include > -c customize_signals.c > >> > >> make[1]: /usr/bin/colorgcc: Command not found > > clearly show that you are trying to use "/usr/bin/colorgcc" as C > compiler, and that there is no "/usr/bin/colorgcc" in your system > > Paolo > ___ > Pw_forum mailing list > Pw_forum@pwscf.org > http://pwscf.org/mailman/listinfo/pw_forum > -- Amel Shamseldeen Ali Alhassan Lecturer Nile College Khartoum, Sudan +249 915382411 ___ Pw_forum mailing list Pw_forum@pwscf.org http://pwscf.org/mailman/listinfo/pw_forum
Re: [Pw_forum] installation error: linking to Fortran libraries from C fails
wypos.o zdotc_wrapper.o zhpev_drv.o ar: creating libqemod.a a - atom.o a - autopilot.o a - basic_algebra_routines.o a - becmod.o a - bfgs_module.o a - bspline.o a - bz_form.o a - cell_base.o a - check_stop.o a - clocks.o a - command_line_options.o a - compute_dipole.o a - constants.o a - constraints_module.o a - control_flags.o a - coulomb_vcut.o a - descriptors.o a - dspev_drv.o a - electrons_base.o a - environment.o a - error_handler.o a - fd_gradient.o a - fft_base.o a - fft_custom.o a - fft_interfaces.o a - fft_parallel.o a - fft_scalar.o a - fft_types.o a - funct.o a - generate_function.o a - griddim.o a - input_parameters.o a - io_files.o a - io_global.o a - ions_base.o a - kernel_table.o a - kind.o a - libxc.o a - libxc_funcs.o a - mm_dispersion.o a - mp.o a - mp_bands.o a - mp_base.o a - mp_diag.o a - mp_global.o a - mp_images.o a - mp_pots.o a - mp_pools.o a - mp_wave.o a - mp_world.o a - noncol.o a - open_close_input_file.o a - parallel_include.o a - parameters.o a - parser.o a - paw_variables.o a - plugin_flags.o a - plugin_arguments.o a - plugin_variables.o a - pseudo_types.o a - ptoolkit.o a - qexml.o a - qmmm.o a - radial_grids.o a - random_numbers.o a - read_cards.o a - read_input.o a - read_namelists.o a - read_ncpp.o a - read_pseudo.o a - read_upf_v1.o a - read_upf_v2.o a - read_uspp.o a - read_xml.o a - read_xml_cards.o a - read_xml_fields.o a - recvec.o a - recvec_subs.o a - run_info.o a - space_group.o a - set_signal.o a - splinelib.o a - stick_base.o a - stick_set.o a - timestep.o a - tsvdw.o a - upf.o a - upf_to_internal.o a - uspp.o a - version.o a - wannier_gw.o a - wannier_new.o a - wave_base.o a - wavefunctions.o a - wrappers.o a - write_upf_v2.o a - ws_base.o a - xc_vdW_DF.o a - xc_rVV10.o a - xml_input.o a - xml_io_base.o a - wypos.o a - zdotc_wrapper.o a - zhpev_drv.o ranlib libqemod.a make[1]: Leaving directory `/home/amel/espresso-5.1.1/Modules' cd install ; make -f extlibs_makefile liblapack make[1]: Entering directory `/home/amel/espresso-5.1.1/install' touch fake_liblapack.a rm fake_liblapack.a make[1]: Leaving directory `/home/amel/espresso-5.1.1/install' cd install ; make -f extlibs_makefile libblas make[1]: Entering directory `/home/amel/espresso-5.1.1/install' touch fake_libblas.a rm fake_libblas.a make[1]: Leaving directory `/home/amel/espresso-5.1.1/install' ( cd clib ; make TLDEPS= all || exit 1 ) make[1]: Entering directory `/home/amel/espresso-5.1.1/clib' /usr/bin/colorgcc -O3 -D__GFORTRAN -D__STD_F95 -D__FFTW3 -I../include -c > customize_signals.c make[1]: /usr/bin/colorgcc: Command not found make[1]: *** [customize_signals.o] Error 127 make[1]: Leaving directory `/home/amel/espresso-5.1.1/clib' make: *** [libs] Error 1 Kind regards, Amel On Sat, Feb 4, 2017 at 12:38 PM, Paolo Giannozzi wrote: > You need to edit include/fft_defs.h and to define C_POINTER > Paolo > > Il 03/feb/2017 10:42 PM, "Amel Alhassan" ha > scritto: > >> Hello >> >> Used >> $.\configure --disable-wrappers >> >> that worked. But then make all works for a while befor hitting some >> errors and stop >> >> here is the errors i got >> >> gfortran -O3 -g -x f95-cpp-input -D__GFORTRAN -D__STD_F95 -D__FFTW3 >>>> -I../include -I../iotk/src -I../ELPA/src -I. -c fft_scalar.f90 >>> >>> Warning: Nonexistent include directory "../ELPA/src" >>> >>> fft_scalar.f90:142.14: >>> >>> >>>> integer*0, SAVE :: fw_planz( ndims ) = 0 >>> >>> 1 >>> >>> Error: Old-style type declaration INTEGER*0 not supported at (1) >>> >>> fft_scalar.f90:143.14: >>> >>> >>>> integer*0, SAVE :: bw_planz( ndims ) = 0 >>> >>> 1 >>> >>> Error: Old-style type declaration INTEGER*0 not supported at (1) >>> >>> fft_scalar.f90:453.14: >>> >>> >>>> integer*0, SAVE :: fw_plan( 2, ndims ) = 0 >>> >>> 1 >>> >>> Error: Old-style type declaration INTEGER*0 not supported at (1) >>> >>> fft_scalar.f90:454.14: >>> >>> >>>> integer*0, SAVE :: bw_plan( 2, ndims ) = 0 >>> >>> 1 >>> >>> Error: Old-style type declaration INTEGER*0 not supported at (1) >>> >>> fft_scalar.f90:1068.14: >>> >>> >>>> integer*0, save :: fw_plan(ndims) = 0 >>> >>> 1 >>> >>> Error: Old-style type declaration INTEGER*0 not supported at (1) >>> >&g
Re: [Pw_forum] installation error: linking to Fortran libraries from C fails
rror: Function 'fw_plan' at (1) has no IMPLICIT type > > fft_scalar.f90:1419.11: > > >>IF( bw_plan( 1, icurrent) /= 0 ) & > >1 > > Error: Function 'bw_plan' at (1) has no IMPLICIT type > > fft_scalar.f90:1420.37: > > >> CALL dfftw_destroy_plan( bw_plan( 1, icurrent) ) > > 1 > > Error: Function 'bw_plan' at (1) has no IMPLICIT type > > fft_scalar.f90:1421.11: > > >>IF( fw_plan( 2, icurrent) /= 0 ) & > >1 > > Error: Function 'fw_plan' at (1) has no IMPLICIT type > > Fatal Error: Error count reached limit of 25. > > make[1]: *** [fft_scalar.o] Error 1 > > make[1]: Leaving directory `/home/amel/espresso-5.1.1/Modules' > > make: *** [mods] Error 1 > > >> obviously there is a problem related to the fft. I downloaded fftw-3.3.6-pl1.tar.gz and put it into the archive folder. I think I should specify it somewhere but I am not know where and how. I hope someone can help me here Kind regards, Amel On Fri, Jan 20, 2017 at 10:54 AM, Amel Alhassan wrote: > Thank you for writing. > > Yes the OS is very old that is why I am trying an old version of QE. Also > because it is the version I started my project with in another computer, > then I had to continue in this one. > > Kind regards, > Amel > On 20 Jan 2017 07:42, "Phanikumar Pentyala" > wrote: > >> First of all, why you want to install QE-4.2? I think it's already >> version 6 available in online. >> >> >> Also, OS (ubuntu) very old version. Now many updates and software also >> not available in 12 version >> >> >> On Thu, Jan 19, 2017 at 7:37 PM, Amel Alhassan >> wrote: >> >>> Dear All, >>> >>> I am trying to install quantum espresso 4.2.1 in my Ubuntu 12.04 64 bits >>> devise. >>> >>> when trying $./configure I get the following error >>> >>> configure: error: in `/home/amel/espresso-4.2.1': >>>> configure: error: linking to Fortran libraries from C fails >>>> See `config.log' for more details. >>> >>> >>> I have tried changing the include/c_defs.h and clib/memstaat.c >>> replacing F77 by gfortran. >>> >>> Tried to install BLAS, LAPACK, FFT, MPI libraries but they are >>> not recognized by the system. >>> >>> Also tried >>> $sudo apt-get install build-essential fftw3-dev gfortran >>> >>>> 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. >>> >>> >>> $sudo apt-get install liblapack-dev fftw-dev >>> >>>> 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. >>> >>> >>> >>> I also tried >>> >>> $gcc --version >>> >>>> gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 >>> >>> >>> $gfortran --version >>> >>>> GNU Fortran (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 >>> >>> >>> >>> $/opt/mpich2GNU/bin/mpif90 -show >>> >>> bash: $/opt/mpich2GNU/bin/mpif90: No such file or directory >>> >>> >>> >>> Your help is kindly appreciated. >>> >>> Thank you, >>> >>> Kind regards, >>> Amel Alhassan >>> >>> >>> >>> >>> >>> >>> ___ >>> Pw_forum mailing list >>> Pw_forum@pwscf.org >>> http://pwscf.org/mailman/listinfo/pw_forum >>> >> >> >> ___ >> Pw_forum mailing list >> Pw_forum@pwscf.org >> http://pwscf.org/mailman/listinfo/pw_forum >> > -- Amel Shamseldeen Ali Alhassan Lecturer Nile College Khartoum, Sudan +249 915382411 ___ Pw_forum mailing list Pw_forum@pwscf.org http://pwscf.org/mailman/listinfo/pw_forum
Re: [Pw_forum] installation error: linking to Fortran libraries from C fails
Thank you for writing. Yes the OS is very old that is why I am trying an old version of QE. Also because it is the version I started my project with in another computer, then I had to continue in this one. Kind regards, Amel On 20 Jan 2017 07:42, "Phanikumar Pentyala" wrote: > First of all, why you want to install QE-4.2? I think it's already version > 6 available in online. > > > Also, OS (ubuntu) very old version. Now many updates and software also not > available in 12 version > > > On Thu, Jan 19, 2017 at 7:37 PM, Amel Alhassan > wrote: > >> Dear All, >> >> I am trying to install quantum espresso 4.2.1 in my Ubuntu 12.04 64 bits >> devise. >> >> when trying $./configure I get the following error >> >> configure: error: in `/home/amel/espresso-4.2.1': >>> configure: error: linking to Fortran libraries from C fails >>> See `config.log' for more details. >> >> >> I have tried changing the include/c_defs.h and clib/memstaat.c >> replacing F77 by gfortran. >> >> Tried to install BLAS, LAPACK, FFT, MPI libraries but they are >> not recognized by the system. >> >> Also tried >> $sudo apt-get install build-essential fftw3-dev gfortran >> >>> 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. >> >> >> $sudo apt-get install liblapack-dev fftw-dev >> >>> 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. >> >> >> >> I also tried >> >> $gcc --version >> >>> gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 >> >> >> $gfortran --version >> >>> GNU Fortran (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 >> >> >> >> $/opt/mpich2GNU/bin/mpif90 -show >> >> bash: $/opt/mpich2GNU/bin/mpif90: No such file or directory >> >> >> >> Your help is kindly appreciated. >> >> Thank you, >> >> Kind regards, >> Amel Alhassan >> >> >> >> >> >> >> ___ >> Pw_forum mailing list >> Pw_forum@pwscf.org >> http://pwscf.org/mailman/listinfo/pw_forum >> > > > ___ > Pw_forum mailing list > Pw_forum@pwscf.org > http://pwscf.org/mailman/listinfo/pw_forum > ___ Pw_forum mailing list Pw_forum@pwscf.org http://pwscf.org/mailman/listinfo/pw_forum
[Pw_forum] installation error: linking to Fortran libraries from C fails
Dear All, I am trying to install quantum espresso 4.2.1 in my Ubuntu 12.04 64 bits devise. when trying $./configure I get the following error configure: error: in `/home/amel/espresso-4.2.1': > configure: error: linking to Fortran libraries from C fails > See `config.log' for more details. I have tried changing the include/c_defs.h and clib/memstaat.c replacing F77 by gfortran. Tried to install BLAS, LAPACK, FFT, MPI libraries but they are not recognized by the system. Also tried $sudo apt-get install build-essential fftw3-dev gfortran > 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. $sudo apt-get install liblapack-dev fftw-dev > 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. I also tried $gcc --version > gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 $gfortran --version > GNU Fortran (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 $/opt/mpich2GNU/bin/mpif90 -show bash: $/opt/mpich2GNU/bin/mpif90: No such file or directory Your help is kindly appreciated. Thank you, Kind regards, Amel Alhassan ___ Pw_forum mailing list Pw_forum@pwscf.org http://pwscf.org/mailman/listinfo/pw_forum