Michel Peyrard wrote:

 I have having some difficulties compiling the plplot package and I
noticed that g77 provided by fink is 3.4 while gcc of the Apple Developer
tools is 3.3.

There seems to be some inconsistency that could explain my problem.

 - why did you swich to 3.4 for g77. According to GNU it does not seem to
be stable yet ?

 - is it still possible to get g77 3.3 as a fink package? I do not find it
with fink commander.

In the 10.3/unstable tree, you have g77-3.3.2-2, too. You have to require this explicitly, i.e. "fink install g77-3.3.2-2", because there is also the 3.4 version. FinkCommander only shows the highest version available.


OTOH, g77-3.4 has been working quite well for me together with gcc-3.3, so I'd rather question the idea that your problems (what are they?) come from an incompatibility there.

The reason why Fink's g77 was promoted to 3.4 is a change in Apple's assembler in the June03 dev tools and later that unilaterally declared that a certain construction produced by the compiler is a bug. This construction is rather unusual in C and C++ code, but rather common in Fortran code.

The bug is still present in the gcc-3.3 that ships with Panther. Apple never bothered to fix it (it looks like their assembler guy doesn't talk to their compiler guys). Therefore a g77 compiled from Apple's gcc-3.3 sources would still have this bug (unless specifically patched or unless the assembler is replaced by the pre-June03 version). In the "official" (FSF) gcc sources, this bug was fixed in version 3.4. Maybe it was backported to version 3.3.2, I don't know.

In any case, g77-3.4 is free of this bug. As with g77-3.3.2, you'll have to see for yourself. The minimal example that exhibits the bug is a Fortran program consisting of a single line

END

If it compiles without error message, you are fine.

--
Martin



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to