[Sax-project-users] Problems Compiling SaX

Shuangping Liu liusp0301 at gmail.com
Wed Mar 24 20:04:22 CET 2010


Thanks a lot for your advice. I have changed my bash to 4.1, and the problem
has been solved.

Then I met another problem concerned "undefined reference to
`mkl_serv_load_fun'"and "undefined reference to `mkl_serv_load_dll'". I
googled it and found the solution. Now compilation is ok and I will test it
later.

On Wed, Mar 24, 2010 at 4:33 PM, Giovanni Bussi <bussi at sissa.it> wrote:

> On my laptop I have bash 4.0 (same as you) which has a bug. You can
> verify the bug typing
> "bash bug.bash" (using the file attached). If you receive an error,
> you have a buggy bash
>
> In case you have a buggy bash, I suggest you to install either bash 3
> or bash 4.1 (I just tried, and it seems they solved the problem at
> some stage).
>
> Just get it from here http://ftp.gnu.org/gnu/bash/, download and apply
> the patches from here http://ftp.gnu.org/gnu/bash/bash-4.1-patches/,
> and compile it with "configure ; make" as usual. Then you can verify
> that the bug disappeard with "/path-to-bash/bash-4.1/bash bug.bash".
> You should not receive any error now.
>
> Now, before recompiling SaX, add to your environment the location of
> the correct bash, something like:
> export BASH_LOCATION=/path-to-bash/bash-4.1/bash
> followed by "make allmake"
>
> Let me know if you succeded...
>
> Giovanni
>
>
>
> On Wed, Mar 24, 2010 at 9:20 AM, Shuangping Liu <liusp0301 at gmail.com>
> wrote:
> > Dear Giovanni Bussi,
> >
> > Thanks for your reply. I use Kubuntu 9.10, and here is my bash
> information:
> >
> > GNU bash, version 4.0.33(1)-release (x86_64-pc-linux-gnu)
> > Copyright (C) 2009 Free Software Foundation, Inc.
> > License GPLv3+: GNU GPL version 3 or later <
> http://gnu.org/licenses/gpl.html
> >>
> >
> > This is free software; you are free to change and redistribute it.
> > There is NO WARRANTY, to the extent permitted by law.
> >
> > On Wed, Mar 24, 2010 at 4:16 PM, Giovanni Bussi <bussi at sissa.it> wrote:
> >
> >> Dear Shuangping,
> >>
> >> I think that you have a buggy version of bash.
> >>
> >> Can you please tell me the output of the command "bash --version" on
> >> your system?
> >>
> >> Giovanni
> >>
> >> On Wed, Mar 24, 2010 at 8:47 AM, Shuangping Liu <liusp0301 at gmail.com>
> >> wrote:
> >> > Dear developers,
> >> >
> >> > I have some problems when compiling SaX: (Compiling environment: Intel
> >> C++
> >> > and Fortran Compiler, Intel MKL library)
> >> >
> >> > 1. When type in "make allmake", I always receive
> >> > information: ../../IDE/bin/sprep: line 59: unexpected EOF while
> looking
> >> for
> >> > matching `)', ../../IDE/bin/sprep: line 639: syntax error: unexpected
> end
> >> of
> >> > file. Here is the information I get from this command:
> >> >
> >> > IDE/IDE_makemake.sh
> >> > make -f Makefile allmake_
> >> > make[1]: Entering directory `/home/liuhr/QE/sax-1.0.1'
> >> > IDE/makemake.sh blas
> >> > /home/liuhr/QE/sax-1.0.1
> >> > IDE/makemake.sh fftw
> >> > /home/liuhr/QE/sax-1.0.1
> >> > IDE/makemake.sh iotk
> >> > ../../IDE/bin/sprep: line 59: unexpected EOF while looking for
> matching
> >> `)'
> >> > ../../IDE/bin/sprep: line 639: syntax error: unexpected end of file
> >> > ../../IDE/bin/sprep: line 59: unexpected EOF while looking for
> matching
> >> `)'
> >> > ../../IDE/bin/sprep: line 639: syntax error: unexpected end of file
> >> > /home/liuhr/QE/sax-1.0.1
> >> > example1.o : @iotk_module@
> >> > example2.o : @iotk_module@
> >> > example3.o : @iotk_module@
> >> > example4.o : @iotk_module@
> >> > iotk_copy.o : @iotk_files_interf@
> >> > iotk_copy.o : @iotk_module@
> >> > test.o : @iotk_module@
> >> > test2.o : @iotk_module@
> >> > test3.o : @iotk_module@
> >> > test4.o : @iotk_base@
> >> > test4.o : @iotk_error_interf@
> >> > test5.o : @iotk_module@
> >> > test5.o : @iotk_xtox_interf@
> >> > test6.o : @iotk_module@
> >> > test7.o : @iotk_misc_interf@
> >> > test7.o : @iotk_module@
> >> > test7.o : @iotk_str_interf@
> >> > test8.o : @iotk_module@
> >> > test8.o : @iotk_stream_interf@
> >> > test9.o : @iotk_module@
> >> > test9.o : @iotk_unit_list_module@
> >> > WARNING: modules not found in directories:
> >> >         ../include
> >> > IDE/makemake.sh numrec
> >> > ../../IDE/bin/sprep: line 59: unexpected EOF while looking for
> matching
> >> `)'
> >> > ../../IDE/bin/sprep: line 639: syntax error: unexpected end of file
> >> > /home/liuhr/QE/sax-1.0.1
> >> > IDE/makemake.sh ptk
> >> > ../../IDE/bin/sprep: line 59: unexpected EOF while looking for
> matching
> >> `)'
> >> > ../../IDE/bin/sprep: line 639: syntax error: unexpected end of file
> >> > /home/liuhr/QE/sax-1.0.1
> >> > test.o : @ptk_module@
> >> > WARNING: modules not found in directories:
> >> >         ../include
> >> > IDE/makemake.sh lapack
> >> > /home/liuhr/QE/sax-1.0.1
> >> > IDE/makemake.sh ffti
> >> > /home/liuhr/QE/sax-1.0.1
> >> > IDE/makemake.sh lasi
> >> > /home/liuhr/QE/sax-1.0.1
> >> > IDE/makemake.sh sax
> >> > ../../IDE/bin/sprep: line 59: unexpected EOF while looking for
> matching
> >> `)'
> >> > ../../IDE/bin/sprep: line 639: syntax error: unexpected end of file
> >> > /home/liuhr/QE/sax-1.0.1
> >> > bse.o : @iotk_module@
> >> > bse.o : @ptk_module@
> >> > bse_options_module.o : @iotk_module@
> >> > bse_options_module.o : @ptk_module@
> >> > extract_wfc.o : @iotk_module@
> >> > gw.o : @iotk_module@
> >> > gw.o : @ptk_module@
> >> > gw_options_module.o : @iotk_module@
> >> > gw_options_module.o : @ptk_module@
> >> > mem_options_module.o : @iotk_module@
> >> > mem_options_module.o : @ptk_module@
> >> > memory.o : @iotk_module@
> >> > memory.o : @ptk_module@
> >> > num_la_parall_module.o : @ptk_module@
> >> > num_module.o : @num_interpolation_module@
> >> > num_special_module.o : @num_interpolation_module@
> >> > num_special_module.o : @numrec_module@
> >> > pptools.o : @iotk_module@
> >> > pptools.o : @ptk_module@
> >> > pptools_options_module.o : @iotk_module@
> >> > pptools_options_module.o : @ptk_module@
> >> > pw_QP_module.o : @iotk_module@
> >> > pw_QP_module.o : @ptk_module@
> >> > pw_QP_states_extern.o : @ptk_module@
> >> > pw_QP_states_interf.o : @ptk_module@
> >> > pw_QP_states_type.o : @ptk_module@
> >> > pw_atoms_module.o : @iotk_module@
> >> > pw_atoms_module.o : @ptk_module@
> >> > pw_basis_external.o : @iotk_module@
> >> > pw_basis_external.o : @ptk_module@
> >> > pw_basis_module.o : @iotk_module@
> >> > pw_basis_module.o : @numrec_module@
> >> > pw_basis_module.o : @ptk_module@
> >> > pw_bse_extern.o : @iotk_module@
> >> > pw_bse_extern.o : @ptk_module@
> >> > pw_bse_interf.o : @ptk_module@
> >> > pw_common_module.o : @ptk_module@
> >> > pw_density_module.o : @iotk_module@
> >> > pw_dipole_module.o : @iotk_module@
> >> > pw_epsilon_macro_extern.o : @iotk_module@
> >> > pw_epsilon_macro_extern.o : @ptk_module@
> >> > pw_epsilon_macro_interf.o : @iotk_module@
> >> > pw_epsilon_macro_interf.o : @ptk_module@
> >> > pw_epsilon_macro_type.o : @ptk_module@
> >> > pw_hartree_module.o : @iotk_module@
> >> > pw_kmesh_module.o : @iotk_module@
> >> > pw_kmesh_module.o : @ptk_module@
> >> > pw_parall_matrix_extern.o : @iotk_module@
> >> > pw_parall_matrix_extern.o : @ptk_module@
> >> > pw_parall_matrix_interf.o : @ptk_module@
> >> > pw_parall_matrix_type.o : @ptk_module@
> >> > pw_polar_extern.o : @iotk_module@
> >> > pw_polar_extern.o : @ptk_module@
> >> > pw_polar_interf.o : @ptk_module@
> >> > pw_polar_type.o : @ptk_module@
> >> > pw_pp_parameters_extern.o : @iotk_module@
> >> > pw_pp_parameters_extern.o : @ptk_module@
> >> > pw_pp_parameters_interf.o : @ptk_module@
> >> > pw_pp_parameters_type.o : @ptk_module@
> >> > pw_pptools_extern.o : @iotk_module@
> >> > pw_pptools_extern.o : @ptk_module@
> >> > pw_pptools_interf.o : @iotk_module@
> >> > pw_pptools_interf.o : @ptk_module@
> >> > pw_pseudo_module.o : @iotk_module@
> >> > pw_pseudo_module.o : @ptk_module@
> >> > pw_sigma_extern.o : @iotk_module@
> >> > pw_sigma_extern.o : @ptk_module@
> >> > pw_sigma_extern.o : @ptk_mpi_module@
> >> > pw_sigma_interf.o : @iotk_module@
> >> > pw_sigma_interf.o : @ptk_module@
> >> > pw_sigma_interf.o : @ptk_mpi_module@
> >> > pw_states_extern.o : @iotk_module@
> >> > pw_states_extern.o : @numrec_module@
> >> > pw_states_extern.o : @ptk_module@
> >> > pw_states_interf.o : @ptk_module@
> >> > pw_states_type.o : @ptk_module@
> >> > pw_struct_module.o : @iotk_module@
> >> > pw_struct_module.o : @ptk_module@
> >> > pw_symm_module.o : @ptk_module@
> >> > pw_symmlist_module.o : @ptk_module@
> >> > pw_w_extern.o : @iotk_module@
> >> > pw_w_extern.o : @ptk_module@
> >> > pw_w_interf.o : @ptk_module@
> >> > pw_w_type.o : @ptk_module@
> >> > pw_wfc6d_module.o : @iotk_module@
> >> > pw_wfc6d_module.o : @ptk_module@
> >> > pw_wfc_module.o : @iotk_module@
> >> > pw_wfc_module.o : @ptk_module@
> >> > pw_wfcb_module.o : @iotk_module@
> >> > sax_to_want_module.o : @iotk_module@
> >> > spectra.o : @iotk_module@
> >> > spectra.o : @ptk_module@
> >> > spectra_options_module.o : @iotk_module@
> >> > spectra_options_module.o : @ptk_module@
> >> > tools_error.o : @ptk_module@
> >> > tools_log_module.o : @iotk_module@
> >> > tools_log_module.o : @ptk_module@
> >> > tools_mallinfo_module.o : @ptk_module@
> >> > WARNING: modules not found in directories:
> >> >         ../include ../../blas/src ../../blas/include ../../fftw/src
> >> > ../../fftw/include ../../iotk/src ../../iotk/include ../../numrec/src
> >> > ../../numrec/include ../../ptk/src ../../ptk/include ../../lapack/src
> >> > ../../lapack/include ../../ffti/src ../../ffti/include ../../lasi/src
> >> > ../../lasi/include
> >> > make[1]: Leaving directory `/home/liuhr/QE/sax-1.0.1'
> >> >
> >> > 2. After this, I enter ./sax/src, and then "make all', but finally
> there
> >> is
> >> > an error:
> >> >
> >> > make[2]: Leaving directory `/home/liuhr/QE/sax-1.0.1/lasi/src'
> >> > make[1]: *** No rule to make target `@iotk_module@', needed by
> >> > `bse_options_module.o'.  Stop.
> >> > make[1]: Leaving directory `/home/liuhr/QE/sax-1.0.1/sax/src'
> >> > make: *** [all] Error 2
> >> >
> >> > Any ideas?
> >> >
> >> > Thanks a lot.
> >> >
> >> > Shuangping Liu
> >> > --
> >> > Shuangping Liu
> >> > Department of Physics, Fudan University
> >> > 220# Handan Rd., Shanghai, 200433, China
> >> > Tel: 86 13621865544
> >> > E-mail: liusp0301 at gmail.com
> >> > MSN: liusp0301 at msn.com
> >> > _______________________________________________
> >> > Sax-project-users mailing list
> >> > Sax-project-users at qe-forge.org
> >> > http://qe-forge.org/mailman/listinfo/sax-project-users
> >> >
> >>
> >
> >
> >
> > --
> > Shuangping Liu
> > Department of Physics, Fudan University
> > 220# Handan Rd., Shanghai, 200433, China
> > Tel: 86 13621865544
> > E-mail: liusp0301 at gmail.com
> > MSN: liusp0301 at msn.com
> > _______________________________________________
> > Sax-project-users mailing list
> > Sax-project-users at qe-forge.org
> > http://qe-forge.org/mailman/listinfo/sax-project-users
> >
>



-- 
Shuangping Liu
Department of Physics, Fudan University
220# Handan Rd., Shanghai, 200433, China
Tel: 86 13621865544
E-mail: liusp0301 at gmail.com
MSN: liusp0301 at msn.com


More information about the Sax-project-users mailing list