Re: [f2py] f2py + ifort + openmp
Ee Y <[email protected]> Tue, 22 Jan 2013 14:00:39 +0000 (GMT)
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
--===============1337031260687990996== Content-Type: multipart/alternative; boundary="-1315625436-1236563643-1358863239=:83400" ---1315625436-1236563643-1358863239=:83400 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello again,=0A=0A=A0=A0=A0 just to let you know that I managed to run the = code using gfortran instead of ifort. Then, the Makefile looks like=0A=0Af2= py --fcompiler=3Dgfortran --opt=3D"-fopenmp -O3" modules modules.f90 only: = mod1 mod2 mod3 :=0A=0AAnd... it works :-)=0ABest,=0AN.=0A=0A=0A=0A=0A______= __________________________=0A De: Ee Y <[email protected]>=0APara: For user= s of the f2py program <f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]> =0AEnviado: Domingo 20 de en= ero de 2013 23:10=0AAsunto: Re: [f2py] f2py + ifort + openmp=0A =0A=0ADear = Ethan,=0A=0Athanks for bearing with me. I was not sure about where to add t= he -fPIC option, so:=0A=0A1) I tried to add the -fPIC option to the --opt f= lag, but that's the output of the make command=0A=0Af2py --fcompiler=3Dinte= lem --f90flags=3D'-fpp -openmp' -lguide --opt=3D'-fast -fPIC -O3' -DF2PY_RE= PORT_ON_ARRAY_COPY=3D1 -c -m moduleomp moduleomp.f90 only: paral :=0Arunnin= g build=0Arunning config_cc=0Aunifing config_cc, config, build_clib, build_= ext, build commands --compiler options=0Arunning config_fc=0Aunifing config= _fc, config, build_clib, build_ext, build commands --fcompiler options=0Aru= nning build_src=0Abuild_src=0Abuilding extension "moduleomp" sources=0Af2py= options: ['only:', 'paral', ':']=0Af2py:> /tmp/tmpFqUG_Z/src.linux-x86_64-= 2.7/moduleompmodule.c=0Acreating /tmp/tmpFqUG_Z=0Acreating /tmp/tmpFqUG_Z/s= rc.linux-x86_64-2.7=0AReading fortran codes...=0AReading file 'moduleomp.f9= 0' (format:free)=0APost-processing...=0ABlock: moduleomp=0ABlock: moduleomp= =0ABlock: paral=0APost-processing (stage 2)...=0ABlock: moduleomp=0ABlock: = unknown_interface=0ABlock: moduleomp=0ABlock: paral=0ABuilding modules...= =0ABuilding module "moduleomp"...=0AConstructing F90 module support for "mo= duleomp"...=0AConstructing wrapper function "moduleomp.paral"...=0A =A0nthr= eads,thread_id =3D paral()=0AWrote C/API module "moduleomp" to file "/tmp/t= mpFqUG_Z/src.linux-x86_64-2.7/moduleompmodule.c"=0AFortran 90 wrappers are = saved to "/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90"= =0A=A0 adding '/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/fortranobject.c' to sour= ces.=0A=A0 adding '/tmp/tmpFqUG_Z/src.linux-x86_64-2.7' to include_dirs.=0A= copying /usr/import/epd/lib/python2.7/site-packages/numpy/f2py/src/fortrano= bject.c -> /tmp/tmpFqUG_Z/src.linux-x86_64-2.7=0Acopying /usr/import/epd/li= b/python2.7/site-packages/numpy/f2py/src/fortranobject.h -> /tmp/tmpFqUG_Z/= src.linux-x86_64-2.7=0A=A0 adding '/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/modu= leomp-f2pywrappers2.f90' to sources.=0Abuild_src: building npy-pkg config f= iles=0Arunning build_ext=0Acustomize UnixCCompiler=0Acustomize UnixCCompile= r using build_ext=0Acustomize IntelEM64TFCompiler=0AFound executable /usr/i= mport/intel/fce/9.0/bin/ifort=0Acustomize IntelEM64TFCompiler using build_e= xt=0Abuilding 'moduleomp' extension=0Acompiling C sources=0AC compiler: gcc= -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -O2 -fPIC=0A=0Acreating /tmp= /tmpFqUG_Z/tmp=0Acreating /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z=0Acreating /tmp/tmpF= qUG_Z/tmp/tmpFqUG_Z/src.linux-x86_64-2.7=0Acompile options: '-DF2PY_REPORT_= ON_ARRAY_COPY=3D1 -I/tmp/tmpFqUG_Z/src.linux-x86_64-2.7 -I/usr/import/epd/l= ib/python2.7/site-packages/numpy/core/include -I/usr/import/epd/include/pyt= hon2.7 -c'=0Agcc: /tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleompmodule.c=0Ag= cc: /tmp/tmpFqUG_Z/src.linux-x86_64-2.7/fortranobject.c=0Acompiling Fortran= 90 module sources=0AFortran f77 compiler: /usr/import/intel/fce/9.0/bin/if= ort -FI -w90 -w95 -KPIC -cm -fast -fPIC -O3 -tpp7 -xW=0AFortran f90 compile= r: /usr/import/intel/fce/9.0/bin/ifort -FR -fpp -openmp -KPIC -cm -fast -fP= IC -O3 -tpp7 -xW=0AFortran fix compiler: /usr/import/intel/fce/9.0/bin/ifor= t -FI -fpp -openmp -KPIC -cm -fast -fPIC -O3 -tpp7 -xW=0Acompile options: '= -DF2PY_REPORT_ON_ARRAY_COPY=3D1 -I/tmp/tmpFqUG_Z/src.linux-x86_64-2.7 -I/us= r/import/epd/lib/python2.7/site-packages/numpy/core/include -I/usr/import/e= pd/include/python2.7 -c'=0Aextra options: '-module /tmp/tmpFqUG_Z/ -I/tmp/t= mpFqUG_Z/'=0Aifort:f90: moduleomp.f90=0Aifort: Command line warning: -fast = overrides any subsequent processor specific option. =A0'-xW' has no effect= =0Acompiling Fortran sources=0AFortran f77 compiler: /usr/import/intel/fce/= 9.0/bin/ifort -FI -w90 -w95 -KPIC -cm -fast -fPIC -O3 -tpp7 -xW=0AFortran f= 90 compiler: /usr/import/intel/fce/9.0/bin/ifort -FR -fpp -openmp -KPIC -cm= -fast -fPIC -O3 -tpp7 -xW=0AFortran fix compiler: /usr/import/intel/fce/9.= 0/bin/ifort -FI -fpp -openmp -KPIC -cm -fast -fPIC -O3 -tpp7 -xW=0Acompile = options: '-DF2PY_REPORT_ON_ARRAY_COPY=3D1 -I/tmp/tmpFqUG_Z/src.linux-x86_64= -2.7 -I/usr/import/epd/lib/python2.7/site-packages/numpy/core/include -I/us= r/import/epd/include/python2.7 -c'=0Aextra options: '-module /tmp/tmpFqUG_Z= / -I/tmp/tmpFqUG_Z/'=0Aifort:f90: /tmp/tmpFqUG_Z/src.linux-x86_64-2.7/modul= eomp-f2pywrappers2.f90=0Aifort: Command line warning: -fast overrides any s= ubsequent processor specific option. =A0'-xW' has no effect=0A/usr/import/i= ntel/fce/9.0/bin/ifort -shared -shared -nofor_main /tmp/tmpFqUG_Z/tmp/tmpFq= UG_Z/src.linux-x86_64-2.7/moduleompmodule.o /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z/sr= c.linux-x86_64-2.7/fortranobject.o /tmp/tmpFqUG_Z/moduleomp.o /tmp/tmpFqUG_= Z/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.o -L/usr/impor= t/epd/lib -lguide -lpython2.7 -o ./moduleomp.so=0Amoduleomp.f90(13) : (col.= 6) remark: OpenMP DEFINED REGION WAS PARALLELIZED.=0Ald: /tmp/ipo_ifortGwy= hCh.o: relocation R_X86_64_PC32 against symbol `_moduleomp_mp_paral__13__pa= r_region0' can not be used when making a shared object; recompile with -fPI= C=0Ald: final link failed: Bad value=0Amoduleomp.f90(13) : (col. 6) remark:= OpenMP DEFINED REGION WAS PARALLELIZED.=0Ald: /tmp/ipo_ifortGwyhCh.o: relo= cation R_X86_64_PC32 against symbol `_moduleomp_mp_paral__13__par_region0' = can not be used when making a shared object; recompile with -fPIC=0Ald: fin= al link failed: Bad value=0Aerror: Command "/usr/import/intel/fce/9.0/bin/i= fort -shared -shared -nofor_main /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z/src.linux-x86= _64-2.7/moduleompmodule.o /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z/src.linux-x86_64-2.7= /fortranobject.o /tmp/tmpFqUG_Z/moduleomp.o /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z/sr= c.linux-x86_64-2.7/moduleomp-f2pywrappers2.o -L/usr/import/epd/lib -lguide = -lpython2.7 -o ./moduleomp.so" failed with exit status 1=0Amake: *** [modul= eomp] Error 1=0A=0A=0A=0A2) Then I tried to add the option to --f90flags . = Again, it does not compile=0A=0Af2py --fcompiler=3Dintelem --f90flags=3D'-f= pp -openmp -fPIC' -lguide --opt=3D'-fast -O3' -DF2PY_REPORT_ON_ARRAY_COPY= =3D1 -c -m moduleomp moduleomp.f90 only: paral :=0Arunning build=0Arunning = config_cc=0Aunifing config_cc, config, build_clib, build_ext, build command= s --compiler options=0Arunning config_fc=0Aunifing config_fc, config, build= _clib, build_ext, build commands --fcompiler options=0Arunning build_src=0A= build_src=0Abuilding extension "moduleomp" sources=0Af2py options: ['only:'= , 'paral', ':']=0Af2py:> /tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleompmodul= e.c=0Acreating /tmp/tmp_YINTS=0Acreating /tmp/tmp_YINTS/src.linux-x86_64-2.= 7=0AReading fortran codes...=0AReading file 'moduleomp.f90' (format:free)= =0APost-processing...=0ABlock: moduleomp=0ABlock: moduleomp=0ABlock: paral= =0APost-processing (stage 2)...=0ABlock: moduleomp=0ABlock: unknown_interfa= ce=0ABlock: moduleomp=0ABlock: paral=0ABuilding modules...=0ABuilding modul= e "moduleomp"...=0AConstructing F90 module support for "moduleomp"...=0ACon= structing wrapper function "moduleomp.paral"...=0A =A0nthreads,thread_id = =3D paral()=0AWrote C/API module "moduleomp" to file "/tmp/tmp_YINTS/src.li= nux-x86_64-2.7/moduleompmodule.c"=0AFortran 90 wrappers are saved to "/tmp/= tmp_YINTS/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90"=0A=A0 adding '/= tmp/tmp_YINTS/src.linux-x86_64-2.7/fortranobject.c' to sources.=0A=A0 addin= g '/tmp/tmp_YINTS/src.linux-x86_64-2.7' to include_dirs.=0Acopying /usr/imp= ort/epd/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.c -> /tmp/= tmp_YINTS/src.linux-x86_64-2.7=0Acopying /usr/import/epd/lib/python2.7/site= -packages/numpy/f2py/src/fortranobject.h -> /tmp/tmp_YINTS/src.linux-x86_64= -2.7=0A=A0 adding '/tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleomp-f2pywrappe= rs2.f90' to sources.=0Abuild_src: building npy-pkg config files=0Arunning b= uild_ext=0Acustomize UnixCCompiler=0Acustomize UnixCCompiler using build_ex= t=0Acustomize IntelEM64TFCompiler=0AFound executable /usr/import/intel/fce/= 9.0/bin/ifort=0Acustomize IntelEM64TFCompiler using build_ext=0Abuilding 'm= oduleomp' extension=0Acompiling C sources=0AC compiler: gcc -pthread -fno-s= trict-aliasing -g -O2 -DNDEBUG -O2 -fPIC=0A=0Acreating /tmp/tmp_YINTS/tmp= =0Acreating /tmp/tmp_YINTS/tmp/tmp_YINTS=0Acreating /tmp/tmp_YINTS/tmp/tmp_= YINTS/src.linux-x86_64-2.7=0Acompile options: '-DF2PY_REPORT_ON_ARRAY_COPY= =3D1 -I/tmp/tmp_YINTS/src.linux-x86_64-2.7 -I/usr/import/epd/lib/python2.7/= site-packages/numpy/core/include -I/usr/import/epd/include/python2.7 -c'=0A= gcc: /tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleompmodule.c=0Agcc: /tmp/tmp_= YINTS/src.linux-x86_64-2.7/fortranobject.c=0Acompiling Fortran 90 module so= urces=0AFortran f77 compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -w90 = -w95 -KPIC -cm -fast -O3 -tpp7 -xW=0AFortran f90 compiler: /usr/import/inte= l/fce/9.0/bin/ifort -FR -fpp -openmp -fPIC -KPIC -cm -fast -O3 -tpp7 -xW=0A= Fortran fix compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -fpp -openmp = -fPIC -KPIC -cm -fast -O3 -tpp7 -xW=0Acompile options: '-DF2PY_REPORT_ON_AR= RAY_COPY=3D1 -I/tmp/tmp_YINTS/src.linux-x86_64-2.7 -I/usr/import/epd/lib/py= thon2.7/site-packages/numpy/core/include -I/usr/import/epd/include/python2.= 7 -c'=0Aextra options: '-module /tmp/tmp_YINTS/ -I/tmp/tmp_YINTS/'=0Aifort:= f90: moduleomp.f90=0Aifort: Command line warning: -fast overrides any subse= quent processor specific option. =A0'-xW' has no effect=0Acompiling Fortran= sources=0AFortran f77 compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -w= 90 -w95 -KPIC -cm -fast -O3 -tpp7 -xW=0AFortran f90 compiler: /usr/import/i= ntel/fce/9.0/bin/ifort -FR -fpp -openmp -fPIC -KPIC -cm -fast -O3 -tpp7 -xW= =0AFortran fix compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -fpp -open= mp -fPIC -KPIC -cm -fast -O3 -tpp7 -xW=0Acompile options: '-DF2PY_REPORT_ON= _ARRAY_COPY=3D1 -I/tmp/tmp_YINTS/src.linux-x86_64-2.7 -I/usr/import/epd/lib= /python2.7/site-packages/numpy/core/include -I/usr/import/epd/include/pytho= n2.7 -c'=0Aextra options: '-module /tmp/tmp_YINTS/ -I/tmp/tmp_YINTS/'=0Aifo= rt:f90: /tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90=0Ai= fort: Command line warning: -fast overrides any subsequent processor specif= ic option. =A0'-xW' has no effect=0A/usr/import/intel/fce/9.0/bin/ifort -sh= ared -shared -nofor_main /tmp/tmp_YINTS/tmp/tmp_YINTS/src.linux-x86_64-2.7/= moduleompmodule.o /tmp/tmp_YINTS/tmp/tmp_YINTS/src.linux-x86_64-2.7/fortran= object.o /tmp/tmp_YINTS/moduleomp.o /tmp/tmp_YINTS/tmp/tmp_YINTS/src.linux-= x86_64-2.7/moduleomp-f2pywrappers2.o -L/usr/import/epd/lib -lguide -lpython= 2.7 -o ./moduleomp.so=0Amoduleomp.f90(13) : (col. 6) remark: OpenMP DEFINED= REGION WAS PARALLELIZED.=0Ald: /tmp/ipo_ifortR7vdL6.o: relocation R_X86_64= _PC32 against symbol `_moduleomp_mp_paral__13__par_region0' can not be used= when making a shared object; recompile with -fPIC=0Ald: final link failed:= Bad value=0Amoduleomp.f90(13) : (col. 6) remark: OpenMP DEFINED REGION WAS= PARALLELIZED.=0Ald: /tmp/ipo_ifortR7vdL6.o: relocation R_X86_64_PC32 again= st symbol `_moduleomp_mp_paral__13__par_region0' can not be used when makin= g a shared object; recompile with -fPIC=0Ald: final link failed: Bad value= =0Aerror: Command "/usr/import/intel/fce/9.0/bin/ifort -shared -shared -nof= or_main /tmp/tmp_YINTS/tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleompmodule.o= /tmp/tmp_YINTS/tmp/tmp_YINTS/src.linux-x86_64-2.7/fortranobject.o /tmp/tmp= _YINTS/moduleomp.o /tmp/tmp_YINTS/tmp/tmp_YINTS/src.linux-x86_64-2.7/module= omp-f2pywrappers2.o -L/usr/import/epd/lib -lguide -lpython2.7 -o ./moduleom= p.so" failed with exit status 1=0Amake: *** [moduleomp] Error 1=0A=0AFinall= y I "converted" the fortran module in a program and yes, I can compile it w= ith=A0ifort -openmp moduleomp.f90 -o moduleomp=0A=0AThank you again for you= r support!=0An.=0A>That f90 program compiles for me, but I'm using a differ= ent version of ifort on a computer with different libraries etc.=A0 Did you= try adding the -fPIC option as suggested by this error message? =0A=0A>htt= p://jaytaylor.com/blog/2010/10/06/howto-fix-fpic-errors/=0A=0A>Can you comp= ile moduleomp.f90 directly with ifort with a dummy program to call it? (i.e= . take f2py out of the equation)=0A=0A=0AOn Jan 18, 2013, at 3:59 AM, Ee Y = <[email protected]> wrote:=0A=0A> ld: /tmp/ipo_ifortvrTUJH.o: relocation R_= X86_64_PC32 against symbol `_moduleomp_mp_paral__16__par_region0' can not b= e used when making a shared object; recompile=0A>=A0 with -fPIC=0A> =0A> ld= : final link failed: Bad value=0A=0A=0A____________________________________= ___________=0Af2py-users mailing list=0Af2py-users-Y4l6ocDipWCuvFJfX82//[email protected]=0Ahttp://cen= s.ioc.ee/mailman/listinfo/f2py-users=0A=0A=0A=0A___________________________= ____________________=0Af2py-users mailing list=0Af2py-users-Y4l6ocDipWCuvFJfX82//[email protected]=0Ah= ttp://cens.ioc.ee/mailman/listinfo/f2py-users ---1315625436-1236563643-1358863239=:83400 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:ti= mes new roman, new york, times, serif;font-size:12pt">Hello again,<br><br><= span class=3D"tab"> just to let you know that I managed t= o run the code using gfortran instead of ifort. Then, the Makefile looks li= ke<br><br>f2py --fcompiler=3Dgfortran --opt=3D"-fopenmp -O3" modules module= s.f90 only: mod1 mod2 mod3 :<br><br>And... it works :-)<br>Best,<br>N.<br><= /span><div><span><br></span></div><div><br></div> <div style=3D"font-famil= y: times new roman, new york, times, serif; font-size: 12pt;"> <div style= =3D"font-family: times new roman, new york, times, serif; font-size: 12pt;"= > <div dir=3D"ltr"> <font face=3D"Arial" size=3D"2"> <hr size=3D"1"> <b><s= pan style=3D"font-weight:bold;">De:</span></b> Ee Y <[email protected]&g= t;<br> <b><span style=3D"font-weight: bold;">Para:</span></b> For users of = the f2py program <f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]> <br> <b><span style=3D"font= -weight: bold;">Enviado:</span></b> Domingo 20 de enero de 2013 23:10<br> <b><span = style=3D"font-weight: bold;">Asunto:</span></b> Re: [f2py] f2py + ifort + o= penmp<br> </font> </div> <br><meta http-equiv=3D"x-dns-prefetch-control" co= ntent=3D"off"><div id=3D"yiv1765256354"><div><div style=3D"color:#000;backg= round-color:#fff;font-family:times new roman, new york, times, serif;font-s= ize:12pt;"><div style=3D"font-family:'times new roman', 'new york', times, = serif;font-size:12pt;"><span>Dear Ethan,</span></div><div style=3D"font-fam= ily:'times new roman', 'new york', times, serif;font-size:16px;color:rgb(0,= 0, 0);background-color:transparent;font-style:normal;"><span><br></span></= div><div style=3D"font-family:'times new roman', 'new york', times, serif;f= ont-size:16px;color:rgb(0, 0, 0);background-color:transparent;font-style:no= rmal;"><span><span class=3D"yiv1765256354Apple-tab-span" style=3D"white-spa= ce:pre;">=09</span>thanks for bearing with me. I was not sure about where t= o add the -fPIC option, so:</span></div><div style=3D"font-family:'times new roman', 'new = york', times, serif;font-size:16px;color:rgb(0, 0, 0);background-color:tran= sparent;font-style:normal;"><span><br></span></div><div style=3D"font-famil= y:'times=0A new roman', 'new york', times, serif;font-size:16px;color:rgb(0= , 0, 0);background-color:transparent;font-style:normal;"><span>1) I tried t= o add the -fPIC option to the --opt flag, but that's the output of the make= command</span></div><div style=3D"font-family:'times new roman', 'new york= ', times, serif;font-size:16px;color:rgb(0, 0, 0);background-color:transpar= ent;font-style:normal;"><span><br></span></div><div style=3D"background-col= or:transparent;"><span><div style=3D"background-color:transparent;">f2py --= fcompiler=3Dintelem --f90flags=3D'-fpp -openmp' -lguide --opt=3D'-fast -fPI= C -O3' -DF2PY_REPORT_ON_ARRAY_COPY=3D1 -c -m moduleomp moduleomp.f90 only: = paral :</div><div style=3D"background-color:transparent;">running build</di= v><div style=3D"background-color:transparent;">running config_cc</div><div = style=3D"background-color:transparent;">unifing config_cc, config, build_cl= ib, build_ext, build commands --compiler options</div><div style=3D"background-color:transparent;">running config_fc</div><div style= =3D"background-color:transparent;">unifing config_fc, config, build_clib, b= uild_ext, build commands --fcompiler options</div><div style=3D"background-= color:transparent;">running build_src</div><div style=3D"background-color:t= ransparent;">build_src</div><div style=3D"background-color:transparent;">bu= ilding extension "moduleomp" sources</div><div style=3D"background-color:tr= ansparent;">f2py options: ['only:', 'paral', ':']</div><div style=3D"backgr= ound-color:transparent;">f2py:> /tmp/tmpFqUG_Z/src.linux-x86_64-2.7/modu= leompmodule.c</div><div style=3D"background-color:transparent;">creating /t= mp/tmpFqUG_Z</div><div style=3D"background-color:transparent;">creating /tm= p/tmpFqUG_Z/src.linux-x86_64-2.7</div><div style=3D"background-color:transp= arent;">Reading fortran codes...</div><div style=3D"background-color:transp= arent;"><span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pr= e;">=09</span>Reading=0A file 'moduleomp.f90' (format:free)</div><div style= =3D"background-color:transparent;">Post-processing...</div><div style=3D"ba= ckground-color:transparent;"><span class=3D"yiv1765256354Apple-tab-span" st= yle=3D"white-space:pre;">=09</span>Block: moduleomp</div><div style=3D"back= ground-color:transparent;"><span class=3D"yiv1765256354Apple-tab-span" styl= e=3D"white-space:pre;">=09=09=09</span>Block: moduleomp</div><div style=3D"= background-color:transparent;"><span class=3D"yiv1765256354Apple-tab-span" = style=3D"white-space:pre;">=09=09=09=09</span>Block: paral</div><div style= =3D"background-color:transparent;">Post-processing (stage 2)...</div><div s= tyle=3D"background-color:transparent;"><span class=3D"yiv1765256354Apple-ta= b-span" style=3D"white-space:pre;">=09</span>Block: moduleomp</div><div sty= le=3D"background-color:transparent;"><span class=3D"yiv1765256354Apple-tab-= span" style=3D"white-space:pre;">=09=09</span>Block: unknown_interface</div= ><div style=3D"background-color:transparent;"><span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre;">=09=09=09= </span>Block: moduleomp</div><div style=3D"background-color:transparent;"><= span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre;">=09= =09=09=09</span>Block: paral</div><div style=3D"background-color:transparen= t;">Building modules...</div><div style=3D"background-color:transparent;"><= span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre;">=09</= span>Building module "moduleomp"...</div><div style=3D"background-color:tra= nsparent;"><span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space= :pre;">=09=09</span>Constructing F90 module support for "moduleomp"...</div= ><div style=3D"background-color:transparent;"><span class=3D"yiv1765256354A= pple-tab-span" style=3D"white-space:pre;">=09=09=09</span>Constructing wrap= per function "moduleomp.paral"...</div><div style=3D"background-color:trans= parent;"><span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:p= re;">=09=09=09</span> nthreads,thread_id =3D paral()</div><div style=3D"background-color:transparent;"><span class=3D"y= iv1765256354Apple-tab-span" style=3D"white-space:pre;">=09</span>Wrote C/AP= I module "moduleomp" to file=0A "/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/module= ompmodule.c"</div><div style=3D"background-color:transparent;"><span class= =3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre;">=09</span>Fortr= an 90 wrappers are saved to "/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleomp-= f2pywrappers2.f90"</div><div style=3D"background-color:transparent;"> = adding '/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/fortranobject.c' to sources.</= div><div style=3D"background-color:transparent;"> adding '/tmp/tmpFqU= G_Z/src.linux-x86_64-2.7' to include_dirs.</div><div style=3D"background-co= lor:transparent;">copying /usr/import/epd/lib/python2.7/site-packages/numpy= /f2py/src/fortranobject.c -> /tmp/tmpFqUG_Z/src.linux-x86_64-2.7</div><d= iv style=3D"background-color:transparent;">copying /usr/import/epd/lib/pyth= on2.7/site-packages/numpy/f2py/src/fortranobject.h -> /tmp/tmpFqUG_Z/src= .linux-x86_64-2.7</div><div style=3D"background-color:transparent;"> = adding=0A '/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90'= to sources.</div><div style=3D"background-color:transparent;">build_src: b= uilding npy-pkg config files</div><div style=3D"background-color:transparen= t;">running build_ext</div><div style=3D"background-color:transparent;">cus= tomize UnixCCompiler</div><div style=3D"background-color:transparent;">cust= omize UnixCCompiler using build_ext</div><div style=3D"background-color:tra= nsparent;">customize IntelEM64TFCompiler</div><div style=3D"background-colo= r:transparent;">Found executable /usr/import/intel/fce/9.0/bin/ifort</div><= div style=3D"background-color:transparent;">customize IntelEM64TFCompiler u= sing build_ext</div><div style=3D"background-color:transparent;">building '= moduleomp' extension</div><div style=3D"background-color:transparent;">comp= iling C sources</div><div style=3D"background-color:transparent;">C compile= r: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -O2 -fPIC</div><div style=3D"background-color:transparent;"><br></div><div style=3D"background= -color:transparent;">creating /tmp/tmpFqUG_Z/tmp</div><div style=3D"backgro= und-color:transparent;">creating /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z</div><div sty= le=3D"background-color:transparent;">creating /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z/= src.linux-x86_64-2.7</div><div style=3D"background-color:transparent;">comp= ile options: '-DF2PY_REPORT_ON_ARRAY_COPY=3D1 -I/tmp/tmpFqUG_Z/src.linux-x8= 6_64-2.7 -I/usr/import/epd/lib/python2.7/site-packages/numpy/core/include -= I/usr/import/epd/include/python2.7 -c'</div><div style=3D"background-color:= transparent;">gcc: /tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleompmodule.c</d= iv><div style=3D"background-color:transparent;">gcc: /tmp/tmpFqUG_Z/src.lin= ux-x86_64-2.7/fortranobject.c</div><div style=3D"background-color:transpare= nt;">compiling Fortran 90 module sources</div><div style=3D"background-colo= r:transparent;">Fortran f77 compiler: /usr/import/intel/fce/9.0/bin/ifort -= FI=0A -w90 -w95 -KPIC -cm -fast -fPIC -O3 -tpp7 -xW</div><div style=3D"back= ground-color:transparent;">Fortran f90 compiler: /usr/import/intel/fce/9.0/= bin/ifort -FR -fpp -openmp -KPIC -cm -fast -fPIC -O3 -tpp7 -xW</div><div st= yle=3D"background-color:transparent;">Fortran fix compiler: /usr/import/int= el/fce/9.0/bin/ifort -FI -fpp -openmp -KPIC -cm -fast -fPIC -O3 -tpp7 -xW</= div><div style=3D"background-color:transparent;">compile options: '-DF2PY_R= EPORT_ON_ARRAY_COPY=3D1 -I/tmp/tmpFqUG_Z/src.linux-x86_64-2.7 -I/usr/import= /epd/lib/python2.7/site-packages/numpy/core/include -I/usr/import/epd/inclu= de/python2.7 -c'</div><div style=3D"background-color:transparent;">extra op= tions: '-module /tmp/tmpFqUG_Z/ -I/tmp/tmpFqUG_Z/'</div><div style=3D"backg= round-color:transparent;">ifort:f90: moduleomp.f90</div><div style=3D"backg= round-color:transparent;">ifort: Command line warning: -fast overrides any = subsequent processor specific option. '-xW' has no effect</div><div style=3D"background-color:transparent;">compiling Fortran sources</div><di= v style=3D"background-color:transparent;">Fortran f77 compiler: /usr/import= /intel/fce/9.0/bin/ifort -FI -w90 -w95 -KPIC -cm -fast -fPIC -O3 -tpp7 -xW<= /div><div style=3D"background-color:transparent;">Fortran f90 compiler: /us= r/import/intel/fce/9.0/bin/ifort -FR -fpp -openmp -KPIC -cm -fast -fPIC -O3= -tpp7 -xW</div><div style=3D"background-color:transparent;">Fortran fix co= mpiler: /usr/import/intel/fce/9.0/bin/ifort -FI -fpp -openmp -KPIC -cm -fas= t -fPIC -O3 -tpp7 -xW</div><div style=3D"background-color:transparent;">com= pile options: '-DF2PY_REPORT_ON_ARRAY_COPY=3D1 -I/tmp/tmpFqUG_Z/src.linux-x= 86_64-2.7 -I/usr/import/epd/lib/python2.7/site-packages/numpy/core/include = -I/usr/import/epd/include/python2.7 -c'</div><div style=3D"background-color= :transparent;">extra options: '-module /tmp/tmpFqUG_Z/ -I/tmp/tmpFqUG_Z/'</= div><div style=3D"background-color:transparent;">ifort:f90:=0A /tmp/tmpFqUG= _Z/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90</div><div style=3D"back= ground-color:transparent;">ifort: Command line warning: -fast overrides any= subsequent processor specific option. '-xW' has no effect</div><div = style=3D"background-color:transparent;">/usr/import/intel/fce/9.0/bin/ifort= -shared -shared -nofor_main /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z/src.linux-x86_64-= 2.7/moduleompmodule.o /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/for= tranobject.o /tmp/tmpFqUG_Z/moduleomp.o /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z/src.li= nux-x86_64-2.7/moduleomp-f2pywrappers2.o -L/usr/import/epd/lib -lguide -lpy= thon2.7 -o ./moduleomp.so</div><div style=3D"background-color:transparent;"= >moduleomp.f90(13) : (col. 6) remark: OpenMP DEFINED REGION WAS PARALLELIZE= D.</div><div style=3D"background-color:transparent;">ld: /tmp/ipo_ifortGwyh= Ch.o: relocation R_X86_64_PC32 against symbol `_moduleomp_mp_paral__13__par= _region0' can not be used when making a shared object;=0A recompile with -f= PIC</div><div style=3D"background-color:transparent;">ld: final link failed= : Bad value</div><div style=3D"background-color:transparent;">moduleomp.f90= (13) : (col. 6) remark: OpenMP DEFINED REGION WAS PARALLELIZED.</div><div s= tyle=3D"background-color:transparent;">ld: /tmp/ipo_ifortGwyhCh.o: relocati= on R_X86_64_PC32 against symbol `_moduleomp_mp_paral__13__par_region0' can = not be used when making a shared object; recompile with -fPIC</div><div sty= le=3D"background-color:transparent;">ld: final link failed: Bad value</div>= <div style=3D"background-color:transparent;">error: Command "/usr/import/in= tel/fce/9.0/bin/ifort -shared -shared -nofor_main /tmp/tmpFqUG_Z/tmp/tmpFqU= G_Z/src.linux-x86_64-2.7/moduleompmodule.o /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z/src= .linux-x86_64-2.7/fortranobject.o /tmp/tmpFqUG_Z/moduleomp.o /tmp/tmpFqUG_Z= /tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.o -L/usr/import= /epd/lib -lguide -lpython2.7 -o ./moduleomp.so" failed=0A with exit status = 1</div><div style=3D"background-color:transparent;">make: *** [moduleomp] E= rror 1</div><div style=3D"background-color:transparent;"><br></div><div sty= le=3D"background-color:transparent;color:rgb(0, 0, 0);font-size:16px;font-f= amily:'times new roman', 'new york', times, serif;font-style:normal;"><br><= /div><div style=3D"background-color:transparent;color:rgb(0, 0, 0);font-siz= e:16px;font-family:'times new roman', 'new york', times, serif;font-style:n= ormal;"><br></div><div style=3D"background-color:transparent;color:rgb(0, 0= , 0);font-size:16px;font-family:'times new roman', 'new york', times, serif= ;font-style:normal;">2) Then I tried to add the option to --f90flags . Agai= n, it does not compile</div><div style=3D"background-color:transparent;colo= r:rgb(0, 0, 0);font-size:16px;font-family:'times new roman', 'new york', ti= mes, serif;font-style:normal;"><br></div><div style=3D"background-color:tra= nsparent;"><div style=3D"background-color:transparent;">f2py --fcompiler=3Dintelem --f90flags=3D'-fpp -openmp -fPIC' -lguide --opt=3D'-= fast -O3' -DF2PY_REPORT_ON_ARRAY_COPY=3D1 -c -m moduleomp moduleomp.f90 onl= y: paral :</div><div style=3D"background-color:transparent;">running build<= /div><div style=3D"background-color:transparent;">running config_cc</div><d= iv style=3D"background-color:transparent;">unifing config_cc, config, build= _clib, build_ext, build commands --compiler options</div><div style=3D"back= ground-color:transparent;">running config_fc</div><div style=3D"background-= color:transparent;">unifing config_fc, config, build_clib, build_ext, build= commands --fcompiler options</div><div style=3D"background-color:transpare= nt;">running build_src</div><div style=3D"background-color:transparent;">bu= ild_src</div><div style=3D"background-color:transparent;">building extensio= n "moduleomp" sources</div><div style=3D"background-color:transparent;">f2p= y options: ['only:', 'paral',=0A ':']</div><div style=3D"background-color:t= ransparent;">f2py:> /tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleompmodule.= c</div><div style=3D"background-color:transparent;">creating /tmp/tmp_YINTS= </div><div style=3D"background-color:transparent;">creating /tmp/tmp_YINTS/= src.linux-x86_64-2.7</div><div style=3D"background-color:transparent;">Read= ing fortran codes...</div><div style=3D"background-color:transparent;"><spa= n class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre;">=09</spa= n>Reading file 'moduleomp.f90' (format:free)</div><div style=3D"background-= color:transparent;">Post-processing...</div><div style=3D"background-color:= transparent;"><span class=3D"yiv1765256354Apple-tab-span" style=3D"white-sp= ace:pre;">=09</span>Block: moduleomp</div><div style=3D"background-color:tr= ansparent;"><span class=3D"yiv1765256354Apple-tab-span" style=3D"white-spac= e:pre;">=09=09=09</span>Block: moduleomp</div><div style=3D"background-colo= r:transparent;"><span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre;">=09=09=09=09</span>Block:=0A paral</div><div st= yle=3D"background-color:transparent;">Post-processing (stage 2)...</div><di= v style=3D"background-color:transparent;"><span class=3D"yiv1765256354Apple= -tab-span" style=3D"white-space:pre;">=09</span>Block: moduleomp</div><div = style=3D"background-color:transparent;"><span class=3D"yiv1765256354Apple-t= ab-span" style=3D"white-space:pre;">=09=09</span>Block: unknown_interface</= div><div style=3D"background-color:transparent;"><span class=3D"yiv17652563= 54Apple-tab-span" style=3D"white-space:pre;">=09=09=09</span>Block: moduleo= mp</div><div style=3D"background-color:transparent;"><span class=3D"yiv1765= 256354Apple-tab-span" style=3D"white-space:pre;">=09=09=09=09</span>Block: = paral</div><div style=3D"background-color:transparent;">Building modules...= </div><div style=3D"background-color:transparent;"><span class=3D"yiv176525= 6354Apple-tab-span" style=3D"white-space:pre;">=09</span>Building module "m= oduleomp"...</div><div style=3D"background-color:transparent;"><span class= =3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre;">=09=09</span>Constructing F90 module support fo= r=0A "moduleomp"...</div><div style=3D"background-color:transparent;"><span= class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre;">=09=09=09= </span>Constructing wrapper function "moduleomp.paral"...</div><div style= =3D"background-color:transparent;"><span class=3D"yiv1765256354Apple-tab-sp= an" style=3D"white-space:pre;">=09=09=09</span> nthreads,thread_id = =3D paral()</div><div style=3D"background-color:transparent;"><span class= =3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre;">=09</span>Wrote= C/API module "moduleomp" to file "/tmp/tmp_YINTS/src.linux-x86_64-2.7/modu= leompmodule.c"</div><div style=3D"background-color:transparent;"><span clas= s=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre;">=09</span>Fort= ran 90 wrappers are saved to "/tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleomp= -f2pywrappers2.f90"</div><div style=3D"background-color:transparent;"> = ; adding '/tmp/tmp_YINTS/src.linux-x86_64-2.7/fortranobject.c' to sources.<= /div><div style=3D"background-color:transparent;"> adding=0A '/tmp/tmp_YINTS/s= rc.linux-x86_64-2.7' to include_dirs.</div><div style=3D"background-color:t= ransparent;">copying /usr/import/epd/lib/python2.7/site-packages/numpy/f2py= /src/fortranobject.c -> /tmp/tmp_YINTS/src.linux-x86_64-2.7</div><div st= yle=3D"background-color:transparent;">copying /usr/import/epd/lib/python2.7= /site-packages/numpy/f2py/src/fortranobject.h -> /tmp/tmp_YINTS/src.linu= x-x86_64-2.7</div><div style=3D"background-color:transparent;"> addin= g '/tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90' to sour= ces.</div><div style=3D"background-color:transparent;">build_src: building = npy-pkg config files</div><div style=3D"background-color:transparent;">runn= ing build_ext</div><div style=3D"background-color:transparent;">customize U= nixCCompiler</div><div style=3D"background-color:transparent;">customize Un= ixCCompiler using build_ext</div><div style=3D"background-color:transparent= ;">customize IntelEM64TFCompiler</div><div style=3D"background-color:transparent;">Found executable /usr/import/intel= /fce/9.0/bin/ifort</div><div style=3D"background-color:transparent;">custom= ize IntelEM64TFCompiler using build_ext</div><div style=3D"background-color= :transparent;">building 'moduleomp' extension</div><div style=3D"background= -color:transparent;">compiling C sources</div><div style=3D"background-colo= r:transparent;">C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEB= UG -O2 -fPIC</div><div style=3D"background-color:transparent;"><br></div><d= iv style=3D"background-color:transparent;">creating /tmp/tmp_YINTS/tmp</div= ><div style=3D"background-color:transparent;">creating /tmp/tmp_YINTS/tmp/t= mp_YINTS</div><div style=3D"background-color:transparent;">creating /tmp/tm= p_YINTS/tmp/tmp_YINTS/src.linux-x86_64-2.7</div><div style=3D"background-co= lor:transparent;">compile options: '-DF2PY_REPORT_ON_ARRAY_COPY=3D1 -I/tmp/= tmp_YINTS/src.linux-x86_64-2.7=0A -I/usr/import/epd/lib/python2.7/site-pack= ages/numpy/core/include -I/usr/import/epd/include/python2.7 -c'</div><div s= tyle=3D"background-color:transparent;">gcc: /tmp/tmp_YINTS/src.linux-x86_64= -2.7/moduleompmodule.c</div><div style=3D"background-color:transparent;">gc= c: /tmp/tmp_YINTS/src.linux-x86_64-2.7/fortranobject.c</div><div style=3D"b= ackground-color:transparent;">compiling Fortran 90 module sources</div><div= style=3D"background-color:transparent;">Fortran f77 compiler: /usr/import/= intel/fce/9.0/bin/ifort -FI -w90 -w95 -KPIC -cm -fast -O3 -tpp7 -xW</div><d= iv style=3D"background-color:transparent;">Fortran f90 compiler: /usr/impor= t/intel/fce/9.0/bin/ifort -FR -fpp -openmp -fPIC -KPIC -cm -fast -O3 -tpp7 = -xW</div><div style=3D"background-color:transparent;">Fortran fix compiler:= /usr/import/intel/fce/9.0/bin/ifort -FI -fpp -openmp -fPIC -KPIC -cm -fast= -O3 -tpp7 -xW</div><div style=3D"background-color:transparent;">compile op= tions:=0A '-DF2PY_REPORT_ON_ARRAY_COPY=3D1 -I/tmp/tmp_YINTS/src.linux-x86_6= 4-2.7 -I/usr/import/epd/lib/python2.7/site-packages/numpy/core/include -I/u= sr/import/epd/include/python2.7 -c'</div><div style=3D"background-color:tra= nsparent;">extra options: '-module /tmp/tmp_YINTS/ -I/tmp/tmp_YINTS/'</div>= <div style=3D"background-color:transparent;">ifort:f90: moduleomp.f90</div>= <div style=3D"background-color:transparent;">ifort: Command line warning: -= fast overrides any subsequent processor specific option. '-xW' has no= effect</div><div style=3D"background-color:transparent;">compiling Fortran= sources</div><div style=3D"background-color:transparent;">Fortran f77 comp= iler: /usr/import/intel/fce/9.0/bin/ifort -FI -w90 -w95 -KPIC -cm -fast -O3= -tpp7 -xW</div><div style=3D"background-color:transparent;">Fortran f90 co= mpiler: /usr/import/intel/fce/9.0/bin/ifort -FR -fpp -openmp -fPIC -KPIC -c= m -fast -O3 -tpp7 -xW</div><div style=3D"background-color:transparent;">For= tran fix=0A compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -fpp -openmp = -fPIC -KPIC -cm -fast -O3 -tpp7 -xW</div><div style=3D"background-color:tra= nsparent;">compile options: '-DF2PY_REPORT_ON_ARRAY_COPY=3D1 -I/tmp/tmp_YIN= TS/src.linux-x86_64-2.7 -I/usr/import/epd/lib/python2.7/site-packages/numpy= /core/include -I/usr/import/epd/include/python2.7 -c'</div><div style=3D"ba= ckground-color:transparent;">extra options: '-module /tmp/tmp_YINTS/ -I/tmp= /tmp_YINTS/'</div><div style=3D"background-color:transparent;">ifort:f90: /= tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90</div><div st= yle=3D"background-color:transparent;">ifort: Command line warning: -fast ov= errides any subsequent processor specific option. '-xW' has no effect= </div><div style=3D"background-color:transparent;">/usr/import/intel/fce/9.= 0/bin/ifort -shared -shared -nofor_main /tmp/tmp_YINTS/tmp/tmp_YINTS/src.li= nux-x86_64-2.7/moduleompmodule.o=0A /tmp/tmp_YINTS/tmp/tmp_YINTS/src.linux-= x86_64-2.7/fortranobject.o /tmp/tmp_YINTS/moduleomp.o /tmp/tmp_YINTS/tmp/tm= p_YINTS/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.o -L/usr/import/epd/li= b -lguide -lpython2.7 -o ./moduleomp.so</div><div style=3D"background-color= :transparent;">moduleomp.f90(13) : (col. 6) remark: OpenMP DEFINED REGION W= AS PARALLELIZED.</div><div style=3D"background-color:transparent;">ld: /tmp= /ipo_ifortR7vdL6.o: relocation R_X86_64_PC32 against symbol `_moduleomp_mp_= paral__13__par_region0' can not be used when making a shared object; recomp= ile with -fPIC</div><div style=3D"background-color:transparent;">ld: final = link failed: Bad value</div><div style=3D"background-color:transparent;">mo= duleomp.f90(13) : (col. 6) remark: OpenMP DEFINED REGION WAS PARALLELIZED.<= /div><div style=3D"background-color:transparent;">ld: /tmp/ipo_ifortR7vdL6.= o: relocation R_X86_64_PC32 against symbol `_moduleomp_mp_paral__13__par_re= gion0' can not be used when=0A making a shared object; recompile with -fPIC= </div><div style=3D"background-color:transparent;">ld: final link failed: B= ad value</div><div style=3D"background-color:transparent;">error: Command "= /usr/import/intel/fce/9.0/bin/ifort -shared -shared -nofor_main /tmp/tmp_YI= NTS/tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleompmodule.o /tmp/tmp_YINTS/tmp= /tmp_YINTS/src.linux-x86_64-2.7/fortranobject.o /tmp/tmp_YINTS/moduleomp.o = /tmp/tmp_YINTS/tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.o= -L/usr/import/epd/lib -lguide -lpython2.7 -o ./moduleomp.so" failed with e= xit status 1</div><div style=3D"background-color:transparent;">make: *** [m= oduleomp] Error 1</div><div style=3D"background-color:transparent;"><br></d= iv><div style=3D"background-color:transparent;color:rgb(0, 0, 0);font-size:= 16px;font-family:'times new roman', 'new york', times, serif;font-style:nor= mal;"></div></div></span></div><div style=3D"font-family:'times new roman',= 'new york', times, serif;font-size:12pt;"><div style=3D"font-family:'times new roman', 'new y= ork', times, serif;font-size:12pt;"><div dir=3D"ltr">Finally I "converted" = the fortran module in a program and yes, I can compile it with ifort -= openmp moduleomp.f90 -o moduleomp</div><div dir=3D"ltr"><br></div><div dir= =3D"ltr">Thank you again for your support!</div><div dir=3D"ltr">n.</div><d= iv dir=3D"ltr"><br></div>>That f90 program compiles for me, but I'm usin= g a different version of ifort on a computer with different libraries etc.&= nbsp; Did you try adding the -fPIC option as suggested by this error messag= e? <br><br>><a rel=3D"nofollow" target=3D"_blank" href=3D"http://jaytayl= or.com/blog/2010/10/06/howto-fix-fpic-errors/">http://jaytaylor.com/blog/20= 10/10/06/howto-fix-fpic-errors/</a><br><br>>Can you compile moduleomp.f9= 0 directly with ifort with a dummy program to call it? (i.e. take f2py out = of the equation)<br><br><br>On Jan 18, 2013, at 3:59 AM, Ee Y <<a rel=3D= "nofollow" ymailto=3D"mailto:[email protected]" target=3D"_blank" href=3D"mailto:noct= [email protected]">[email protected]</a>> wrote:<br><br>> ld: /tmp/ipo_if= ortvrTUJH.o: relocation R_X86_64_PC32 against symbol `_moduleomp_mp_paral__= 16__par_region0' can not be used when making a shared object; recompile<br>= > with -fPIC<br>> <br>> ld: final link failed: Bad value<br>= <br><br>_______________________________________________<br>f2py-users maili= ng list<br><a rel=3D"nofollow" ymailto=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]" ta= rget=3D"_blank" href=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]">[email protected]= ee</a><br><a rel=3D"nofollow" target=3D"_blank" href=3D"http://cens.ioc.ee/= mailman/listinfo/f2py-users">http://cens.ioc.ee/mailman/listinfo/f2py-users= </a><br><br><br> </div> </div> </div></div></div><meta http-equiv=3D"x-dns= -prefetch-control" content=3D"on"><br>_____________________________________= __________<br>f2py-users mailing list<br><a ymailto=3D"mailto:f2py-users@ce= ns.ioc.ee" href=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]">f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]</a><br><a hr= ef=3D"http://cens.ioc.ee/mailman/listinfo/f2py-users" target=3D"_blank">htt= p://cens.ioc.ee/mailman/listinfo/f2py-users</a><br><br><br> </div> </div> = </div></body></html> ---1315625436-1236563643-1358863239=:83400-- --===============1337031260687990996== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ f2py-users mailing list f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] http://cens.ioc.ee/mailman/listinfo/f2py-users --===============1337031260687990996==--