[Nek5000-users] compilation problems with IBM xlc compiler

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Sat Mar 3 06:44:50 CST 2012


Hi again,

I just found out the problem! Actually in /usr/include/sys/types.h on the SP6 machine I am using there is a type names unique_id already defined, that was used instead of the one defined in gs.c when compiling nek5000. For the moment I just changed the name in gs.c from unique_id to unique_id2 because I don't know how to override the definition in the type.h file. Now I only have a final link problem with the function .flush:

ld: 0711-317 ERROR: Undefined symbol: .flush

I think this is easier to be solved and I will try to do so. Any suggestion?

I take the occasion to thank all of you for having shared this great tool, nek5000, with the scientific community!!

Regards,

Simone



> Hi neks,
> 
> I have the following problem when trying to compile NEK on a IBM SP6 using the IBM compiler. When the compilation arrives to the C routine  gs.c, I get the following errors:
> 
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> mpcc -c -DUNDERSCORE -O2 -DPTRSIZE8 -DMPI -DLONGINT8 -DGLOBAL_LONG_LONG  -DPREFIX=jl_ /sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c -o obj/jl_gs.o
> /gpfs/prod/xlc10/usr/vacpp/bin/.orig/cc_r: 1501-245 (W) Warning: Hard ulimit has been reduced to less than RLIM_INFINITY.  There may not be enough space to complete the compilation.
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 116.8: 1506-334 (S) Identifier unique_id has already been defined on line 649 of "/usr/include/sys/types.h".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 124.13: 1506-022 (S) "id" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 125.13: 1506-022 (S) "work_proc" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 126.13: 1506-022 (S) "src_if" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 201.41: 1506-022 (S) "work_proc" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 203.53: 1506-022 (S) "src_if" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 203.53: 1506-022 (S) "src_if" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 203.47: 1506-022 (S) "id" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 203.47: 1506-022 (S) "id" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 206.24: 1506-022 (S) "id" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 207.17: 1506-022 (S) "src_if" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 207.32: 1506-022 (S) "src_if" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 210.30: 1506-022 (S) "id" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 220.24: 1506-022 (S) "id" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 221.23: 1506-022 (S) "work_proc" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 221.48: 1506-022 (S) "src_if" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 223.46: 1506-022 (S) "id" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 224.24: 1506-022 (S) "work_proc" is not a member of "struct unique_id".
> "/sp6/userexternal/CODICI/nek5_svn/trunk/nek/jl/gs.c", line 224.48: 1506-022 (S) "src_if" is not a member of "struct unique_id".
> make: *** [obj/jl_gs.o] Error 1
> -bash-3.2$ 
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> I think that this is related to the compilation flags, which seems to be the same as those employed with gcc......Did you encountered this problem before? Do you have any suggestion to try to solve it?
> 
> Thank you in advance for your help!
> 
> Regards,
> Simone
> 
> 
> 
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users




More information about the Nek5000-users mailing list