REGRID compile error

Hello,

I get the warning message below when compling the make file in REGRID.
But executable files were maded in the directories.
I am using the pfg90 compliler with Fodora 12.

I don’t have any clues…
Can anyone help me?
Any comment will greatly appreciate.

Thanks!!

echo …/util/libpgu.a
…/util/libpgu.a
pgf90 -o pregrid_grib.exe gridinfo.o new_storage.o filelist.o pregrid_grib.o output.o rrpr.o rd_grib.o file_delete.o datint.o …/util/libpgu.a
**/usr/bin/ld: Warning: alignment 8 of symbol _storage_module_12_' in new_storage.o is smaller than 16 in pregrid_grib.o** /usr/bin/ld: Warning: alignment 8 of symbol storage_module_12’ in new_storage.o is smaller than 16 in output.o
/usr/bin/ld: Warning: alignment 8 of symbol _storage_module_12_' in new_storage.o is smaller than 16 in rrpr.o /usr/bin/ld: Warning: alignment 8 of symbol storage_module_12’ in new_storage.o is smaller than 16 in datint.o

I have also some error for running of pregrid.csh. No output for SST

For SST;
""HSTART, HEND = 2008-08-07_00:00:00 2008-08-10_00:00:00
###############################################################################
Inventory for date = ??? ??? "

Hi happyez,

The only time I’ve seen this type of warning is when compiling in 32-bits a user compiles a module file without “-Mcache_align” (which is part of -fast) but then compiles a file that uses this module with “-Mcache_align”. This causes the module’s alignment to be inconsistent between the objects.

What verison of PGI and REGRID are you using? What flags did you use when compiling new_storage.o and output.o? Are you compiling in 32-bits?

  • Mat

Thank you

Mat

I am using pgf90 (version 10.4) ; not sure; I am very beginner.; I just find the number in /optic/pgi/…/10.4.

That of Regrid is 3.7, which was recently downloaded from MESOUSER and I did not change anything.

I will appreciate any suggestion to solve it.

Here, the part of the make file.

else grep Linux .tmpfile ;
if [ $$? = 0 ] ; then echo “Compiling for Linux” ;
echo “AR = $(AR)” > macros_pregrid ;
echo “RM = $(RM)” >> macros_pregrid ;
echo “RM_LIST = $(RM_LIST)” >> macros_pregrid ;
echo “CD = $(CD)” >> macros_pregrid ;
echo “LN = $(LN)” >> macros_pregrid ;
echo “MAKE = $(MAKE)” >> macros_pregrid ;
echo “SHELL = /bin/sh” >> macros_pregrid ;
echo “TOUCH = touch” >> macros_pregrid ;
echo “CPP = /lib/cpp” >> macros_pregrid ;
echo “CPPFLAGS = -I. -C -P -DDEC -DBIT32 -traditional” >> macros_pregrid ;
echo “FC = pgf90” >> macros_pregrid ;
echo “FCFLAGS = -Mfreeform -byteswapio -I…/util” >> macros_pregrid ;
echo "LDFLAGS = " >> macros_pregrid ;
echo “CCFLAGS = -DDEC -DBIT32 -I.” >> macros_pregrid ;
echo “LOCAL_LIBRARIES = …/util/libpgu.a” >> macros_pregrid ;
echo “RANLIB = echo” >> macros_pregrid ;
( $(CD) pregrid ; $(MAKE) all ) ;
echo “AR = $(AR)” > macros_regridder ;
echo “RM = $(RM)” >> macros_regridder ;
echo “RM_LIST = $(RM_LIST)” >> macros_regridder ;
echo “CD = $(CD)” >> macros_regridder ;
echo “LN = $(LN)” >> macros_regridder ;
echo “MAKE = $(MAKE)” >> macros_regridder ;
echo “SHELL = /bin/sh” >> macros_regridder ;
echo “TOUCH = touch” >> macros_regridder ;
echo “CPP = /lib/cpp” >> macros_regridder ;
echo “CPPFLAGS = -I. -C -P -DDEC -DBIT32 -traditional” >> macros_regridder ;
echo “FC = pgf90” >> macros_regridder ;
echo “FCFLAGS = -Mfreeform -pc 32 -byteswapio” >> macros_regridder ;
echo "LDFLAGS = " >> macros_regridder ;
echo “CCFLAGS = -DDEC -DBIT32 -I.” >> macros_regridder ;
echo "LOCAL_LIBRARIES = " >> macros_regridder ;
( $(CD) regridder ; $(MAKE) all ) ; \

Hi happyez,

I took a closer look at this and determined that is a compiler error in 10.4. The error does not occur in 10.3. Also, it appears that the bug was discovered internally and will be fixed in next month’s 10.5 release.

In the meantime, the work around would be to down-grade to 10.3 or compile in 64-bits.

Thanks!
Mat

Thank you

You means that I should reinstall the PGI.
ok…
Sorry, as mentioned, I am very beginner for programming on Linux.

How to remove and reinstall?

I just reove the opt folder? and then reinstall?


I appreciate for your help…

Hi happyez,

No need to unintall, simply download the 10.3 compilers from http://www.pgroup.com/support/downloads.php?release=1000 (use the ‘version’ drop-down box to select 10.3) and then install. The various PGI versions are co-installed and will use the same license.

Once installed, set your environment PATH to include “/optic/pgi/linux86/10.3” or add the flag “-V10.3” to your compile flags. “-V” selects the compiler version to use.

Hope this helps,
Mat

Thank you for your reply…

I did install version 10.3 and compiled, but unfortuenately the comiling make same warning message.
And as you suggest, under 64bit, it makes also same result…


Lim

Hi

Mat

Finally, I solved the problem as your suggestion.

I did install version 10.3 and compiled, but unfortuenately the comiling make same warning message.

But after rebooting the pc, the warning messages were not shown.

I guess that setup of environment was not correct due to my mistake…

I appreciate for your help.

Have a nice weekend…