Opened 10 years ago

Closed 10 years ago

#43426 closed defect (fixed)

ncarg @6.2.0 +gcc48 Error on Build in ctrans, itrans, rasstat, rasls, rascal, rasps, rasgetpal & ras2ccir601 : hcomp and cszip compression errors on compile

Reported by: William.Capehart@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: massonseb, petrrr
Port: ncarg

Description

On building NCL/NCARG 6.2.0 there is an error that seems to be linked to the compression libraries which are an essential part of NCL if you want to tackle the primary data formats with which we are expected to work (e.g, GRIB2 and netCDF)

Log is attached

Sample Errors (it seems to involve cszip.o & hcomp.o in libdf.a


:info:build make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_ncarg/ncarg/work/ncl_ncarg-6.2.0/ncarview/src/lib/libictrans'
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_ncarg/ncarg/work/ncl_ncarg-6.2.0/ncarview/src/lib'
:info:build Making ./ncarview/src/bin
:info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_ncarg/ncarg/work/ncl_ncarg-6.2.0/ncarview/src/bin'
:info:build Making ./ncarview/src/bin/ctrans
:info:build make[5]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_ncarg/ncarg/work/ncl_ncarg-6.2.0/ncarview/src/bin/ctrans'
:info:build /opt/local/bin/gcc-mp-4.8 -fPIC -ansi -D_DARWIN_C_SOURCE  -Os  -I../../../.././include -I/opt/local/include/freetype2 -I/opt/local/include/udunits2 -I/opt/local/lib/hdfeos5/include -I/opt/local/include    -DSYSV -D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -D__JIRA1530__ -DNeedFuncProto    -c -o main.o main.c
:info:build /opt/local/bin/gcc-mp-4.8 -fPIC -ansi -D_DARWIN_C_SOURCE  -Os    -o ctrans main.o ../../../.././ncarview/src/lib/libctrans/libctrans.o -L../../../.././ncarview/src/lib/libcgm -lcgm -L../../../.././ncarview/src/lib/libncarg_ras -lncarg_ras -L../../../.././common/src/libncarg_c -lncarg_c -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_ncarg/ncarg/work/destroot/opt/local/lib -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_ncarg/ncarg/work/ncl_ncarg-6.2.0 -L/opt/local/lib -L/opt/local/lib/hdfeos5/lib -L/opt/local/lib -lXpm -lX11 -lXext   -lmfhdf -ldf -ljpeg -lz -lm   
:info:build ld: warning: directory not found for option '-L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_ncarg/ncarg/work/destroot/opt/local/lib'
:info:build Undefined symbols for architecture x86_64:
:info:build   "_SZ_BufftoBuffDecompress", referenced from:
:info:build       _HCIcszip_decode in libdf.a(cszip.o)
:info:build   "_SZ_encoder_enabled", referenced from:
:info:build       _HCIinit_coder in libdf.a(hcomp.o)
:info:build       _HCget_config_info in libdf.a(hcomp.o)
:info:build ld: symbol(s) not found for architecture x86_64
:info:build collect2: error: ld returned 1 exit status
:info:build make[5]: *** [ctrans] Error 1


Attachments (2)

main.log (3.1 MB) - added by William.Capehart@… 10 years ago.
Log File : /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_ncarg/ncarg/main.log
main.2.log (3.0 MB) - added by massonseb 10 years ago.

Change History (9)

Changed 10 years ago by William.Capehart@…

Attachment: main.log added

Log File : /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_ncarg/ncarg/main.log

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: takeshi@… removed
Owner: changed from macports-tickets@… to takeshi@…

comment:2 Changed 10 years ago by massonseb

Cc: smasson@… added

Cc Me!

comment:3 Changed 10 years ago by massonseb

I have the same error that seems to be related to the use of the variant +szip in hdf5-18, hdfeos and hdfeos5.
I also have another error that seams to be related to the use on the +openmpi variant of hdf5-18:

:info:build In file included from /opt/local/include/hdf5.h:24:0,
:info:build                  from FileSupport.c:37:
:info:build /opt/local/include/H5public.h:61:20: fatal error: mpi.h: No such file or directory
:info:build  #   include <mpi.h>
:info:build                     ^
:info:build compilation terminated.
:info:build make[5]: *** [FileSupport.o] Error 1

I attach my main.log file.

Changed 10 years ago by massonseb

Attachment: main.2.log added

comment:4 Changed 10 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:5 Changed 10 years ago by tenomoto (Takeshi Enomoto)

Sorry for extremely slow response. It seems that this is a hdf4 problem. Are szip and hdf4 +szip built correctly? What is the output of the following? ${prefix} is usually /opt/local

otool -L ${prefix}/lib/libdf.dylib

I fixed the problem when hdf5 is installed with a MPI variant in r124290. I hope this helps.

comment:6 Changed 10 years ago by massonseb

It works for me. I have been able to install ncarg @6.2.0_0+gcc48+openmpi
thank you so much. Seb

comment:7 Changed 10 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

Close the ticket for now. Reopen or file a new if you see a problem.

Note: See TracTickets for help on using tickets.