Project

General

Profile

libs4cdo make issue under cygwin

Added by Giovanni Leoncini over 10 years ago

HI all,

this is probably very silly, but I am stuck. I am compiling libs4cdo-0.0.10 under cygwin on a windows 64bit server, but when I issue

$ make win32libs4cdo

all I get is "nothing to be done" (see below for the detailed message). Thinking that tabs were lost somewhere, I converted spaces to tabs with unexpand for both Makefile and cdo-win32.mk. I also have the four libraries needed for cygwin (gcc4, ssh+ssl, zlib and curl) I don't understand what I am doing wrong, any idea?

thanks in advance
Giovanni

p.s. the word "make" may look exponentiated, it's not it should be make followed by the number in square brackets, no exponent.

make win32libs CONFIGFILE=cdo-win32.mk PREFIX=
make1: Entering directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'
make clean GC install LIB=pthreads-w32-2-8-0-release CROSS=i586-mingw32msvc- PREFIX=
make2: Entering directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'
make2: Nothing to be done for `clean'.
make2: Nothing to be done for `GC'.
make2: Nothing to be done for `install'.
make2: Leaving directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'
make config all install LIB="zlib-1.2.3 szip-2.1 proj-4.8.0 netcdf-3.6.3" CROSS=i586-mingw32msvc CONFIGFILE=cdo-win32.mk PREFIX=
make2: Entering directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'
make2: Nothing to be done for `config'.
make2: Nothing to be done for `all'.
make2: Nothing to be done for `install'.
make2: Leaving directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'
make config all install LIB="win32/hdf5-1.8.4" CROSS=i586-mingw32msvc CONFIGFILE=cdo-win32.mk PREFIX=
make2: Entering directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'
make2: Nothing to be done for `config'.
make2: Nothing to be done for `all'.
make2: Nothing to be done for `install'.
make2: Leaving directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'
make1: Leaving directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'


Replies (19)

RE: libs4cdo make issue under cygwin - Added by Ralf Mueller over 10 years ago

Hi!

the target win32libs4cdo is made for linux based cross-compiling with mingw. Under cygwin, you do not need this, because is behaves like Unix. Just call

make libs4cdo

BTW most of the libraries for CDO are already available as precompiled binary packages: netcdf, hdf5, proj, grib_api. You can avoid the manual compiling by using the binary ones.

hth
ralf

RE: libs4cdo make issue under cygwin - Added by Giovanni Leoncini over 10 years ago

Hi Ralf!

sorry I forgot to say that I have tried "make libs4cdo" as well with identical results. Also I haven't seen grib_api in the list of packages available for x86_64: http://cygwin.com/packages/. Am I missing something here? honestly, I am doing something wrong I don't quite get what.

thanks again!
Giovanni

RE: libs4cdo make issue under cygwin - Added by Ralf Mueller over 10 years ago

Giovanni Leoncini wrote:

Hi Ralf!

sorry I forgot to say that I have tried "make libs4cdo" as well with identical results. Also I haven't seen grib_api in the list of packages available for x86_64: http://cygwin.com/packages/. Am I missing something here? honestly, I am doing something wrong I don't quite get what.

no, it might not be there, I thought I'd remembered it to be there. Anyhow, if you don't need grib2 support, you don't need grib_api. Could you upload the stdout of the make call? I'm trying to update my cygwin installation to check the lib4cdo package ...

thanks in advance
ralf

RE: libs4cdo make issue under cygwin - Added by Giovanni Leoncini over 10 years ago

Ralf,

ok, so at least I am not totally nuts. well, not yet at least! :)
here is the stdout from the make command

$ make libs4cdo
make config all install LIB="szip-2.1 proj-4.8.0 jasper-1.900.1" CONFIGFILE=cdo.mk PREFIX=
make[1]: Entering directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'
make[1]: Nothing to be done for `config'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'
make config all install LIB="hdf5-1.8.8 grib_api-1.9.16" CONFIGFILE=cdo.mk PREFIX=
make[1]: Entering directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'
make[1]: Nothing to be done for `config'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'
make config all install LIB="netcdf-4.2" CONFIGFILE=cdo.mk PREFIX=
make[1]: Entering directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'
make[1]: Nothing to be done for `config'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10'

let me know if you want me to test something or providing more information
thanks again!
Giovanni

RE: libs4cdo make issue under cygwin - Added by Ralf Mueller over 10 years ago

I checked the call with a fresh cygwin and the libs4cdo-0.0.10 from the download area. It starts are regular configure/build. Could you show me the content of the /cygdrive/e/data/SoftwareInstall/cdo/libs4cdo-0.0.10 directory?

RE: libs4cdo make issue under cygwin - Added by Giovanni Leoncini over 10 years ago

Ralph,

I attached the result of

ls -l * > filelist.txt

should we move this offline? and then post results later, sounds like it may not be that short of a conversation after all.

cheers
Giovanni

RE: libs4cdo make issue under cygwin - Added by Ralf Mueller over 10 years ago

I got the same list. Is the Makefile correct? I got

[ram@thingol:~/Downloads/libs4cdo-0.0.10]sha1sum Makefile
23c9de1182aa6ddfec3ff947f0228febae20b75e  Makefile

RE: libs4cdo make issue under cygwin - Added by Giovanni Leoncini over 10 years ago

Ralf,

unfortunately I get the same:

$ sha1sum Makefile
23c9de1182aa6ddfec3ff947f0228febae20b75e *Makefile

although, I am not sure what's the start for

