error when the -malign-double flag is included in a Makefile
jdelia@intec.unl.edu.ar
jdelia@intec.unl.edu.ar
Sat Oct 25 20:14:00 GMT 2008
Jerry DeLisle <jvdelisle@verizon.net> ha escrito:
Dear Jerry,
> jdelia@intec.unl.edu.ar wrote:
>> Hi gfortran developers,
>>
>> I found a running crash with a rather big code and the following
>> codes included in the "error.tgz" file is a reduced version.
>>
>> From some further tests I found that the runnig crash is caused by
>> the "-malign-double" flag only when it is used in a Makefile.
>>
>> On the other hand, when each module and main program are compiled
>> by turn and linked manualy, there is not any crashing.
>>
>> Please, how can I do to fix this?
>>
>
> The -malign-double is known to break ABI and it is recommended that you
> not use this flag.
OK. This flag only was "inherited" from another Makefile that uses the
"f2py" interface generator from Fortran to Python
(http://cens.ioc.ee/projects/f2py2e/).
> If you are running on a 64 bit architecture, it buys you nothing in
> performance.
It is not my case.
> The gfortran library is not compiled with it, so if you compile a
> routine or program that contains calls to the library, in particular,
> the I/O routines, your calls will not align correctly with the library
> functions and you will get failures.
OK.
> If you insist that you need -malign-double, then you must put all your
> programs I/O in separate routines and compile those without
> -malign-double. Then you can compile compute only routines with
> -malign-double and things may then work. I can't guarantee that though.
No, I am free to modify the all flags that are used in the project.
Thanks for your complete clarifications!
Regards,
Jorge.
--
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the Fortran
mailing list