CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   Compilation (https://www.cfd-online.com/Forums/siemens/56791-compilation.html)

alessio September 9, 2008 06:20

Compilation
 
Dear all,

I am trying to use starcd with user defined subroutines. But we get an error:

PNP: compiling /share/apps/absoft/bin/f90 -w -fPIC -YCOM_NAMES=LCS -YEXT_NAMES=LCS -YEXT_SFX=_ -B19 -cpu:opteron -m64 -c Uposdat.f -o linux64_2.4-absoft_9.0a-gcc_4.1.1-glibc_2.2.5-dso/Uposdat.o PNP: ***ERROR*** Failed to generate user coding dynamic shared object "ufile/linux64_2.4-absoft_9.0a-gcc_4.1.1-glibc_2.2.5-dso/libstarusr.so". PNP: ==> Please check the dynamic shared object generation error messages.

Do you know where I can find the error messages for the dynamic shared object generation?

Regards Alessio


Philip Jones September 18, 2008 03:32

Re: Compilation
 
I bet that the problem is in the file being called Uposdat.f and has a subroutine called posdat inside it.

STAR-CD has an archive of dummy routines for user coding, when it compiles it removes the dummys by matching the name, so if you supply posdat.f it removes posdat.o from the archive and then builds using the remainder of the archive and your new object.

If you have subroutine posdat in file Uposdat.f then it will leave posdat.o in the archive and so you now have multiple definitions of posdat and it fails.

On my machine I get this message:

PNP: Building New dynamic shared object "ufile/linux64_2.4-pgf90_6.2-gcc_4.1.1-glibc_2.2.5-dso/libstarusr.so" PNP: packing ufile/linux64_2.4-pgf90_6.2-gcc_4.1.1-glibc_2.2.5-dso/Uposdat.o PNP: packing ufile/linux64_2.4-pgf90_6.2-gcc_4.1.1-glibc_2.2.5-dso/libstarusr.a PNP: ufile/linux64_2.4-pgf90_6.2-gcc_4.1.1-glibc_2.2.5-dso/libstarusr.a(posdat.o): In function `posdat_': PNP: posdat.o(.text+0x0): multiple definition of `posdat_'



All times are GMT -4. The time now is 07:12.