[Tfug] gnu ld

Brian Murphy murphy+tfug at email.arizona.edu
Fri Aug 11 13:51:49 MST 2006


Short answer: I don't know.  Lahey Support says you can safely ignore
it:

http://www.laheyforum.com/showthread.php?p=10821#post10821

Google fu:
fortran alignment ld symbol warning  "is smaller than 16"

Brian

Quoting Jim Secan <jim at nwra.com>:
> Where does one go to find info on warnings and error messages from the gnu
> ld beast?  The on-line gnu doc for ld doesn't seem to want to talk about
> this, and googling was a waste of time.  I have a somewhat complex
> (although not overly so) makefile that runs just fine on Solaris, but when
> I run it on Linux (FC3) I get a bunch of:
>
> /usr/bin/ld: Warning: alignment 4 of symbol 'X' in bd.o is smaller than 16
> in subrname.o
>
> but it did generate an executable that works.  The code is all Fortran, 'X'
> is one or another common block, and bd is a blockdata routine.  I'm using
> the Lahey/Fujitsu Fortran compiler.  If I lump all the code that goes into
> the program into a single source-code file, it compiles and links with no
> complaints (both with and without a makefile).  Same if I exclude the
> blockdata routine (but then the program won't run correctly).  It's only
> when things are in separate files with the blockdata routine included that
> it produces all these warnings.  I suspect this might be a compiler/loader
> disconnect, but the Lahey site is silent on this issue as well.
>
> So, what the heck is ld complaining about and what is the fix?  (I know,
> drop Fortran - not an option.)  And were gnu ld's warning messages brought
> to us by the same folks as "all your base are belong to us"?
>
> Jim
> *---------------------*-------------------------------*
> | Jim Secan           | Northwest Research Assoc, Inc |
> | (jim at nwra.com)      | 2455 E. Speedway, Suite 204   |
> | (520) 319-7773      | Tucson, Arizona 85719         |
> *---------------------*-------------------------------*
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org




The opinions or statements expressed herein are my own and should not be
taken as a position, opinion, or endorsement of the University of
Arizona.






More information about the tfug mailing list