Re: [f2py] f2py + ifort + openmp

Ethan Gutmann <[email protected]> Tue, 22 Jan 2013 07:59:28 -0700
Newsgroups gmane.comp.python.f2py.user
Message-ID <8043107159173506125@unknownmsgid>
--===============2025820467285385226==
Content-Type: multipart/alternative; boundary=047d7b6d9624315ea304d3e1d342

--047d7b6d9624315ea304d3e1d342
Content-Type: text/plain; charset=ISO-8859-1

Hi sorry I wasn't more help, but I'm glad you got it working.


On Jan 22, 2013, at 7:01 AM, Ee Y <[email protected]> wrote:

Hello again,

    just to let you know that I managed to run the code using gfortran
instead of ifort. Then, the Makefile looks like

f2py --fcompiler=gfortran --opt="-fopenmp -O3" modules modules.f90 only:
mod1 mod2 mod3 :

And... it works :-)
Best,
N.


  ------------------------------
*De:* Ee Y <[email protected]>
*Para:* For users of the f2py program <f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]>
*Enviado:* Domingo 20 de enero de 2013 23:10
*Asunto:* Re: [f2py] f2py + ifort + openmp

Dear Ethan,

thanks for bearing with me. I was not sure about where to add the -fPIC
option, so:

1) I tried to add the -fPIC option to the --opt flag, but that's the output
of the make command

f2py --fcompiler=intelem --f90flags='-fpp -openmp' -lguide --opt='-fast
-fPIC -O3' -DF2PY_REPORT_ON_ARRAY_COPY=1 -c -m moduleomp moduleomp.f90
only: paral :
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler
options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands
--fcompiler options
running build_src
build_src
building extension "moduleomp" sources
f2py options: ['only:', 'paral', ':']
f2py:> /tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleompmodule.c
creating /tmp/tmpFqUG_Z
creating /tmp/tmpFqUG_Z/src.linux-x86_64-2.7
Reading fortran codes...
Reading file 'moduleomp.f90' (format:free)
Post-processing...
Block: moduleomp
Block: moduleomp
Block: paral
Post-processing (stage 2)...
Block: moduleomp
Block: unknown_interface
Block: moduleomp
Block: paral
Building modules...
Building module "moduleomp"...
Constructing F90 module support for "moduleomp"...
Constructing wrapper function "moduleomp.paral"...
  nthreads,thread_id = paral()
Wrote C/API module "moduleomp" to file
"/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleompmodule.c"
Fortran 90 wrappers are saved to
"/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90"
  adding '/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/fortranobject.c' to sources.
  adding '/tmp/tmpFqUG_Z/src.linux-x86_64-2.7' to include_dirs.
copying
/usr/import/epd/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.c
-> /tmp/tmpFqUG_Z/src.linux-x86_64-2.7
copying
/usr/import/epd/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.h
-> /tmp/tmpFqUG_Z/src.linux-x86_64-2.7
  adding '/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90'
to sources.
build_src: building npy-pkg config files
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize IntelEM64TFCompiler
Found executable /usr/import/intel/fce/9.0/bin/ifort
customize IntelEM64TFCompiler using build_ext
building 'moduleomp' extension
compiling C sources
C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -O2 -fPIC

creating /tmp/tmpFqUG_Z/tmp
creating /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z
creating /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z/src.linux-x86_64-2.7
compile options: '-DF2PY_REPORT_ON_ARRAY_COPY=1
-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/include/python2.7 -c'
gcc: /tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleompmodule.c
gcc: /tmp/tmpFqUG_Z/src.linux-x86_64-2.7/fortranobject.c
compiling Fortran 90 module sources
Fortran f77 compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -w90 -w95
-KPIC -cm -fast -fPIC -O3 -tpp7 -xW
Fortran f90 compiler: /usr/import/intel/fce/9.0/bin/ifort -FR -fpp -openmp
-KPIC -cm -fast -fPIC -O3 -tpp7 -xW
Fortran fix compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -fpp -openmp
-KPIC -cm -fast -fPIC -O3 -tpp7 -xW
compile options: '-DF2PY_REPORT_ON_ARRAY_COPY=1
-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/include/python2.7 -c'
extra options: '-module /tmp/tmpFqUG_Z/ -I/tmp/tmpFqUG_Z/'
ifort:f90: moduleomp.f90
ifort: Command line warning: -fast overrides any subsequent processor
specific option.  '-xW' has no effect
compiling Fortran sources
Fortran f77 compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -w90 -w95
-KPIC -cm -fast -fPIC -O3 -tpp7 -xW
Fortran f90 compiler: /usr/import/intel/fce/9.0/bin/ifort -FR -fpp -openmp
-KPIC -cm -fast -fPIC -O3 -tpp7 -xW
Fortran fix compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -fpp -openmp
-KPIC -cm -fast -fPIC -O3 -tpp7 -xW
compile options: '-DF2PY_REPORT_ON_ARRAY_COPY=1
-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/include/python2.7 -c'
extra options: '-module /tmp/tmpFqUG_Z/ -I/tmp/tmpFqUG_Z/'
ifort:f90: /tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90
ifort: Command line warning: -fast overrides any subsequent processor
specific option.  '-xW' has no effect
/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/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
moduleomp.f90(13) : (col. 6) remark: OpenMP DEFINED REGION WAS PARALLELIZED.
ld: /tmp/ipo_ifortGwyhCh.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
ld: final link failed: Bad value
moduleomp.f90(13) : (col. 6) remark: OpenMP DEFINED REGION WAS PARALLELIZED.
ld: /tmp/ipo_ifortGwyhCh.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
ld: final link failed: Bad value
error: Command "/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/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 with
exit status 1
make: *** [moduleomp] Error 1



