Atom topic feed | site map | contact | login | Protection des données personnelles | Powered by FluxBB | réalisation artaban
You are not logged in.
Hello,
I would like to compile MUMPS with MPI, and got the following error during configure with waf:
./waf configure --prefix=${PUBLICP}/mumps-${MUMPS_VER}_mpi --install-tests --enable-mpi --python=/usr/bin/python3
Setting top to : /opt/aster/public/build/mumps
Setting out to : /opt/aster/public/build/mumps/build
Traceback (most recent call last):
File "/opt/aster/public/build/mumps/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Scripting.py", line 114, in waf_entry_point
run_commands()
File "/opt/aster/public/build/mumps/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Scripting.py", line 175, in run_commands
ctx=run_command(cmd_name)
File "/opt/aster/public/build/mumps/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Scripting.py", line 166, in run_command
ctx.execute()
File "/opt/aster/public/build/mumps/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Configure.py", line 87, in execute
super(ConfigurationContext,self).execute()
File "/opt/aster/public/build/mumps/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Context.py", line 93, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File "/opt/aster/public/build/mumps/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Context.py", line 134, in recurse
user_function(self)
File "/opt/aster/public/build/mumps/wscript", line 84, in configure
self.load('ext_aster', tooldir='waftools')
File "/opt/aster/public/build/mumps/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Configure.py", line 141, in load
module=Context.load_tool(tool,tooldir,ctx=self,with_sys_path=with_sys_path)
File "/opt/aster/public/build/mumps/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Context.py", line 370, in load_tool
__import__(tool)
File "waftools/ext_aster.py", line 31, in <module>
class fcprogram(fc.fcprogram):
File "/opt/aster/public/build/mumps/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Task.py", line 52, in __init__
(f,dvars)=compile_fun(cls.run_str,cls.shell)
File "/opt/aster/public/build/mumps/.waf-1.8.22-5fa41dedfc4a80e01a7ca1d1c9d570c0/waflib/Task.py", line 633, in compile_fun
return composed_fun,dvars
UnboundLocalError: local variable 'dvars' referenced before assignment
It might have a simple cause, but I am not able to figure it out.
(exporting INCLUDES and LIBPATH variables have been done).
It did not work with default python installation either (with 2.7 at this moment, so without --python=/usr/bin/python3).
(And actually it worked earlier, when I compiled with aster 13.6 on the same computer, so I probably installed some new software component meanwhile which can prevent the correct operation of waf...)
Any help would be highly appreciated.
BR.
dezsit
Last edited by dezsit (2019-10-09 17:39:31)
Offline
Hello,
I had similar problems with waf, but I manage to compile it using brutal "Kekkosen konsti", which means,that:
1. I copied MUPS-5.1.1 (Aster 13.6) Makefile.inc
2. Change all paths to new paths in this file
3. make all
I manage to make parallel (mpi) mumps using this method; naturally it is not good permanent solution and I hope that somebody can give solution for waf 'dvars' problem.
BR
Ilkka
Offline
I solved the "UnboundLocalError: local variable 'dvars' referenced before assignment" problem
Replace all
./waf ...
calls by
python3 waf ...
By the way the Docker images (github.com/tianyikillua/code_aster_on_docker) will be soon updated to 14.4
Offline
Wow, python3 waf ... worked perfectly! Although, I struggled with compiling Mumps since Monday, with make and an own Makefile, and finally I succeed today morning, it is good to see a simple solution
Thanks both of you!
And many thanks tiany for the updated docker, we are using the old 13.6 MPI version very often!
BR
dezsit
Last edited by dezsit (2019-10-09 17:44:28)
Offline