RE: [ncarg-talk] Compiling--crtbegin.o error

From: Hjelmfelt, Mark (Mark.Hjelmfelt AT sdsmt.edu)
Date: Mon Mar 07 2005 - 14:13:58 MST


 I was able to partially compile using some tricks from WRF-help (J-Y Chen)

First I went into the pgi compiler directory and changed the /XXX/pgi/linux86-64/5.2/bin/localrc file

the GCCDIR line needed to be changed to

set GCCDIR=usr/lib/gcc/c86_64-redhat-linux/3.4.2;

I also had to change the X11R6 directories when I configured to point to lib64 instead of lib.

This helped. I got almost everything to make and work EXCEPT ictrans and thus idt.

In the make_out for ictrans
I get errors something like..

Making ./ncarview/src/bin/ictrans
make[5]: Entering directory `/usr/local/ncarg-4.4.1/ncarview/src/bin/ictrans'
gcc -ansi -O -I../../../.././include -I/usr/X11R6/include -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c -o main.o main.c
gcc -ansi -O -o ictrans main.o ../../../.././ncarview/src/lib/libictrans/libictrans.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/usr/local/ncarg64/lib -L/usr/X11R6/lib64 -lX11 -lXext -lg2c -lgcc -lm
../../../.././ncarview/src/lib/libcgm/libcgm.a(meta_edit.o)(.text+0x12fd): In function `CGM_initMetaEdit':
: warning: the use of `mktemp' is dangerous, better use `mkstemp'
../../../.././ncarview/src/lib/libictrans/libictrans.o(.text+0x6434): In function `giargs_':
: undefined reference to `ftn_str_copy'
../../../.././ncarview/src/lib/libictrans/libictrans.o(.data+0x1b40): In function `.C2_304':
: undefined reference to `pgf90_compiled'
collect2: ld returned 1 exit status
make[5]: *** [ictrans] Error 1

Making install in ./ncarview/src/bin/ictrans
make[5]: Entering directory `/usr/local/ncarg-4.4.1/ncarview/src/bin/ictrans'
gcc -ansi -O -o ictrans main.o ../../../.././ncarview/src/lib/libictrans/libictrans.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/usr/local/ncarg64/lib -L/usr/X11R6/lib64 -lX11 -lXext -lg2c -lgcc -lm
../../../.././ncarview/src/lib/libcgm/libcgm.a(meta_edit.o)(.text+0x12fd): In function `CGM_initMetaEdit':
: warning: the use of `mktemp' is dangerous, better use `mkstemp'
../../../.././ncarview/src/lib/libictrans/libictrans.o(.text+0x6434): In function `giargs_':
: undefined reference to `ftn_str_copy'
../../../.././ncarview/src/lib/libictrans/libictrans.o(.data+0x1b40): In function `.C2_304':
: undefined reference to `pgf90_compiled'
collect2: ld returned 1 exit status
make[5]: *** [ictrans] Error 1
make[5]: Leaving directory `/usr/local/ncarg-4.4.1/ncarview/src/bin/ictrans

-----Original Message-----
From: ncarg-talk-bounces@ucar.edu [mailto:ncarg-talk-bounces@ucar.edu]On Behalf Of Hjelmfelt, Mark
Sent: Monday, March 07, 2005 9:00 AM
To: ncarg-talk@ucar.edu
Subject: Compiling--crtbegin.o error

I am unable to compile anything because I keep getting a, /usr/bin/ld: crtbegin.o no such file or directory, error.

I have Fedora core 3 and pgifortran90
I have an AMD opteron machine.

gcc -v and g++ -v both return
/usr/lib/gcc/x86_64-redhat-linux/3.4.2

crtbegin.o exists in that location.

Any ideas on what to try?

Thanks
mark


_______________________________________________
ncarg-talk mailing list
ncarg-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk



This archive was generated by hypermail 2b29 : Mon Mar 07 2005 - 14:38:49 MST