[Wrf-users] [wrf-users] Error when make plotgrids.exe and plotfmt.exe

Knyazev, Alexander Alexander.Knyazev at intel.com
Tue Apr 6 11:02:01 MDT 2010


Hi,
This often happens when you try to link ia-32 libraries together with intel64 ones. Are they built on the same architecture?

WBR, Alex.
From: wrf-users-bounces at ucar.edu [mailto:wrf-users-bounces at ucar.edu] On Behalf Of brick
Sent: Tuesday, April 06, 2010 6:54 AM
To: wrf-users at ucar.edu
Subject: [Wrf-users] [wrf-users] Error when make plotgrids.exe and plotfmt.exe

Hi

I use icc and ifort compile wps and wrf. All lib include Ncl were compiled by icc and ifort. There are no error appear when compile zlib libpng jasper or ncl.

This is part of configure.wps. I link all needed path in it.
All lib about X11 was create a link to /home/q/Program/IntelCompiled/lib_wrf
CODE: SELECT ALL<http://forum.wrfforum.com/viewtopic.php?f=5&t=2013&sid=858a5c94784a876c8c50dadd6c8ab60e>
  9 # To permanently change options, change the settings for your platform
10 # in the file arch/configure.defaults, the preamble, and the postamble -
11 # then rerun configure.
12 #
13
14 .SUFFIXES: .F .f .c .o
15
16 SHELL                   =       /bin/sh
17
18 COMPRESSION_LIBS        =       -L/data3a/mp/gill/WPS_LIBS/local/lib \
19                                 -L$(JASPERLIB) -L$(PNG_LIB) -L$(ZLIB_LIB) \
20                                 -ljasper -lpng12 -lpng -lz
21
22 COMPRESSION_INC         =       -I/data3a/mp/gill/WPS_LIBS/local/include \
23                                 -I$(JASPERINC) -I$(PNG_INC) -I$(ZLIB_INC)
24
25 NCARG_LIBS              =       -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c     \
26                                 -L/home/q/Program/IntelCompiled/lib_wrf -lX11
27
28 NCARG_LIBS2             =
29
30 FDEFS                   =       -DUSE_JPEG2000 -DUSE_PNG


Below are the errors I met.


1300 ifort -o plotfmt.exe plotfmt.o read_met_module.o module_debug.o \
1301 misc_definitions_module.o cio.o met_data_module.o \
1302 -L/home/q/Program/IntelCompiled/Ncl_ncarg-5.1.1/lib -lncarg -lncarg_gks -lncarg_c -L/home/q/Program/IntelCompiled/lib_wrf -lX11
1303 ld: skipping incompatible /home/q/Program/IntelCompiled/lib_wrf/libX11.so wh en searching for -lX11
1304 /home/q/Program/IntelCompiled/Ncl_ncarg-5.1.1/lib/libncarg_gks.a(pixwrite_pn g.o): In function `write_png':
1305 pixwrite_png.c:(.text+0x43a): undefined reference to `png_create_write_struct'
1306 pixwrite_png.c:(.text+0x44f): undefined reference to `png_create_info_struct'
1307 pixwrite_png.c:(.text+0x47a): undefined reference to `png_init_io'
1308 pixwrite_png.c:(.text+0x48b): undefined reference to `png_malloc'
1309 pixwrite_png.c:(.text+0x4d9): undefined reference to `png_set_rows'
1310 pixwrite_png.c:(.text+0x505): undefined reference to `png_set_IHDR'
1311 pixwrite_png.c:(.text+0x530): undefined reference to `png_write_png'
1312 pixwrite_png.c:(.text+0x53d): undefined reference to `png_destroy_write_struct'
1313 pixwrite_png.c:(.text+0x563): undefined reference to `png_destroy_write_struct'
1314 pixwrite_png.c:(.text+0x58d): undefined reference to `png_destroy_write_struct'
1315 make[1]: [plotfmt.exe] Error 1 (ignored)



1375 ifort -o plotgrids.exe module_map_utils.o module_debug.o cio.o constants_module .o misc_definitions_module.o \
1376 plotgrids.o -L/home/q/Program/IntelCompiled/Ncl_ncarg-5.1.1/ lib -lncarg -lncarg_gks -lncarg_c -L/home/q/Program/IntelCompiled/lib_wrf -l X11
1377 ld: skipping incompatible /home/q/Program/IntelCompiled/lib_wrf/libX11.so wh en searching for -lX11
1378 /home/q/Program/IntelCompiled/Ncl_ncarg-5.1.1/lib/libncarg_gks.a(pixwrite_pn g.o): In function `write_png':
1379 pixwrite_png.c:(.text+0x43a): undefined reference to `png_create_write_struct'
1380 pixwrite_png.c:(.text+0x44f): undefined reference to `png_create_info_struct'
1381 pixwrite_png.c:(.text+0x47a): undefined reference to `png_init_io'
1382 pixwrite_png.c:(.text+0x48b): undefined reference to `png_malloc'
1383 pixwrite_png.c:(.text+0x4d9): undefined reference to `png_set_rows'
1384 pixwrite_png.c:(.text+0x505): undefined reference to `png_set_IHDR'
1385 pixwrite_png.c:(.text+0x530): undefined reference to `png_write_png'
1386 pixwrite_png.c:(.text+0x53d): undefined reference to `png_destroy_write_struct'
1387 pixwrite_png.c:(.text+0x563): undefined reference to `png_destroy_write_struct'
1388 pixwrite_png.c:(.text+0x58d): undefined reference to `png_destroy_write_struct'
1389 make[1]: [plotgrids.exe] Error 1 (ignored)


What is the reason for these error? X11 lib incompatible? png lib connect incorrectly?

Thanks.

--------------------------------------------------------------------
Closed Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park, 
17 Krylatskaya Str., Bldg 4, Moscow 121614, 
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20100406/02878ca4/attachment.html 


More information about the Wrf-users mailing list