2) Then I tried to add the option to --f90flags . Again, it does not compile

f2py --fcompiler=intelem --f90flags='-fpp -openmp -fPIC' -lguide
--opt='-fast -O3' -DF2PY_REPORT_ON_ARRAY_COPY=1 -c -m moduleomp
moduleomp.f90 only: paral :
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler
options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands
--fcompiler options
running build_src
build_src
building extension "moduleomp" sources
f2py options: ['only:', 'paral', ':']
f2py:> /tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleompmodule.c
creating /tmp/tmp_YINTS
creating /tmp/tmp_YINTS/src.linux-x86_64-2.7
Reading fortran codes...
Reading file 'moduleomp.f90' (format:free)
Post-processing...
Block: moduleomp
Block: moduleomp
Block: paral
Post-processing (stage 2)...
Block: moduleomp
Block: unknown_interface
Block: moduleomp
Block: paral
Building modules...
Building module "moduleomp"...
Constructing F90 module support for "moduleomp"...
Constructing wrapper function "moduleomp.paral"...
  nthreads,thread_id = paral()
Wrote C/API module "moduleomp" to file
"/tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleompmodule.c"
Fortran 90 wrappers are saved to
"/tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90"
  adding '/tmp/tmp_YINTS/src.linux-x86_64-2.7/fortranobject.c' to sources.
  adding '/tmp/tmp_YINTS/src.linux-x86_64-2.7' to include_dirs.
copying
/usr/import/epd/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.c
-> /tmp/tmp_YINTS/src.linux-x86_64-2.7
copying
/usr/import/epd/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.h
-> /tmp/tmp_YINTS/src.linux-x86_64-2.7
  adding '/tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90'
to sources.
build_src: building npy-pkg config files
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize IntelEM64TFCompiler
Found executable /usr/import/intel/fce/9.0/bin/ifort
customize IntelEM64TFCompiler using build_ext
building 'moduleomp' extension
compiling C sources
C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -O2 -fPIC

creating /tmp/tmp_YINTS/tmp
creating /tmp/tmp_YINTS/tmp/tmp_YINTS
creating /tmp/tmp_YINTS/tmp/tmp_YINTS/src.linux-x86_64-2.7
compile options: '-DF2PY_REPORT_ON_ARRAY_COPY=1
-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'
gcc: /tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleompmodule.c
gcc: /tmp/tmp_YINTS/src.linux-x86_64-2.7/fortranobject.c
compiling Fortran 90 module sources
Fortran f77 compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -w90 -w95
-KPIC -cm -fast -O3 -tpp7 -xW
Fortran f90 compiler: /usr/import/intel/fce/9.0/bin/ifort -FR -fpp -openmp
-fPIC -KPIC -cm -fast -O3 -tpp7 -xW
Fortran fix compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -fpp -openmp
-fPIC -KPIC -cm -fast -O3 -tpp7 -xW
compile options: '-DF2PY_REPORT_ON_ARRAY_COPY=1
-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'
extra options: '-module /tmp/tmp_YINTS/ -I/tmp/tmp_YINTS/'
ifort:f90: moduleomp.f90
ifort: Command line warning: -fast overrides any subsequent processor
specific option.  '-xW' has no effect
compiling Fortran sources
Fortran f77 compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -w90 -w95
-KPIC -cm -fast -O3 -tpp7 -xW
Fortran f90 compiler: /usr/import/intel/fce/9.0/bin/ifort -FR -fpp -openmp
-fPIC -KPIC -cm -fast -O3 -tpp7 -xW
Fortran fix compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -fpp -openmp
-fPIC -KPIC -cm -fast -O3 -tpp7 -xW
compile options: '-DF2PY_REPORT_ON_ARRAY_COPY=1
-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'
extra options: '-module /tmp/tmp_YINTS/ -I/tmp/tmp_YINTS/'
ifort:f90: /tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90
ifort: Command line warning: -fast overrides any subsequent processor
specific option.  '-xW' has no effect
/usr/import/intel/fce/9.0/bin/ifort -shared -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/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
moduleomp.f90(13) : (col. 6) remark: OpenMP DEFINED REGION WAS PARALLELIZED.
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; recompile with -fPIC
ld: final link failed: Bad value
moduleomp.f90(13) : (col. 6) remark: OpenMP DEFINED REGION WAS PARALLELIZED.
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; recompile with -fPIC
ld: final link failed: Bad value
error: Command "/usr/import/intel/fce/9.0/bin/ifort -shared -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/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
exit status 1
make: *** [moduleomp] Error 1

