On Thu, Jan 22, 2004 at 09:31:51AM +0100, Peter Klaver wrote:
> Hi,
>
> >>>After installing the beta version of IBM XL Fortran 8.1 for Mac
> >>>OSX on my G4 iBook, the simple program x.f, consisting of the
> >>>three lines
> >>> f=.3
> >>> write(6,*) f
> >>> end
> >>>compiles but does not load. Doing, for example, f77 x.f gives output
> >>>message
> >>>
> >>>** _main === End of Compilation 1 ===
> >>>1501-510 Compilation successful for file x.f.
> >>>/usr/bin/ld: can't map file: /usr/lib ((os/kern) invalid argument)
> >>>
> >>>Does anybody know the origin of this problem?
Can you get a more verbose diagnostic to see exactly what flags are
being passed to ld?
> Strange, it works fine for me. Here is my commandline output:
>
> dualG4 peter /Users/peter/md> cat x.f
> f=0.3
> write (6,*) f
> end
> dualG4 peter /Users/peter/md> xlf x.f
> ** _main === End of Compilation 1 ===
> 1501-510 Compilation successful for file x.f.
> dualG4 peter /Users/peter/md> ./a.out
> 0.3000000119
> dualG4 peter /Users/peter/md>
>
> This is also the xlf beta, not the final release. It also works fine
> for me with Absoft. Do you have that (or g77) installed? See if that
> will work, if so your problem would appear not to originate in XLF.
There are known problems with some versions of the g77 compiler on OS
X, including the versions included in some editions of Apple Developer
Tools. I mean, if the program:
end
won't compile, you know you're in trouble:) Many gcc-3.3 are broken,
recent gcc-3.4 are fixed IIRC.
dan
--
Daniel Macks
email@hidden
http://www.netspace.org/~dmacks
_______________________________________________
scitech mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/scitech
Do not post admin requests to the list. They will be ignored.