On Mon, Aug 9, 2010 at 9:40 AM, Brad <brad.r...@gmail.com> wrote:
> Hi,
>
> I just installed the latest version of fwrap 0.1.1 under WindowsXP
> (SP3) using python 2.6.5 (Enthought 6.2-1) without any apparent
> problems.
I fully intend for fwrap to work on Windows; unfortunately I do not
have access to XP or 7 to test it out. If you're willing to work with
me, I can troubleshoot things for you over email, etc.
>
> When I attempt to run the tests via
>
> D:\temp\fwrap-0.1.1\runtests.py> python runtests.py ,
>
> I get the same error for every test case, one of which is detailed
> below.
The (unhelpful) error message--I hope to improve it--indicates that
fwrap can't find a Fortran compiler.
What is the output for 'python fwrapc.py --help-fcompiler'?
If fwrap is unable to find a fortran compiler you'll need to supply
the information explicitly. Let me know the output of the above and
then we can go from there.
Kurt
> --
> You received this message because you are subscribed to the Google Groups "Fwrap Users" group.
> To post to this group, send email to fwrap...@googlegroups.com.
> To unsubscribe from this group, send email to fwrap-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/fwrap-users?hl=en.
>
>
On Tue, Aug 10, 2010 at 6:54 AM, Brad Reisfeld <brad.r...@gmail.com> wrote:
> On 8/9/2010 1:03 PM, Kurt Smith wrote:
>> On Mon, Aug 9, 2010 at 1:46 PM, Brad Reisfeld <brad.r...@gmail.com> wrote:
>>
>> We're definitely getting somewhere. For the runtests commandline, do
>> this instead:
>>
>> python runtests.py -vvvv --fcompiler=g95 --no-cleanup >runtests.out 2>&1
>>
>> (that's 4 v's, which causes it to spit out *everything* to the
>> console, and the rest of the stuff is to capture the output into
>> runtests.out. This is how I'd do it on bash, I don't know if the
>> stderr redirection is the same on mingw...)
>>
>> Zip up runtests.out and send it to me. That will tell me what's going on.
>>
>> Thanks,
>>
>> Kurt
>>
>
>
> Thanks, Kurt.
>
> Here's the requested output.
>
> -Brad
>
The issue is, I think, related to a recent fix in Cython for correct
newline handling. All the errors I can find are like these:
Error converting Pyrex file to C:
------------------------------------------------------------
...
cimport numpy as np^M
^
------------------------------------------------------------
D:\temp\fwrap-0.1.1\BUILD\compile\all_char_fwrap\all_char_fwrap.pxd:1:19:
Unrecognized character
Could you download the latest Cython 0.13 and let me know if that
fixes things? If not send me another runtests.out.
http://cython.org/release/Cython-0.13.beta0.tar.gz
Note: this is still a beta and there are some other issues being
worked out according to Cython's ML. I just want to know if the
errors I see are fixed in the latest Cython version.
Kurt
Basically what needs to happen is on the g++ -mno-cygwin ... compile
line, the -LD:... and -lf95 arguments need to appear, along with the
other -L and -l arguments.
You could try using f2py and see what it outputs for its compilation
lines, maybe that will give a hint.
My apologies, but I have no experience on mingw. These build problems
are always the biggest PITA, thanks for your patience.
Maybe someone else on the list with mingw experience can help out.
>
> Do you know if the tests that are succeeding and failing indicate if
> libf95 and libgcc are being used at all?
>
I know for certain that they aren't: the errors are all linking errors
and the tests can't find the g95 runtime functions inside libf95.a.
Some tests don't depend on these functions at all so that's why they
succeed.
You'll see a number of 'undefined reference to ...', these are the
function calls that are defined in libg95. On bash you'd do 'nm
libf95.a' to get a listing of the defined functions.
> Could there be some other library that needs to be added?
>
> Thanks.
>
> -Brad
>