cheers
Giovanni

RE: libs4cdo make issue under cygwin - Added by Ralf Mueller over 10 years ago

Giovanni Leoncini wrote:

Ralf,

unfortunately I get the same:
[...]

although, I am not sure what's the start for

just the indicator for an executable in you terminal

do you use gmake? Most probably ... anyhow - if all this doesn't work, You might use the existing netcdf/hdf binaries. And don't forget openmp!

RE: libs4cdo make issue under cygwin - Added by Giovanni Leoncini over 10 years ago

Ralf,

that's the funny thing, the make file is not an executable. Anyway, I still need the grib library which is not available for cygwin. So far I have used the default cygwin make (/cygdrive/c/Program Files/Rtools/bin/make). Aside from gmake is there something else I can try? were you able to reproduce the error or on your system it builds just fine?

cheers
Giovanni

RE: libs4cdo make issue under cygwin - Added by Ralf Mueller over 10 years ago

Giovanni Leoncini wrote:

Ralf,

that's the funny thing, the make file is not an executable. Anyway, I still need the grib library which is not available for cygwin. So far I have used the default cygwin make (/cygdrive/c/Program Files/Rtools/bin/make).

this does not look like a cygwin path. should be /usr/bin/make. this might be a source of error, because the Makefile needs gnu-make

Aside from gmake is there something else I can try? were you able to reproduce the error or on your system it builds just fine?

you'll need openjpeg-devel do be installed for compiling grib_api from source

cheers
Giovanni

RE: libs4cdo make issue under cygwin - Added by Phuong Nam Vu about 10 years ago

Hi Giovanni,
Could you or anybody please solve me this problem when i make libs4cdo?
....
make5: Leaving directory '/cygdrive/e/setups/cdo_cygwin/libs4cdo-0.0.10/hdf5-1.8.8/src'
Makefile:594: recipe for target 'all' failed
make4: * [all] Error 2
make4: Leaving directory '/cygdrive/e/setups/cdo_cygwin/libs4cdo-0.0.10/hdf5-1.8.8/src'
Makefile:503: recipe for target 'all-recursive' failed
make3:
[all-recursive] Error 1
make3: Leaving directory '/cygdrive/e/setups/cdo_cygwin/libs4cdo-0.0.10/hdf5-1.8.8'
Makefile:269: recipe for target 'hdf5-1.8.8' failed
make2:
[hdf5-1.8.8] Error 2
make2: Leaving directory '/cygdrive/e/setups/cdo_cygwin/libs4cdo-0.0.10'
Makefile:284: recipe for target 'all' failed
make1:
[all] Error 2
make1: Leaving directory '/cygdrive/e/setups/cdo_cygwin/libs4cdo-0.0.10'
Makefile:374: recipe for target 'libs4cdo' failed
make: *
* [libs4cdo] Error 2
I am looking forward to hear from u soon.
Best,
NAM

RE: libs4cdo make issue under cygwin - Added by Ralf Mueller about 10 years ago

the filelist is not sufficient. Could you redirect the output of make libs4cdo into a file and upload it? E.g.

 make libs4cdo > libs4cdo.log 2>&1

RE: libs4cdo make issue under cygwin - Added by Phuong Nam Vu about 10 years ago

Hello Ralf,
I would like to send you as your request.
Thanks you for your helping.
NAM

RE: libs4cdo make issue under cygwin - Added by Ralf Mueller about 10 years ago

That's a real compile error within hdf5. Try to get around it by installing the hdf5 and netcdf development package via cygwins setup.exe. the proj and szip libraries are already installed - so you'll only loose GRIB2 support and magics++ support.

RE: libs4cdo make issue under cygwin - Added by Phuong Nam Vu about 10 years ago

Thanks Ralf.
But I still have same problem. I have installed hdf5 (version 1.8.12) and netcdf4 (version 4.3) packages in cygwins setup.exe. After I type "make libs4cdo" again, and I have same problem as past.
Could you help me explain how do I do next step when i have already installed hdf and netcdf package?
NAM

RE: libs4cdo make issue under cygwin - Added by Phuong Nam Vu about 10 years ago

Hello Ralf,
So I tried to compile cdo under cript : $./configure --with-netcdf=/usr/ --with-hdf5=/usr/
In fact, the netcdf and hdf5 has has already installed by using cygcheck-c in cygwin.
..
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for library containing deflate... -lz
checking for szlib library... suppressed
checking hdf5.h usability... no
checking hdf5.h presence... no
checking for hdf5.h... no
checking for library containing H5Fopen... no
configure: error: Cannot link to hdf5! It is required for netCDF4.

Best regards,
NAM

RE: libs4cdo make issue under cygwin - Added by Ralf Mueller about 10 years ago

The header files are missing on your system. so I guess, you did not installed the development packages:netcdf-devel, hdf5-devel and libproj-devel. Sorry, that I did not point that out before. If you don't need GRIB2, just skip libs4cdo and build CDO without it:

 ./configure --with-netcdf=/usr --with-hdf5=/usr --with-proj=/usr CFLAGS='-g -O2 -fopenmp' 

RE: libs4cdo make issue under cygwin - Added by Phuong Nam Vu about 10 years ago

Hello Ralf,
It works done. i did with : $ ./configure --with-netcdf=/usr/ --with-hdf5=/usr/ after installed netcdf-devel, hdf5-devel packages.
It works with netcdf and hdf well.
Thanks Ralf so much again for your helping.
Best and have nice weekend.
NAM

    (1-19/19)