This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/42568] BLOCKDATA referenced in EXTERNAL not loading from library



------- Comment #1 from kargl at gcc dot gnu dot org  2010-01-01 00:46 -------
Can you please read how to submit a bug report?  I can't
find anywhere were it states that a Bourne shell script
should be submitted.  It simply makes it almost impossible
to read the actual bug report.  In fact, all the crap with 
nm and ar is just unneeded cluttered.

% gfc4x -c a2.f90
% ar -cur libex.a a2.o
% gfc4x -o z a1.f90 -L. -lex
% ./z
 chars=abcdefghijklmnopqrst<remainder deleted>
 *missingBlockData* loaded common block
% gfc4x -c a2.f90 a1.f90
% ./z
 chars=abcdefghijklmnopqrst<remainder deleted>
 *missingBlockData* loaded common block
% gfortran44 -c a2.f90
% ar -cur libex.a a2.o
% gfortran44 -o z a1.f90 -L. -lex
% ./z
 chars=abcdefghijklmnopqrst<remainder deleted>
 *missingBlockData* loaded common block
% gfortran44 -o z a1.f90 a2.f90
% ./z
 chars=abcdefghijklmnopqrst<remainder deleted>
 *missingBlockData* loaded common block

Appears to work for me.  Where did you get your copy of 
gfortran?


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42568


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]