Re: Compilation issues with NCL

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu, 18 Sep 2008 08:02:23 -0600 (MDT)

On Thu, 18 Sep 2008, KIRAN PRANEETH wrote:

> It is working fine when I disable static librararies. Please let me know
> your ideas
>
> gcc -ansi -O -I.././include -I/usr/openwin/include -I/usr/dt/include
> -I/usr/local/hdf/include -I/usr/local/netcdf-4.0/include
> -I/usr/local/udunits-1.12.9/include -I/usr/local/include -I/usr/include
> -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -Di386
> -DNeedFuncProto -c ymake-filter.c
> gcc -ansi -O -o ymake-filter ymake-filter.o -L/usr/local/ncarg/lib
> -L/usr/openwin/lib -L/usr/dt/lib -L/usr/local/hdf/lib
> -L/usr/local/netcdf-4.0/lib -L/usr/local/udunits-1.12.9/lib -L/usr/local/lib
> -L/usr/lib -Wl,-Bdynamic -lnsl -lintl -lsocket -ldl -lw -Wl,-Bstatic
> ld: fatal: library -lc: not found

Hi,

The error message claims that the loader can't find "-lc", which if you'll
look at the load line, is not being referenced directly. This leads me
to believe that something is wrong with your gcc compiler. Are you
able to compile a basic "hello world" program with this compiler?

And what do you mean by disabling static libraries? In what
fashion are you doing this?

--Mary

> ld: fatal: File processing errors. No output written to ymake-filter
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `ymake-filter'
> Current working directory /u/gaminik/ncl_ncarg-5.0.0/config
> *** Error code 1
> The following command caused the error:
> for dir in config common ncarg2d ngmath ncarview ; do \
> if (test -d $dir) then \
> (cd $dir; echo "Making ./$dir";\
> make );sleep 1;\
> else echo "NOT Making ./$dir"; fi \
> done
> make: Fatal error: Command failed for target `makesubdirs'
> Current working directory /u/gaminik/ncl_ncarg-5.0.0
> *** Error code 1
> The following command caused the error:
> make all
> make: Fatal error: Command failed for target `Everything'
>
_______________________________________________
ncl-install mailing list
ncl-install_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Thu Sep 18 2008 - 08:02:23 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 01 2008 - 09:49:35 MDT