BLACS linking errors

Open discussion regarding features, bugs, issues, vendors, etc.

BLACS linking errors

Postby hiralsmaillist » Tue Apr 19, 2011 7:08 am

Greetings !!!

While compiling BLACS and SCALAPACK with OpenMPI-1.5.2 (locally built) I am observing following link errors on Windows-7 platform...

It seems that BLACS_GET and other symbols didn't get generated, do I need to comment or uncomment some source code based on the OpenMPI ???

Output
Linking...
Link /OUT:"C:\SCALAPACK_1.8.0_for_Windows_VS\SCALAPACK 1.8.0 for Windows\BLACS_VSsolution\Visual Studio Solution\\..\Testing\EXE\BLACS_C_test.exe" /NOLOGO /LIBPATH:"C:\Program Files (x86)\MPICH2\lib" /LIBPATH:"C:\openmpi-1.5.2\installed_vs2008\lib" /MANIFEST:NO /DEBUG /PDB:"Debug/BLACS_C_test.pdb" /SUBSYSTEM:CONSOLE libmpi_cxxd.lib libmpi_f77d.lib libmpid.lib libopen-pald.lib libopen-rted.lib "Debug/btprim_MPI.obj" "Debug/tools.obj" "Debug/blacstest.obj" "c:\SCALAPACK_1.8.0_for_Windows_VS\SCALAPACK 1.8.0 for Windows\BLACS_VSsolution\lib\win32\BLACSd.lib" "c:\SCALAPACK_1.8.0_for_Windows_VS\SCALAPACK 1.8.0 for Windows\BLACS_VSsolution\lib\win32\BLACS_Cinitd.lib"
BLACSd.lib(bi_f77_get_constants.obj):warning : locally defined symbol __imp__MPIPRIV1 imported
BLACSd.lib(bi_f77_get_constants.obj):warning : locally defined symbol __imp__MPIPRIV2 imported
BLACSd.lib(bi_f77_get_constants.obj):warning : locally defined symbol __imp__MPIPRIVC imported
Link: executing 'link'
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
BLACSd.lib(bi_f77_get_constants.obj) : warning LNK4049: locally defined symbol _MPIPRIV1 imported
BLACSd.lib(bi_f77_get_constants.obj) : warning LNK4049: locally defined symbol _MPIPRIV2 imported
BLACSd.lib(bi_f77_get_constants.obj) : warning LNK4049: locally defined symbol _MPIPRIVC imported
blacstest.obj : error LNK2019: unresolved external symbol _BLACS_GET referenced in function _MAIN__
blacstest.obj : error LNK2019: unresolved external symbol _BLACS_GRIDINIT referenced in function _MAIN__
blacstest.obj : error LNK2019: unresolved external symbol _BLACS_GRIDEXIT referenced in function _MAIN__
blacstest.obj : error LNK2019: unresolved external symbol _BLACS_EXIT referenced in function _MAIN__
blacstest.obj : error LNK2019: unresolved external symbol _BLACS_SETUP referenced in function _RUNTESTS
blacstest.obj : error LNK2019: unresolved external symbol _BLACS_GRIDINFO referenced in function _MAKEGRIDS
blacstest.obj : error LNK2019: unresolved external symbol _BLACS_ABORT referenced in function _MAKEGRIDS
blacstest.obj : error LNK2019: unresolved external symbol _BLACS_PNUM referenced in function _AUXTEST
blacstest.obj : error LNK2019: unresolved external symbol _BLACS_PCOORD referenced in function _AUXTEST
blacstest.obj : error LNK2019: unresolved external symbol _IGSUM2D referenced in function _AUXTEST
blacstest.obj : error LNK2019: unresolved external symbol _BLACS_SET referenced in function _AUXTEST
blacstest.obj : error LNK2019: unresolved external symbol _DGSUM2D referenced in function _AUXTEST
blacstest.obj : error LNK2019: unresolved external symbol _DWALLTIME00 referenced in function _AUXTEST
blacstest.obj : error LNK2019: unresolved external symbol _BLACS_GRIDMAP referenced in function _AUXTEST
blacstest.obj : error LNK2019: unresolved external symbol _IGERV2D referenced in function _AUXTEST
blacstest.obj : error LNK2019: unresolved external symbol _IGESD2D referenced in function _AUXTEST
blacstest.obj : error LNK2019: unresolved external symbol _BLACS_FREEBUFF referenced in function _AUXTEST
blacstest.obj : error LNK2019: unresolved external symbol _BLACS_BARRIER referenced in function _AUXTEST
blacstest.obj : error LNK2019: unresolved external symbol _ITRSD2D referenced in function _ISDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _ITRRV2D referenced in function _ISDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _STRSD2D referenced in function _SSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _SGESD2D referenced in function _SSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _STRRV2D referenced in function _SSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _SGERV2D referenced in function _SSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _DTRSD2D referenced in function _DSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _DGESD2D referenced in function _DSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _DTRRV2D referenced in function _DSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _DGERV2D referenced in function _DSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _CTRSD2D referenced in function _CSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _CGESD2D referenced in function _CSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _CTRRV2D referenced in function _CSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _CGERV2D referenced in function _CSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _ZTRSD2D referenced in function _ZSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _ZGESD2D referenced in function _ZSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _ZTRRV2D referenced in function _ZSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _ZGERV2D referenced in function _ZSDRVTEST
blacstest.obj : error LNK2019: unresolved external symbol _ITRBS2D referenced in function _IBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _IGEBS2D referenced in function _IBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _ITRBR2D referenced in function _IBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _IGEBR2D referenced in function _IBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _STRBS2D referenced in function _SBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _SGEBS2D referenced in function _SBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _STRBR2D referenced in function _SBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _SGEBR2D referenced in function _SBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _DTRBS2D referenced in function _DBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _DGEBS2D referenced in function _DBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _DTRBR2D referenced in function _DBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _DGEBR2D referenced in function _DBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _CTRBS2D referenced in function _CBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _CGEBS2D referenced in function _CBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _CTRBR2D referenced in function _CBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _CGEBR2D referenced in function _CBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _ZTRBS2D referenced in function _ZBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _ZGEBS2D referenced in function _ZBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _ZTRBR2D referenced in function _ZBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _ZGEBR2D referenced in function _ZBSBRTEST
blacstest.obj : error LNK2019: unresolved external symbol _SGSUM2D referenced in function _SSUMTEST
blacstest.obj : error LNK2019: unresolved external symbol _CGSUM2D referenced in function _CSUMTEST
blacstest.obj : error LNK2019: unresolved external symbol _ZGSUM2D referenced in function _ZSUMTEST
blacstest.obj : error LNK2019: unresolved external symbol _IGAMX2D referenced in function _IAMXTEST
blacstest.obj : error LNK2019: unresolved external symbol _SGAMX2D referenced in function _SAMXTEST
blacstest.obj : error LNK2019: unresolved external symbol _DGAMX2D referenced in function _DAMXTEST
blacstest.obj : error LNK2019: unresolved external symbol _CGAMX2D referenced in function _CAMXTEST
blacstest.obj : error LNK2019: unresolved external symbol _ZGAMX2D referenced in function _ZAMXTEST
blacstest.obj : error LNK2019: unresolved external symbol _IGAMN2D referenced in function _IAMNTEST
blacstest.obj : error LNK2019: unresolved external symbol _SGAMN2D referenced in function _SAMNTEST
blacstest.obj : error LNK2019: unresolved external symbol _DGAMN2D referenced in function _DAMNTEST
blacstest.obj : error LNK2019: unresolved external symbol _CGAMN2D referenced in function _CAMNTEST
blacstest.obj : error LNK2019: unresolved external symbol _ZGAMN2D referenced in function _ZAMNTEST
BLACS_Cinitd.lib(blacs_pinfo_.obj) : error LNK2001: unresolved external symbol _BI_Iam
BLACS_Cinitd.lib(blacs_pinfo_.obj) : error LNK2001: unresolved external symbol _ompi_mpi_comm_world
BLACS_Cinitd.lib(blacs_pinfo_.obj) : error LNK2001: unresolved external symbol _BI_Np
BLACS_Cinitd.lib(blacs_pinfo_.obj) : error LNK2001: unresolved external symbol _BI_F77_MPI_COMM_WORLD
C:\SCALAPACK_1.8.0_for_Windows_VS\SCALAPACK 1.8.0 for Windows\BLACS_VSsolution\Visual Studio Solution\\..\Testing\EXE\BLACS_C_test.exe : fatal error LNK1120: 73 unresolved externals