Finally I "converted" the fortran module in a program and yes, I can
compile it with ifort -openmp moduleomp.f90 -o moduleomp

Thank you again for your support!
n.

>That f90 program compiles for me, but I'm using a different version of
ifort on a computer with different libraries etc.  Did you try adding the
-fPIC option as suggested by this error message?

>http://jaytaylor.com/blog/2010/10/06/howto-fix-fpic-errors/

>Can you compile moduleomp.f90 directly with ifort with a dummy program to
call it? (i.e. take f2py out of the equation)


On Jan 18, 2013, at 3:59 AM, Ee Y <[email protected]> wrote:

> ld: /tmp/ipo_ifortvrTUJH.o: relocation R_X86_64_PC32 against symbol
`_moduleomp_mp_paral__16__par_region0' can not be used when making a shared
object; recompile
>  with -fPIC
>
> ld: final link failed: Bad value


_______________________________________________
f2py-users mailing list
f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
http://cens.ioc.ee/mailman/listinfo/f2py-users



_______________________________________________
f2py-users mailing list
f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
http://cens.ioc.ee/mailman/listinfo/f2py-users


 _______________________________________________
f2py-users mailing list
f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
http://cens.ioc.ee/mailman/listinfo/f2py-users

--047d7b6d9624315ea304d3e1d342
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=
=3Dutf-8"></head><body dir=3D"auto"><div>Hi sorry I wasn&#39;t more help, b=
ut I&#39;m glad you got it working. =A0</div><div><br><br>On Jan 22, 2013, =
at 7:01 AM, Ee Y &lt;<a href=3D"mailto:[email protected]">[email protected]=
</a>&gt; wrote:<br>
<br></div><blockquote type=3D"cite"><div><div style=3D"color:#000;backgroun=
d-color:#fff;font-family:times new roman,new york,times,serif;font-size:12p=
t">Hello again,<br><br><span class=3D"tab">=A0=A0=A0 just to let you know t=
hat I managed to run the code using gfortran instead of ifort. Then, the Ma=
kefile looks like<br>
<br>f2py --fcompiler=3Dgfortran --opt=3D&quot;-fopenmp -O3&quot; modules mo=
dules.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-f=
amily:times new roman,new york,times,serif;font-size:12pt">
 <div style=3D"font-family:times new roman,new york,times,serif;font-size:1=
2pt"> <div dir=3D"ltr"> <font face=3D"Arial"> <hr size=3D"1">  <b><span sty=
le=3D"font-weight:bold">De:</span></b> Ee Y &lt;<a href=3D"mailto:noctu111@=
yahoo.es">[email protected]</a>&gt;<br>
 <b><span style=3D"font-weight:bold">Para:</span></b> For users of the f2py=
 program &lt;<a href=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]">[email protected]=
ee</a>&gt; <br> <b><span style=3D"font-weight:bold">Enviado:</span></b> Dom=
ingo 20 de enero de 2013 23:10<br>
 <b><span style=3D"font-weight:bold">Asunto:</span></b> Re: [f2py] f2py + i=
fort + openmp<br> </font> </div> <br><meta http-equiv=3D"x-dns-prefetch-con=
trol" content=3D"off"><div id=3D"yiv1765256354"><div><div style=3D"color:#0=
00;background-color:#fff;font-family:times new roman,new york,times,serif;f=
ont-size:12pt">
<div style=3D"font-family:&#39;times new roman&#39;,&#39;new york&#39;,time=
s,serif;font-size:12pt"><span>Dear Ethan,</span></div><div style=3D"font-fa=
mily:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16p=
x;color:rgb(0,0,0);background-color:transparent;font-style:normal">
<span><br></span></div><div style=3D"font-family:&#39;times new roman&#39;,=
&#39;new york&#39;,times,serif;font-size:16px;color:rgb(0,0,0);background-c=
olor:transparent;font-style:normal"><span><span class=3D"yiv1765256354Apple=
-tab-span" style=3D"white-space:pre">	</span>thanks for bearing with me. I =
was not sure about where to add the -fPIC
 option, so:</span></div><div style=3D"font-family:&#39;times new roman&#39=
;,&#39;new york&#39;,times,serif;font-size:16px;color:rgb(0,0,0);background=
-color:transparent;font-style:normal"><span><br></span></div><div style>
<span>1) I tried to add the -fPIC option to the --opt flag, but that&#39;s =
the output of the make command</span></div><div style=3D"font-family:&#39;t=
imes new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;color:rgb=
(0,0,0);background-color:transparent;font-style:normal">
<span><br></span></div><div style=3D"background-color:transparent"><span><d=
iv style=3D"background-color:transparent">f2py --fcompiler=3Dintelem --f90f=
lags=3D&#39;-fpp -openmp&#39; -lguide --opt=3D&#39;-fast -fPIC -O3&#39; -DF=
2PY_REPORT_ON_ARRAY_COPY=3D1 -c -m moduleomp moduleomp.f90 only: paral :</d=
iv>
<div style=3D"background-color:transparent">running build</div><div style=
=3D"background-color:transparent">running config_cc</div><div style=3D"back=
ground-color:transparent">unifing config_cc, config, build_clib, build_ext,=
 build commands --compiler options</div>
<div style=3D"background-color:transparent">running config_fc</div><div sty=
le=3D"background-color:transparent">unifing config_fc, config, build_clib, =
build_ext, build commands --fcompiler options</div><div style=3D"background=
-color:transparent">
running build_src</div><div style=3D"background-color:transparent">build_sr=
c</div><div style=3D"background-color:transparent">building extension &quot=
;moduleomp&quot; sources</div><div style=3D"background-color:transparent">f=
2py options: [&#39;only:&#39;, &#39;paral&#39;, &#39;:&#39;]</div>
<div style=3D"background-color:transparent">f2py:&gt; /tmp/tmpFqUG_Z/src.li=
nux-x86_64-2.7/moduleompmodule.c</div><div style=3D"background-color:transp=
arent">creating /tmp/tmpFqUG_Z</div><div style=3D"background-color:transpar=
ent">
creating /tmp/tmpFqUG_Z/src.linux-x86_64-2.7</div><div style=3D"background-=
color:transparent">Reading fortran codes...</div><div style=3D"background-c=
olor:transparent"><span class=3D"yiv1765256354Apple-tab-span" style=3D"whit=
e-space:pre">	</span>Reading
 file &#39;moduleomp.f90&#39; (format:free)</div><div style=3D"background-c=
olor:transparent">Post-processing...</div><div style=3D"background-color:tr=
ansparent"><span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space=
:pre">	</span>Block: moduleomp</div>
<div style=3D"background-color:transparent"><span class=3D"yiv1765256354App=
le-tab-span" style=3D"white-space:pre">			</span>Block: moduleomp</div><div=
 style=3D"background-color:transparent"><span class=3D"yiv1765256354Apple-t=
ab-span" style=3D"white-space:pre">				</span>Block: paral</div>
<div style=3D"background-color:transparent">Post-processing (stage 2)...</d=
iv><div style=3D"background-color:transparent"><span class=3D"yiv1765256354=
Apple-tab-span" style=3D"white-space:pre">	</span>Block: moduleomp</div><di=
v style=3D"background-color:transparent">
<span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre">		</s=
pan>Block: unknown_interface</div><div style=3D"background-color:transparen=
t"><span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre">		=
	</span>Block: moduleomp</div>
<div style=3D"background-color:transparent"><span class=3D"yiv1765256354App=
le-tab-span" style=3D"white-space:pre">				</span>Block: paral</div><div st=
yle=3D"background-color:transparent">Building modules...</div><div style=3D=
"background-color:transparent">
<span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre">	</sp=
an>Building module &quot;moduleomp&quot;...</div><div style=3D"background-c=
olor:transparent"><span class=3D"yiv1765256354Apple-tab-span" style=3D"whit=
e-space:pre">		</span>Constructing F90 module support for &quot;moduleomp&q=
uot;...</div>
<div style=3D"background-color:transparent"><span class=3D"yiv1765256354App=
le-tab-span" style=3D"white-space:pre">			</span>Constructing wrapper funct=
ion &quot;moduleomp.paral&quot;...</div><div style=3D"background-color:tran=
sparent">
<span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre">			</=
span> =A0nthreads,thread_id =3D
 paral()</div><div style=3D"background-color:transparent"><span class=3D"yi=
v1765256354Apple-tab-span" style=3D"white-space:pre">	</span>Wrote C/API mo=
dule &quot;moduleomp&quot; to file
 &quot;/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleompmodule.c&quot;</div><di=
v style=3D"background-color:transparent"><span class=3D"yiv1765256354Apple-=
tab-span" style=3D"white-space:pre">	</span>Fortran 90 wrappers are saved t=
o &quot;/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90&quo=
t;</div>
<div style=3D"background-color:transparent">=A0 adding &#39;/tmp/tmpFqUG_Z/=
src.linux-x86_64-2.7/fortranobject.c&#39; to sources.</div><div style=3D"ba=
ckground-color:transparent">=A0 adding &#39;/tmp/tmpFqUG_Z/src.linux-x86_64=
-2.7&#39; to include_dirs.</div>
<div style=3D"background-color:transparent">copying /usr/import/epd/lib/pyt=
hon2.7/site-packages/numpy/f2py/src/fortranobject.c -&gt; /tmp/tmpFqUG_Z/sr=
c.linux-x86_64-2.7</div><div style=3D"background-color:transparent">copying=
 /usr/import/epd/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.h=
 -&gt; /tmp/tmpFqUG_Z/src.linux-x86_64-2.7</div>
<div style=3D"background-color:transparent">=A0 adding
 &#39;/tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90&#39; =
to sources.</div><div style=3D"background-color:transparent">build_src: bui=
lding npy-pkg config files</div><div style=3D"background-color:transparent"=
>
running build_ext</div><div style=3D"background-color:transparent">customiz=
e UnixCCompiler</div><div style=3D"background-color:transparent">customize =
UnixCCompiler using build_ext</div><div style=3D"background-color:transpare=
nt">
customize IntelEM64TFCompiler</div><div style=3D"background-color:transpare=
nt">Found executable /usr/import/intel/fce/9.0/bin/ifort</div><div style=3D=
"background-color:transparent">customize IntelEM64TFCompiler using build_ex=
t</div>
<div style=3D"background-color:transparent">building &#39;moduleomp&#39; ex=
tension</div><div style=3D"background-color:transparent">compiling C source=
s</div><div style=3D"background-color:transparent">C compiler: gcc -pthread=
 -fno-strict-aliasing -g -O2 -DNDEBUG -O2 -fPIC</div>
<div style=3D"background-color:transparent"><br></div><div style=3D"backgro=
und-color:transparent">creating /tmp/tmpFqUG_Z/tmp</div><div style=3D"backg=
round-color:transparent">creating /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z</div><div st=
yle=3D"background-color:transparent">
creating /tmp/tmpFqUG_Z/tmp/tmpFqUG_Z/src.linux-x86_64-2.7</div><div style=
=3D"background-color:transparent">compile options: &#39;-DF2PY_REPORT_ON_AR=
RAY_COPY=3D1 -I/tmp/tmpFqUG_Z/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&#39;</div>
<div style=3D"background-color:transparent">gcc: /tmp/tmpFqUG_Z/src.linux-x=
86_64-2.7/moduleompmodule.c</div><div style=3D"background-color:transparent=
">gcc: /tmp/tmpFqUG_Z/src.linux-x86_64-2.7/fortranobject.c</div><div style=
=3D"background-color:transparent">
compiling Fortran 90 module sources</div><div style=3D"background-color:tra=
nsparent">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"backgroun=
d-color:transparent">Fortran f90 compiler: /usr/import/intel/fce/9.0/bin/if=
ort -FR -fpp -openmp -KPIC -cm -fast -fPIC -O3 -tpp7 -xW</div><div style=3D=
"background-color:transparent">
Fortran fix compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -fpp -openmp =
-KPIC -cm -fast -fPIC -O3 -tpp7 -xW</div><div style=3D"background-color:tra=
nsparent">compile options: &#39;-DF2PY_REPORT_ON_ARRAY_COPY=3D1 -I/tmp/tmpF=
qUG_Z/src.linux-x86_64-2.7 -I/usr/import/epd/lib/python2.7/site-packages/nu=
mpy/core/include -I/usr/import/epd/include/python2.7 -c&#39;</div>
<div style=3D"background-color:transparent">extra options: &#39;-module /tm=
p/tmpFqUG_Z/ -I/tmp/tmpFqUG_Z/&#39;</div><div style=3D"background-color:tra=
nsparent">ifort:f90: moduleomp.f90</div><div style=3D"background-color:tran=
sparent">
ifort: Command line warning: -fast overrides any subsequent processor speci=
fic option. =A0&#39;-xW&#39; has no effect</div><div style=3D"background-co=
lor:transparent">compiling Fortran sources</div><div style=3D"background-co=
lor:transparent">
Fortran f77 compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -w90 -w95 -KP=
IC -cm -fast -fPIC -O3 -tpp7 -xW</div><div style=3D"background-color:transp=
arent">Fortran f90 compiler: /usr/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 compiler: /usr/impo=
rt/intel/fce/9.0/bin/ifort -FI -fpp -openmp -KPIC -cm -fast -fPIC -O3 -tpp7=
 -xW</div><div style=3D"background-color:transparent">compile options: &#39=
;-DF2PY_REPORT_ON_ARRAY_COPY=3D1 -I/tmp/tmpFqUG_Z/src.linux-x86_64-2.7 -I/u=
sr/import/epd/lib/python2.7/site-packages/numpy/core/include -I/usr/import/=
epd/include/python2.7 -c&#39;</div>
<div style=3D"background-color:transparent">extra options: &#39;-module /tm=
p/tmpFqUG_Z/ -I/tmp/tmpFqUG_Z/&#39;</div><div style=3D"background-color:tra=
nsparent">ifort:f90:
 /tmp/tmpFqUG_Z/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90</div><div =
style=3D"background-color:transparent">ifort: Command line warning: -fast o=
verrides any subsequent processor specific option. =A0&#39;-xW&#39; has no =
effect</div>
<div style=3D"background-color:transparent">/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</div>
<div style=3D"background-color:transparent">moduleomp.f90(13) : (col. 6) re=
mark: OpenMP DEFINED REGION WAS PARALLELIZED.</div><div style=3D"background=
-color:transparent">ld: /tmp/ipo_ifortGwyhCh.o: relocation R_X86_64_PC32 ag=
ainst symbol `_moduleomp_mp_paral__13__par_region0&#39; can not be used whe=
n making a shared object;
 recompile with -fPIC</div><div style=3D"background-color:transparent">ld: =
