[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Support #UEO-800135]: problem installing UDUNITS version 1.12.4



Sebastien,

It appears that the output from the compiler that you're using to build the 
UDUNITS library (/opt/intel/cc/9.1.042/bin/icc) is incompatible with the input 
required by the compiler used to build the perl(1) utility (gcc).  If you need 
the UDUNITS extension module for perl(1), then you'll have to use gcc(1) to 
build the UDUNITS library.

If you don't need the UDUNITS extension module for perl(1), then

1. Go to the top-level source-directory.

2. Execute the command "make distclean".

3. Execute the command "./configure PERL='' CC=/opt/intel/cc/9.1.042/bin/icc 
CPPFLAGS=-DpgiFortran".

4. Execute the command "make".

5. Execute the command "make test".

6. Execute the command "make install".

Otherwise, if you do need the UDUNITS extension module for perl(1), then

1. Go to the top-level source-directory.

2. Execute the command "make distclean".

3. Execute the command "./configure CC=gcc CPPFLAGS=-DpgiFortran".

4. Execute the command "make".

5. Execute the command "make test".

6. Execute the command "make install".

Redirect both the standard output and standard error stream from the above 
commands into their appropriate files so that, if something goes wrong, you can 
send me the files.

> I re-run the configuration script and make command.
> Attached are the corresponding log files
> 
> Sebastien
> 
> Thanks for help,
> Sebastien
> 
> --
> Sebastien Biraud
> Lawrence Berkeley National Laboratory
> One Cyclotron Road  MS 90R-1116
> Berkeley, CA 94720
> USA
> 
> tel:(510) 486 6084
> fax:(510) 486 5686
> e-mail: address@hidden
> 
> 
> checking for manual-page index command...
> checking for C compiler... /opt/intel/cc/9.1.042/bin/icc
> checking type of operating system... linux
> checking for dependency generation mechanism... /opt/intel/cc/9.1.042/bin/icc 
> -M
> checking for gcc... /opt/intel/cc/9.1.042/bin/icc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether /opt/intel/cc/9.1.042/bin/icc accepts -g... yes
> checking for /opt/intel/cc/9.1.042/bin/icc option to accept ANSI C... none 
> needed
> checking how to run the C preprocessor... /opt/intel/cc/9.1.042/bin/icc -E
> checking the C preprocessor... works
> checking for C const... yes
> checking for C volatile... yes
> checking for C signed... yes
> checking for C function prototypes... yes
> checking for standard C variadic functions... yes
> checking for standard C string generation... yes
> checking for standard C token pasting... yes
> checking C void pointer... yes
> checking for ar... ar
> checking for tar flags... -chof
> checking for ranlib... ranlib
> checking binary distribution directory... /home/ftp/pub/binary/dummy_system
> checking the installation prefix... /usr/local/src/udunits-1.12.4
> checking the installation exec-prefix... /usr/local/src/udunits-1.12.4
> checking for neqn... neqn
> checking for tbl... tbl
> checking for ar... (cached) ar
> checking for C math library...
> checking for return sin(0.0) != 0 in default library(s)... yes
> checking style for cfortran.h... Standard
> checking for Fortran integer type equivalent to C pointer... integer*4
> checking for egrep... grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking stddef.h usability... yes
> checking stddef.h presence... yes
> checking for stddef.h... yes
> checking C header file <stddef.h> for typedef size_t... declared
> checking for stddef.h... (cached) yes
> checking C header file <stddef.h> for typedef ptrdiff_t... declared
> checking float.h usability... yes
> checking float.h presence... yes
> checking for float.h... yes
> checking for stdlib.h... (cached) yes
> checking C header file <stdlib.h> for typedef size_t... declared
> checking for atexit... yes
> checking for stdlib.h... (cached) yes
> checking C header file <stdlib.h> for function atexit()... undeclared
> checking for getenv... yes
> checking for stdlib.h... (cached) yes
> checking C header file <stdlib.h> for function getenv()... undeclared
> checking for string.h... (cached) yes
> checking C header file <string.h> for typedef size_t... declared
> checking for strerror... yes
> checking for string.h... (cached) yes
> checking C header file <string.h> for function strerror()... undeclared
> checking for string.h... (cached) yes
> checking C header file <string.h> for function strchr()... undeclared
> checking for string.h... (cached) yes
> checking C header file <string.h> for function strcpy()... undeclared
> checking for string.h... (cached) yes
> checking C header file <string.h> for function strrchr()... undeclared
> checking for string.h... (cached) yes
> checking C header file <string.h> for function strncpy()... undeclared
> checking for string.h... (cached) yes
> checking C header file <string.h> for function strtok()... undeclared
> checking for strstr... yes
> checking for string.h... (cached) yes
> checking C header file <string.h> for function strstr()... undeclared
> checking for memmove... yes
> checking for string.h... (cached) yes
> checking C header file <string.h> for function memmove()... undeclared
> checking time.h usability... yes
> checking time.h presence... yes
> checking for time.h... yes
> checking C header file <time.h> for typedef time_t... declared
> checking for time.h... (cached) yes
> checking C header file <time.h> for typedef size_t... declared
> checking for difftime... yes
> checking for time.h... (cached) yes
> checking C header file <time.h> for function difftime()... undeclared
> checking for strftime... yes
> checking for time.h... (cached) yes
> checking C header file <time.h> for function strftime()... undeclared
> checking search.h usability... yes
> checking search.h presence... yes
> checking for search.h... yes
> checking C header file <search.h> for typedef ENTRY... declared
> checking for search.h... (cached) yes
> checking C header file <search.h> for typedef ACTION... declared
> checking for search.h... (cached) yes
> checking C header file <search.h> for typedef VISIT... declared
> checking for tsearch... yes
> checking for search.h... (cached) yes
> checking C header file <search.h> for function tsearch()... undeclared
> checking for tfind... yes
> checking for search.h... (cached) yes
> checking C header file <search.h> for function tfind()... undeclared
> checking for tdelete... yes
> checking for search.h... (cached) yes
> checking C header file <search.h> for function tdelete()... undeclared
> checking for twalk... yes
> checking for search.h... (cached) yes
> checking C header file <search.h> for function twalk()... undeclared
> checking for perl... perl
> checking for type of perl executable to create... dynamic
> checking for position-independent compilation flags... ''
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating lib/Makefile
> config.status: creating lib/udunits.inc
> config.status: creating udunits/Makefile
> config.status: creating perl/Makefile.PL
> config.status: creating port/master.mk
> config.status: creating port/Makefile
> config.status: creating port/misc/Makefile
> config.status: creating port/cfortran/Makefile
> config.status: creating port/misc/udposix.h
> config.status: executing default commands
> expanding `include's in file `Makefile'
> expanding `include's in file `lib/Makefile'
> expanding `include's in file `lib/udunits.inc'
> expanding `include's in file `udunits/Makefile'
> expanding `include's in file `perl/Makefile.PL'
> expanding `include's in file `port/master.mk'
> expanding `include's in file `port/Makefile'
> expanding `include's in file `port/misc/Makefile'
> expanding `include's in file `port/cfortran/Makefile'
> 
> making `all' in directory /usr/local/src/udunits-1.12.4/src/port
> 
> make[1]: Entering directory `/usr/local/src/udunits-1.12.4/src/port'
> 
> making `all' in directory /usr/local/src/udunits-1.12.4/src/port/misc
> 
> make[2]: Entering directory `/usr/local/src/udunits-1.12.4/src/port/misc'
> /opt/intel/cc/9.1.042/bin/icc -c -g -O2 -I.  -D_REENTRANT -DpgiFortran 
> uddummy.c
> ar rcuv libudport.a uddummy.o
> a - uddummy.o
> case "" in \
> '') ;; \
> *)  ar rucv libudport.a ;; \
> esac
> ranlib libudport.a
> make[2]: Leaving directory `/usr/local/src/udunits-1.12.4/src/port/misc'
> 
> returning to directory /usr/local/src/udunits-1.12.4/src/port
> 
> 
> making `all' in directory /usr/local/src/udunits-1.12.4/src/port/cfortran
> 
> make[2]: Entering directory `/usr/local/src/udunits-1.12.4/src/port/cfortran'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/usr/local/src/udunits-1.12.4/src/port/cfortran'
> 
> returning to directory /usr/local/src/udunits-1.12.4/src/port
> 
> make[1]: Leaving directory `/usr/local/src/udunits-1.12.4/src/port'
> 
> returning to directory /usr/local/src/udunits-1.12.4/src
> 
> 
> making `all' in directory /usr/local/src/udunits-1.12.4/src/lib
> 
> make[1]: Entering directory `/usr/local/src/udunits-1.12.4/src/lib'
> ln -s ../port/misc/udalloc.c .
> ln -s ../port/misc/udalloc.h .
> /opt/intel/cc/9.1.042/bin/icc -c -g -O2 -I../port/misc -I../port/cfortran 
> -DUT_DEFAULT_PATH='"/usr/local/src/udunits-1.12.4/etc/udunits.dat"' 
> -DpgiFortran utlib.c
> /opt/intel/cc/9.1.042/bin/icc -c -g -O2 -I../port/misc -I../port/cfortran 
> -DUT_DEFAULT_PATH='"/usr/local/src/udunits-1.12.4/etc/udunits.dat"' 
> -DpgiFortran utparse.c
> utparse.y(386): warning #175: subscript out of range
> yypv = &yyv[-1];
> ^
> 
> utparse.y(387): warning #175: subscript out of range
> yyps = &yys[-1];
> ^
> 
> utparse.y(475): warning #266: function declared implicitly
> if ( ( yychar < 0 ) && ( ( yychar = yylex() ) < 0 ) )
> ^
> 
> utparse.y(517): warning #266: function declared implicitly
> if ( ( yychar < 0 ) && ( ( yychar = yylex() ) < 0 ) )
> ^
> 
> utparse.y(405): warning #177: label "yynewstate" was declared but never 
> referenced
> yynewstate:
> ^
> 
> /opt/intel/cc/9.1.042/bin/icc -c -g -O2 -I../port/misc -I../port/cfortran 
> -DUT_DEFAULT_PATH='"/usr/local/src/udunits-1.12.4/etc/udunits.dat"' 
> -DpgiFortran utscan.c
> /opt/intel/cc/9.1.042/bin/icc -c -g -O2 -I../port/misc -I../port/cfortran 
> -DUT_DEFAULT_PATH='"/usr/local/src/udunits-1.12.4/etc/udunits.dat"' 
> -DpgiFortran udalloc.c
> ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o
> a - utlib.o
> a - utparse.o
> a - utscan.o
> a - udalloc.o
> case "" in \
> '') ;; \
> *)  ar rucv libudunits.a ;; \
> esac
> ranlib libudunits.a
> make[1]: Leaving directory `/usr/local/src/udunits-1.12.4/src/lib'
> 
> returning to directory /usr/local/src/udunits-1.12.4/src
> 
> 
> making `all' in directory /usr/local/src/udunits-1.12.4/src/udunits
> 
> make[1]: Entering directory `/usr/local/src/udunits-1.12.4/src/udunits'
> make[2]: Entering directory `/usr/local/src/udunits-1.12.4/src/udunits'
> /opt/intel/cc/9.1.042/bin/icc -c -g -O2 -I../lib -I../port/misc -DpgiFortran 
> udunits.c
> /opt/intel/cc/9.1.042/bin/icc -o udunits -g -O2 udunits.o 
> -L/usr/local/src/udunits-1.12.4/src/lib -ludunits 
> -L/usr/local/src/udunits-1.12.4/src/port/misc -ludport
> make[2]: Leaving directory `/usr/local/src/udunits-1.12.4/src/udunits'
> make[1]: Leaving directory `/usr/local/src/udunits-1.12.4/src/udunits'
> 
> returning to directory /usr/local/src/udunits-1.12.4/src
> 
> cd perl && perl Makefile.PL
> Checking if your kit is complete...
> Looks good
> Warning: -L../lib changed to -L/usr/local/src/udunits-1.12.4/src/perl/../lib
> Writing Makefile for UDUNITS
> 
> making `dynamic' in directory /usr/local/src/udunits-1.12.4/src/perl
> 
> make[1]: Entering directory `/usr/local/src/udunits-1.12.4/src/perl'
> /usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp  -typemap 
> /usr/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap  UDUNITS.xs > 
> UDUNITS.xsc && mv UDUNITS.xsc UDUNITS.c
> Please specify prototyping behavior for UDUNITS.xs (see perlxs manual)
> /opt/intel/cc/9.1.042/bin/icc -c  -I../lib -I../port/misc -D_REENTRANT 
> -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe 
> -m64   -DVERSION=\"1.12.4\" -DXS_VERSION=\"1.12.4\" -fPIC 
> "-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE"  -DpgiFortran 
> UDUNITS.c
> icc: Command line warning: ignoring unknown option '-m64'
> UDUNITS.xs(160): warning #177: label "not_there" was declared but never 
> referenced
> not_there:
> ^
> 
> Running Mkbootstrap for UDUNITS ()
> chmod 644 UDUNITS.bs
> rm -f blib/arch/auto/UDUNITS/UDUNITS.so
> gcc  -shared UDUNITS.o  -o blib/arch/auto/UDUNITS/UDUNITS.so   
> -L/usr/local/src/udunits-1.12.4/src/perl/../lib -ludunits -lm
> /usr/bin/ld: skipping incompatible 
> /usr/local/src/udunits-1.12.4/src/perl/../lib/libudunits.a when searching for 
> -ludunits
> /usr/bin/ld: skipping incompatible /usr/local/lib/libudunits.a when searching 
> for -ludunits
> /usr/bin/ld: cannot find -ludunits
> collect2: ld returned 1 exit status
> make[1]: *** [blib/arch/auto/UDUNITS/UDUNITS.so] Error 1
> make[1]: Leaving directory `/usr/local/src/udunits-1.12.4/src/perl'
> make: *** [perl/dynamic] Error 1
> 

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: UEO-800135
Department: Support UDUNITS
Priority: Normal
Status: Closed