BLACS_C_test - 74 error(s), 7 warning(s)

Thank you in advance.
-Hiral
hiralsmaillist
 
Posts: 13
Joined: Tue Apr 12, 2011 4:39 am

Re: BLACS linking errors

Postby admin » Wed Apr 27, 2011 12:10 pm

We are at the same point! ;-)
Julie
admin
Site Admin
 
Posts: 501
Joined: Wed Dec 08, 2004 7:07 pm

Re: BLACS linking errors

Postby hiralsmaillist » Thu Apr 28, 2011 4:49 am

Hi Julie,

I have fixed this problem and facing runtime crash as mention in "Call to BLACS_PINFO() crashes the hello example" http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=2&t=2381 user discussion query.

Please modify the preprocessor macros for BLACS_C, BLACS_Cinit, BLACS_Finit projects (vcproj) as follow...
SYSINC ; UpCase ; BlacsDebugLvl=0; UseMpich; OMPI_IMPORTS; OPAL_IMPORTS; ORTE_IMPORTS
Please note OMPI_IMPORTS; OPAL_IMPORTS; ORTE_IMPORTS are required for OpenMPI.

With above modification BLACS library should compile property; please let me know if you face any issue.
Once you fix this compilation errors, using example program as mention in my "Call to BLACS_PINFO() crashes the hello example" post you can observe the crash when it makes call to BLACS_GRIDINIT().

Thank you.
-Hiral
hiralsmaillist
 
Posts: 13
Joined: Tue Apr 12, 2011 4:39 am


Return to User Discussion

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 3 guests