final link failed: Bad value</div><div style=3D"background-color:transparen=
t">moduleomp.f90(13) : (col. 6) remark: OpenMP DEFINED REGION WAS PARALLELI=
ZED.</div>
<div style=3D"background-color:transparent">ld: /tmp/ipo_ifortGwyhCh.o: rel=
ocation R_X86_64_PC32 against symbol `_moduleomp_mp_paral__13__par_region0&=
#39; can not be used when making a shared object; recompile with -fPIC</div=
>
<div style=3D"background-color:transparent">ld: final link failed: Bad valu=
e</div><div style=3D"background-color:transparent">error: Command &quot;/us=
r/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/tm=
pFqUG_Z/src.linux-x86_64-2.7/fortranobject.o /tmp/tmpFqUG_Z/moduleomp.o /tm=
p/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&quot; failed
 with exit status 1</div><div style=3D"background-color:transparent">make: =
*** [moduleomp] Error 1</div><div style=3D"background-color:transparent"><b=
r></div><div style=3D"background-color:transparent;color:rgb(0,0,0);font-si=
ze:16px;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,seri=
f;font-style:normal">
<br></div><div style=3D"background-color:transparent;color:rgb(0,0,0);font-=
size:16px;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,se=
rif;font-style:normal"><br></div><div style=3D"background-color:transparent=
;color:rgb(0,0,0);font-size:16px;font-family:&#39;times new roman&#39;,&#39=
;new york&#39;,times,serif;font-style:normal">
2) Then I tried to add the option to --f90flags . Again, it does not compil=
e</div><div style=3D"background-color:transparent;color:rgb(0,0,0);font-siz=
e:16px;font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif=
;font-style:normal">
<br></div><div style=3D"background-color:transparent"><div style=3D"backgro=
und-color:transparent">f2py
 --fcompiler=3Dintelem --f90flags=3D&#39;-fpp -openmp -fPIC&#39; -lguide --=
opt=3D&#39;-fast -O3&#39; -DF2PY_REPORT_ON_ARRAY_COPY=3D1 -c -m moduleomp m=
oduleomp.f90 only: paral :</div><div style=3D"background-color:transparent"=
>running build</div>
<div style=3D"background-color:transparent">running config_cc</div><div sty=
le=3D"background-color:transparent">unifing config_cc, config, build_clib, =
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, build_ext, build commands --fcompiler option=
s</div><div style=3D"background-color:transparent">running build_src</div><=
div style=3D"background-color:transparent">
build_src</div><div style=3D"background-color:transparent">building extensi=
on &quot;moduleomp&quot; sources</div><div style=3D"background-color:transp=
arent">f2py options: [&#39;only:&#39;, &#39;paral&#39;,
 &#39;:&#39;]</div><div style=3D"background-color:transparent">f2py:&gt; /t=
mp/tmp_YINTS/src.linux-x86_64-2.7/moduleompmodule.c</div><div style=3D"back=
ground-color:transparent">creating /tmp/tmp_YINTS</div><div style=3D"backgr=
ound-color:transparent">
creating /tmp/tmp_YINTS/src.linux-x86_64-2.7</div><div style=3D"background-=
color:transparent">Reading fortran codes...</div><div style=3D"background-c=
olor:transparent"><span class=3D"yiv1765256354Apple-tab-span" style=3D"whit=
e-space:pre">	</span>Reading file &#39;moduleomp.f90&#39; (format:free)</di=
v>
<div style=3D"background-color:transparent">Post-processing...</div><div st=
yle=3D"background-color:transparent"><span class=3D"yiv1765256354Apple-tab-=
span" style=3D"white-space:pre">	</span>Block: moduleomp</div><div style=3D=
"background-color:transparent">
<span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre">			</=
span>Block: moduleomp</div><div style=3D"background-color:transparent"><spa=
n class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre">				</spa=
n>Block:
 paral</div><div style=3D"background-color:transparent">Post-processing (st=
age 2)...</div><div style=3D"background-color:transparent"><span class=3D"y=
iv1765256354Apple-tab-span" style=3D"white-space:pre">	</span>Block: module=
omp</div>
<div style=3D"background-color:transparent"><span class=3D"yiv1765256354App=
le-tab-span" style=3D"white-space:pre">		</span>Block: unknown_interface</d=
iv><div style=3D"background-color:transparent"><span class=3D"yiv1765256354=
Apple-tab-span" style=3D"white-space:pre">			</span>Block: moduleomp</div>
<div style=3D"background-color:transparent"><span class=3D"yiv1765256354App=
le-tab-span" style=3D"white-space:pre">				</span>Block: paral</div><div st=
yle=3D"background-color:transparent">Building modules...</div><div style=3D=
"background-color:transparent">
<span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre">	</sp=
an>Building module &quot;moduleomp&quot;...</div><div style=3D"background-c=
olor:transparent"><span class=3D"yiv1765256354Apple-tab-span" style=3D"whit=
e-space:pre">		</span>Constructing F90 module support for
 &quot;moduleomp&quot;...</div><div style=3D"background-color:transparent">=
<span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre">			</=
span>Constructing wrapper function &quot;moduleomp.paral&quot;...</div><div=
 style=3D"background-color:transparent">
<span class=3D"yiv1765256354Apple-tab-span" style=3D"white-space:pre">			</=
span> =A0nthreads,thread_id =3D paral()</div><div style=3D"background-color=
:transparent"><span class=3D"yiv1765256354Apple-tab-span" style=3D"white-sp=
ace:pre">	</span>Wrote C/API module &quot;moduleomp&quot; to file &quot;/tm=
p/tmp_YINTS/src.linux-x86_64-2.7/moduleompmodule.c&quot;</div>
<div style=3D"background-color:transparent"><span class=3D"yiv1765256354App=
le-tab-span" style=3D"white-space:pre">	</span>Fortran 90 wrappers are save=
d to &quot;/tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90&=
quot;</div>
<div style=3D"background-color:transparent">=A0 adding &#39;/tmp/tmp_YINTS/=
src.linux-x86_64-2.7/fortranobject.c&#39; to sources.</div><div style=3D"ba=
ckground-color:transparent">=A0 adding
 &#39;/tmp/tmp_YINTS/src.linux-x86_64-2.7&#39; to include_dirs.</div><div s=
tyle=3D"background-color:transparent">copying /usr/import/epd/lib/python2.7=
/site-packages/numpy/f2py/src/fortranobject.c -&gt; /tmp/tmp_YINTS/src.linu=
x-x86_64-2.7</div>
<div style=3D"background-color:transparent">copying /usr/import/epd/lib/pyt=
hon2.7/site-packages/numpy/f2py/src/fortranobject.h -&gt; /tmp/tmp_YINTS/sr=
c.linux-x86_64-2.7</div><div style=3D"background-color:transparent">=A0 add=
ing &#39;/tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.f90&#3=
9; to sources.</div>
<div style=3D"background-color:transparent">build_src: building npy-pkg con=
fig files</div><div style=3D"background-color:transparent">running build_ex=
t</div><div style=3D"background-color:transparent">customize UnixCCompiler<=
/div>
<div style=3D"background-color:transparent">customize UnixCCompiler using b=
uild_ext</div><div style=3D"background-color:transparent">customize IntelEM=
64TFCompiler</div><div style=3D"background-color:transparent">Found executa=
ble /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 &#=
39;moduleomp&#39; extension</div><div style=3D"background-color:transparent=
">
compiling C sources</div><div style=3D"background-color:transparent">C comp=
iler: 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/tmp_YINTS/tmp</div><div style=3D"background-color:transparent=
">creating /tmp/tmp_YINTS/tmp/tmp_YINTS</div><div style=3D"background-color=
:transparent">creating /tmp/tmp_YINTS/tmp/tmp_YINTS/src.linux-x86_64-2.7</d=
iv>
<div style=3D"background-color:transparent">compile options: &#39;-DF2PY_RE=
PORT_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/im=
port/epd/include/python2.7 -c&#39;</div><div style=3D"background-color:tran=
sparent">gcc: /tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleompmodule.c</div>
<div style=3D"background-color:transparent">gcc: /tmp/tmp_YINTS/src.linux-x=
86_64-2.7/fortranobject.c</div><div style=3D"background-color:transparent">=
compiling Fortran 90 module sources</div><div style=3D"background-color:tra=
nsparent">
Fortran f77 compiler: /usr/import/intel/fce/9.0/bin/ifort -FI -w90 -w95 -KP=
IC -cm -fast -O3 -tpp7 -xW</div><div style=3D"background-color:transparent"=
>Fortran f90 compiler: /usr/import/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/impo=
rt/intel/fce/9.0/bin/ifort -FI -fpp -openmp -fPIC -KPIC -cm -fast -O3 -tpp7=
 -xW</div><div style=3D"background-color:transparent">compile options:
 &#39;-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/im=
port/epd/include/python2.7 -c&#39;</div><div style=3D"background-color:tran=
sparent">
extra options: &#39;-module /tmp/tmp_YINTS/ -I/tmp/tmp_YINTS/&#39;</div><di=
v 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. =A0&#39;-xW&#39; has no=
 effect</div>
<div style=3D"background-color:transparent">compiling Fortran sources</div>=
<div style=3D"background-color:transparent">Fortran f77 compiler: /usr/impo=
rt/intel/fce/9.0/bin/ifort -FI -w90 -w95 -KPIC -cm -fast -O3 -tpp7 -xW</div=
>
<div style=3D"background-color:transparent">Fortran f90 compiler: /usr/impo=
rt/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">c=
ompile options: &#39;-DF2PY_REPORT_ON_ARRAY_COPY=3D1 -I/tmp/tmp_YINTS/src.l=
inux-x86_64-2.7 -I/usr/import/epd/lib/python2.7/site-packages/numpy/core/in=
clude -I/usr/import/epd/include/python2.7 -c&#39;</div>
<div style=3D"background-color:transparent">extra options: &#39;-module /tm=
p/tmp_YINTS/ -I/tmp/tmp_YINTS/&#39;</div><div style=3D"background-color:tra=
nsparent">ifort:f90: /tmp/tmp_YINTS/src.linux-x86_64-2.7/moduleomp-f2pywrap=
pers2.f90</div>
<div style=3D"background-color:transparent">ifort: Command line warning: -f=
ast overrides any subsequent processor specific option. =A0&#39;-xW&#39; ha=
s no effect</div><div style=3D"background-color:transparent">/usr/import/in=
tel/fce/9.0/bin/ifort -shared -shared -nofor_main /tmp/tmp_YINTS/tmp/tmp_YI=
NTS/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</div>
<div style=3D"background-color:transparent">moduleomp.f90(13) : (col. 6) re=
mark: OpenMP DEFINED REGION WAS PARALLELIZED.</div><div style=3D"background=
-color:transparent">ld: /tmp/ipo_ifortR7vdL6.o: relocation R_X86_64_PC32 ag=
ainst symbol `_moduleomp_mp_paral__13__par_region0&#39; can not be used whe=
n making a shared object; recompile with -fPIC</div>
<div style=3D"background-color:transparent">ld: final link failed: Bad valu=
e</div><div style=3D"background-color:transparent">moduleomp.f90(13) : (col=
. 6) remark: OpenMP DEFINED REGION WAS PARALLELIZED.</div><div style=3D"bac=
kground-color:transparent">
ld: /tmp/ipo_ifortR7vdL6.o: relocation R_X86_64_PC32 against symbol `_modul=
eomp_mp_paral__13__par_region0&#39; can not be used when
 making a shared object; recompile with -fPIC</div><div style=3D"background=
-color:transparent">ld: final link failed: Bad value</div><div style=3D"bac=
kground-color:transparent">error: Command &quot;/usr/import/intel/fce/9.0/b=
in/ifort -shared -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/fortranobject.o /tmp/tmp_YINTS/moduleomp.o /tmp/tmp_YINTS/tmp/tmp_YINT=
S/src.linux-x86_64-2.7/moduleomp-f2pywrappers2.o -L/usr/import/epd/lib -lgu=
ide -lpython2.7 -o ./moduleomp.so&quot; failed with exit status 1</div>
<div style=3D"background-color:transparent">make: *** [moduleomp] Error 1</=
div><div style=3D"background-color:transparent"><br></div><div style=3D"bac=
kground-color:transparent;color:rgb(0,0,0);font-size:16px;font-family:&#39;=
times new roman&#39;,&#39;new york&#39;,times,serif;font-style:normal">
</div></div></span></div><div style=3D"font-family:&#39;times new roman&#39=
;,&#39;new york&#39;,times,serif;font-size:12pt"><div style=3D"font-family:=
&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:12pt"><d=
iv dir=3D"ltr">
Finally I &quot;converted&quot; the fortran module in a program and yes, I =
can compile it with=A0ifort -openmp moduleomp.f90 -o moduleomp</div><div di=
r=3D"ltr"><br></div><div dir=3D"ltr">Thank you again for your support!</div=
><div dir=3D"ltr">
n.</div><div dir=3D"ltr"><br></div>&gt;That f90 program compiles for me, bu=
t I&#39;m using a different version of ifort on a computer with different l=
ibraries etc.=A0 Did you try adding the -fPIC option as suggested by this e=
rror message? <br>
<br>&gt;<a rel=3D"nofollow" target=3D"_blank" href=3D"http://jaytaylor.com/=
blog/2010/10/06/howto-fix-fpic-errors/">http://jaytaylor.com/blog/2010/10/0=
6/howto-fix-fpic-errors/</a><br><br>&gt;Can you compile moduleomp.f90 direc=
tly 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 &lt;<a rel=3D"nofollow" target=3D=
"_blank" href=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:=
<br><br>&gt; ld: /tmp/ipo_ifortvrTUJH.o: relocation R_X86_64_PC32 against s=
ymbol `_moduleomp_mp_paral__16__par_region0&#39; can not be used when makin=
g a shared object; recompile<br>
&gt;=A0 with -fPIC<br>&gt; <br>&gt; ld: final link failed: Bad value<br><br=
><br>_______________________________________________<br>f2py-users mailing =
list<br><a rel=3D"nofollow" target=3D"_blank" href=3D"mailto:f2py-users@cen=
s.ioc.ee">f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]</a><br>
<a rel=3D"nofollow" target=3D"_blank" href=3D"http://cens.ioc.ee/mailman/li=
stinfo/f2py-users">http://cens.ioc.ee/mailman/listinfo/f2py-users</a><br><b=
r><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 href=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]">f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]</a><br>=
<a href=3D"http://cens.ioc.ee/mailman/listinfo/f2py-users" target=3D"_blank=
">http://cens.ioc.ee/mailman/listinfo/f2py-users</a><br>
<br><br> </div> </div>  </div></div></blockquote><blockquote type=3D"cite">=
<div><span>_______________________________________________</span><br><span>=
f2py-users mailing list</span><br><span><a href=3D"mailto:[email protected]=
oc.ee">f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]</a></span><br>
<span><a href=3D"http://cens.ioc.ee/mailman/listinfo/f2py-users">http://cen=
s.ioc.ee/mailman/listinfo/f2py-users</a></span><br></div></blockquote></bod=
y></html>

--047d7b6d9624315ea304d3e1d342--


--===============2025820467285385226==
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

--===============2025820467285385226==--