tecio and pgi fortran

Creating Tecplot binary data files

Moderators: davetaflin, salter, steve, jprenaud, straton, Chris Idso

egpatton
Experienced user
Posts: 14
Joined: Mon Jul 14, 2008 9:09 am
Location: Boulder, CO
Contact:

tecio and pgi fortran

Postby egpatton » Mon Jul 14, 2008 9:52 am

Hi,

I recently upgraded to a MacPro intel machine running OSX Leopard (10.5.4). I've been using the xlf compilers and tecio for years. However, with the shift to Leopard and the intel architecture, my office is now only supporting the PGI compilers.

Has anyone figured out the proper statements required to link fortran code with the tecio libraries (Tec360_2008) using the PGI fortran compilers?

When compiling the simple test case, I get the following:

---------------------------------------------------

Make
Choose the model to build:
ibmx64.51
macx.103
macix.104
macix64.104
linuxg23i64.24
linuxg23.24
linuxi64.24
linux64.24
linux64.26
linuxg248x64.26
linux.24
sgix64.65
sun464.57
ALL
--> macix.104
Choose test to build
1. Simple C example
2. Simple FORTRAN example
3. Simple FORTRAN-90 example
4. Complex C example
5. Complex FORTRAN example
6. Complex FORTRAN-90 example

2
simtest.f:

Undefined symbols:
"__Unwind_Resume", referenced from:
__Z12ReadInStringP12FileStream_ssiPPcc in tecio.a(dataio4.o)
__Z13ReadPureBlockP12FileStream_scPv15FieldDataType_eiiPc in tecio.a(dataio4.o)
__Z34ReadInDataFileTypeTitleAndVarNamesP12FileStream_ssPPcP14DataFileType_ePiPP13_StringList_s in tecio.a(dataio4.o)
__Z34ReadInDataFileTypeTitleAndVarNamesP12FileStream_ssPPcP14DataFileType_ePiPP13_StringList_s in tecio.a(dataio4.o)
__Z34ReadInDataFileTypeTitleAndVarNamesP12FileStream_ssPPcP14DataFileType_ePiPP13_StringList_s in tecio.a(dataio4.o)
__Z18ReadInCustomLabelsP12FileStream_sscPP13_StringList_s in tecio.a(dataio4.o)
__Z18ReadInCustomLabelsP12FileStream_sscPP13_StringList_s in tecio.a(dataio4.o)
__Z18ReadInCustomLabelsP12FileStream_sscPP13_StringList_s in tecio.a(dataio4.o)
__Z13ReadInUserRecP12FileStream_ssiPPc in tecio.a(dataio4.o)
__Z13ReadInAuxDataP12FileStream_ssP10_AuxData_s in tecio.a(dataio4.o)
__Z13ReadInAuxDataP12FileStream_ssP10_AuxData_s in tecio.a(dataio4.o)
__Z16ReadInZoneHeaderP12FileStream_ssP11_ZoneSpec_sP6_Set_asPc in tecio.a(dataio4.o)
__Z16ReadInZoneHeaderP12FileStream_ssP11_ZoneSpec_sP6_Set_asPc in tecio.a(dataio4.o)
__Z16ReadInZoneHeaderP12FileStream_ssP11_ZoneSpec_sP6_Set_asPc in tecio.a(dataio4.o)
__Z16ReadInZoneHeaderP12FileStream_ssP11_ZoneSpec_sP6_Set_asPc in tecio.a(dataio4.o)
__Z16ReadInZoneHeaderP12FileStream_ssP11_ZoneSpec_sP6_Set_asPc in tecio.a(dataio4.o)
__Z16ReadInZoneHeaderP12FileStream_ssP11_ZoneSpec_sP6_Set_asPc in tecio.a(dataio4.o)
__Z16ReadInZoneHeaderP12FileStream_ssP11_ZoneSpec_sP6_Set_asPc in tecio.a(dataio4.o)
__Z16ReadInZoneHeaderP12FileStream_ssP11_ZoneSpec_sP6_Set_asPc in tecio.a(dataio4.o)
__Z16ReadInZoneHeaderP12FileStream_ssP11_ZoneSpec_sP6_Set_asPc in tecio.a(dataio4.o)
__Z14ReadInGeometryP12FileStream_sscP7_Geom_si in tecio.a(dataio4.o)
__Z10ReadInTextP12FileStream_sscP7_Text_si in tecio.a(dataio4.o)
__Z18GetNewInputVersionP12FileStream_s in tecio.a(dataio4.o)
__Z14OutOfMemoryMsgv in tecio.a(dataset0.o)
__Z18FieldDataAllocDataP12_FieldData_ac in tecio.a(dataset0.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
_ReadTec in tecio.a(datautil.o)
__Z7vErrMsgN7tecplot7strutil16TranslatedStringEPc in tecio.a(q_msg.o)
__Z6ErrMsgN7tecplot7strutil16TranslatedStringEz in tecio.a(q_msg.o)
__Z24StringListItemDuplicatorPvS_i in tecio.a(strlist.o)
_StringListGetString in tecio.a(strlist.o)
__Z19StringListSetStringP13_StringList_siPKc in tecio.a(strlist.o)
__Z22StringListInsertStringP13_StringList_siPKc in tecio.a(strlist.o)
__Z22StringListFromCompoundPKc in tecio.a(strlist.o)
__Z16AuxDataItemAllocPKci13AuxDataType_ec in tecio.a(auxdata.o)
__Z16AuxDataItemAllocPKci13AuxDataType_ec in tecio.a(auxdata.o)
__ZN7tecplot7strutil27createUtf8StringTranslationERSs in tecio.a(TranslatedString.o)
__ZN7tecplot7strutil16TranslatedStringD1Ev in tecio.a(TranslatedString.o)
__ZN7tecplot7strutil16TranslatedStringC2Ev in tecio.a(TranslatedString.o)
__ZN7tecplot7strutil16TranslatedStringC1Ev in tecio.a(TranslatedString.o)
__ZN7tecplot7strutil16TranslatedStringC2ENS1_4ModeEPKcS4_ in tecio.a(TranslatedString.o)
__ZN7tecplot7strutil16TranslatedStringC1ENS1_4ModeEPKcS4_ in tecio.a(TranslatedString.o)
__ZN7tecplot7strutil16TranslatedStringD2Ev in tecio.a(TranslatedString.o)
__ZN7tecplot7strutil16TranslatedStringD0Ev in tecio.a(TranslatedString.o)
__ZN7tecplot7strutil16TranslatedStringaSERKS1_ in tecio.a(TranslatedString.o)
__ZN7tecplot7strutil16TranslatedStringC2ERKS1_ in tecio.a(TranslatedString.o)
__ZN7tecplot7strutil16TranslatedStringC1ERKS1_ in tecio.a(TranslatedString.o)
__Z13vFormatStringPKcPc in tecio.a(strutil.o)
__Z15LineBreakStringPKcj in tecio.a(strutil.o)
__Z19InternalResetStringPPcPKcc in tecio.a(strutil.o)
__Z18ReadDataFileHeaderP12FileStream_sscPsS1_S1_PPcPP7_Text_sPP7_Geom_sPPP13_StringList_sSC_PP10_AuxData_sPPP6_Set_aS2_S2_PP12_ArrayList_sSC_SN_SJ_P14DataFileType_e in tecio.a(dataio.o)
__Z18ReadDataFileHeaderP12FileStream_sscPsS1_S1_PPcPP7_Text_sPP7_Geom_sPPP13_StringList_sSC_PP10_AuxData_sPPP6_Set_aS2_S2_PP12_ArrayList_sSC_SN_SJ_P14DataFileType_e in tecio.a(dataio.o)
__Z18ReadDataFileHeaderP12FileStream_sscPsS1_S1_PPcPP7_Text_sPP7_Geom_sPPP13_StringList_sSC_PP10_AuxData_sPPP6_Set_aS2_S2_PP12_ArrayList_sSC_SN_SJ_P14DataFileType_e in tecio.a(dataio.o)
__Z18ReadDataFileHeaderP12FileStream_sscPsS1_S1_PPcPP7_Text_sPP7_Geom_sPPP13_StringList_sSC_PP10_AuxData_sPPP6_Set_aS2_S2_PP12_ArrayList_sSC_SN_SJ_P14DataFileType_e in tecio.a(dataio.o)
__Z18ReadDataFileHeaderP12FileStream_sscPsS1_S1_PPcPP7_Text_sPP7_Geom_sPPP13_StringList_sSC_PP10_AuxData_sPPP6_Set_aS2_S2_PP12_ArrayList_sSC_SN_SJ_P14DataFileType_e in tecio.a(dataio.o)
__Z18ReadDataFileHeaderP12FileStream_sscPsS1_S1_PPcPP7_Text_sPP7_Geom_sPPP13_StringList_sSC_PP10_AuxData_sPPP6_Set_aS2_S2_PP12_ArrayList_sSC_SN_SJ_P14DataFileType_e in tecio.a(dataio.o)
__Z18ReadDataFileHeaderP12FileStream_sscPsS1_S1_PPcPP7_Text_sPP7_Geom_sPPP13_StringList_sSC_PP10_AuxData_sPPP6_Set_aS2_S2_PP12_ArrayList_sSC_SN_SJ_P14DataFileType_e in tecio.a(dataio.o)
ld: symbol(s) not found for inferred architecture i386


Thanks.

egpatton
Experienced user
Posts: 14
Joined: Mon Jul 14, 2008 9:09 am
Location: Boulder, CO
Contact:

Re: tecio and pgi fortran

Postby egpatton » Fri Jul 18, 2008 5:25 pm

For someone else who might need this answer, here's what we figured out:

pgf90 -L/usr/lib/gcc/i686-apple-darwin9/4.0.1 -lm -lstdc++ -lgcc_eh \
-I /Applications/Tec360_2008/util/tecio \
/Applications/Tec360_2008/lib/tecio.a \
filename.f

The key was adding the link to: gcc_eh

This works for us on a Leopard machine using the 32-bit version of pgf90 v.7.1-6.

jim

Re: tecio and pgi fortran

Postby jim » Sat Jul 19, 2008 2:15 pm

Thank you for posting the solution. I made the topic "Sticky" in case anyone else runs into this problem.

- Jim


Return to “TecIO Library”

Who is online

Users browsing this forum: No registered users and 1 guest