Opened 13 years ago

Closed 13 years ago

#31222 closed defect (fixed)

fftw3f does not have the fortran bindings. sfftw

Reported by: clirakis (Chris) Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: fftw-3-single

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I am running:

uname -a
Darwin localhost 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386

I did a port install of fftw-3-single. In this install there should be a fortran wrapper. The calls should be of the form sfftw….

Is this a difference in 3.3_0 and the current version of fftw 3.1.2? Can this be fixed?
Chris

Change History (10)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to ram@…
Port: fftw-3-single added

Examine the output of "port variants fftw-3-single"; you should find that you can create the fortran wrappers by selecting the gcc variant of your choice.

comment:2 Changed 13 years ago by skymoo (Adam Mercer)

All the update to 3.3 did was to update the version, nothing changed wrt the fortran bindings. Which gcc variant are you using? What do you mean about 3.1.2 being the current version of fftw?

comment:3 Changed 13 years ago by clirakis (Chris)

I have not used any of the prior version of macports so I can't comment on change bringing the current version to 3.3.

Will variants give me any other choices other than fftw-3-single? I assume that this port just enables the --enable-single flag in the fftw configure script. If so, this should have the fortran bindings in it.

I am using the xcode mac version of gcc. I don't happen to be next to my mac right now. I believe it is gcc 4.1.2 but I'm not sure, BTW gfortran is also the apple xcode variant.

Yes the version of fftw that I downloaded off the website was 3.1.2 and when I compile it, the bindings do exist so I'm pretty sure it doesn't have anything to do with the compiler.

Is there a way I can substitute my compiled version and make ports think it installed a copy of fftw?

comment:4 in reply to:  3 Changed 13 years ago by skymoo (Adam Mercer)

Replying to clirakis@…:

Will variants give me any other choices other than fftw-3-single? I assume that this port just enables the --enable-single flag in the fftw configure script. If so, this should have the fortran bindings in it.

The fortran bindings are only enabled if you specify one of the gcc variants otherwise there is no fortran compiler available as Xcode doesn't incude a fortran compiler. If you look at the port the --disable-fortran flag is passed unless one of the gcc variants is used.

I am using the xcode mac version of gcc. I don't happen to be next to my mac right now. I believe it is gcc 4.1.2 but I'm not sure, BTW gfortran is also the apple xcode variant.

Xcode doesn't contain a fortran compiler, so if you are not using one of the gcc variants that will explain why the fortran bindings aren't being built. What do you mean by gfortran being an Xcode variant?

Yes the version of fftw that I downloaded off the website was 3.1.2 and when I compile it, the bindings do exist so I'm pretty sure it doesn't have anything to do with the compiler.

In that case it seems that you have a fortran compiler, where did you get it from? Where is it installed?

Is there a way I can substitute my compiled version and make ports think it installed a copy of fftw?

No

comment:5 Changed 13 years ago by clirakis (Chris)

It is gfortran and when I do a gfortran -V it comes up as a apple osx supplied version. I'll dig further when I get home from travel and post here.

So are you saying that I can change the flags on the port during compile if I want? Chris

comment:6 in reply to:  5 Changed 13 years ago by skymoo (Adam Mercer)

Replying to clirakis@…:

It is gfortran and when I do a gfortran -V it comes up as a apple osx supplied version. I'll dig further when I get home from travel and post here.

That is not coming from Xcode, it would be useful to know where it came from?

So are you saying that I can change the flags on the port during compile if I want?

By using the variants you can.

comment:7 Changed 13 years ago by clirakis (Chris)

I promised that I'd publish the results from the fortran dump.

gfortran -v

Using built-in specs. Target: i686-apple-darwin10 Configured with: /Builds/apple/gcc-5664/build/obj/src/configure --disable-checking --prefix=/usr --mandir=/usr/share/man --enable-languages=c,objc,c++,obj-c++,fortran --program-transform-name=/[cg][.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/usr/include/c++/4.2.1 --host=i686-apple-darwin10 --target=i686-apple-darwin10 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5664)

Does that help?

comment:8 Changed 13 years ago by skymoo (Adam Mercer)

Not really, where is the compiler installed, i.e. whats the output of which gfortran?

comment:9 Changed 13 years ago by skymoo (Adam Mercer)

ping, where is the gfortran installed. I can't go about trying to address this ticket without that information.

comment:10 Changed 13 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: newclosed

No response, reopen if this is still a problem.

Note: See TracTickets for help on using tickets.