- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I compile a library using C code, then linking fails when a fortran application tries to link to it if I have selected -fast or -O2/3
Specifically,
xiar: executing 'ar'
when linking the libs, and once this has happened, nothing works properly afterwards.
ipo: warning #11060: ../../bin/libhdf5_fortran.a is an archive, but has no symbols (this can happen if ar is used where xiar is needed)
ipo: warning #11010: file format not recognized for ../../bin/libhdf5_fortran.a
ipo: warning #11060: ../../bin/libhdf5_test_fortran.a is an archive, but has no symbols (this can happen if ar is used where xiar is needed)
ipo: warning #11010: file format not recognized for ../../bin/libhdf5_test_fortran.a
ipo: warning #11060: ../../bin/libhdf5_fortran.a is an archive, but has no symbols (this can happen if ar is used where xiar is needed)
ipo: warning #11010: file format not recognized for ../../bin/libhdf5_fortran.a
and the link fails with a ton of missing symbols.
Does anyone have any suggestions?
thanks
JB
Specifically,
xiar: executing 'ar'
when linking the libs, and once this has happened, nothing works properly afterwards.
ipo: warning #11060: ../../bin/libhdf5_fortran.a is an archive, but has no symbols (this can happen if ar is used where xiar is needed)
ipo: warning #11010: file format not recognized for ../../bin/libhdf5_fortran.a
ipo: warning #11060: ../../bin/libhdf5_test_fortran.a is an archive, but has no symbols (this can happen if ar is used where xiar is needed)
ipo: warning #11010: file format not recognized for ../../bin/libhdf5_test_fortran.a
ipo: warning #11060: ../../bin/libhdf5_fortran.a is an archive, but has no symbols (this can happen if ar is used where xiar is needed)
ipo: warning #11010: file format not recognized for ../../bin/libhdf5_fortran.a
and the link fails with a ton of missing symbols.
Does anyone have any suggestions?
thanks
JB
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-fast implies -ipo. Which C compiler did you use and how did you do the compile and link? You haven't shown us the whole process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As the messages indicate, ipo objects can't be placed in a .a library by generic linux tools; xiar would be required to make the library, and xilink to use it. It's a little strange to put a .a file in a /bin/ directory. but its probably OK if you can sort out the confusion. -O2 or -O3 won't in themselves require xiar or xilink.
-fast basically is a shortcut to get around benchmark rules which limit the number of options; better results often are obtained by specifying individual options.
-fast basically is a shortcut to get around benchmark rules which limit the number of options; better results often are obtained by specifying individual options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think I've found the problem. A file compiled with GCC was being pulled into the link phase and this broke everything. I'm recomiling everything now and it seems to be ok.
Sorry for the noise.
Sorry for the noise.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page