From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,KSC X-Google-Thread: 111c93,77c032b8d5a58e3 X-Google-Attributes: gid111c93,public From: Bo-sung Lee Subject: Re: Problem with compiler differences Date: 1999/11/12 Message-ID: <382B88ED.329B50B8@linuxone.co.kr>#1/1 X-Deja-AN: 547601862 Sender: bslee6@210.108.91.156 References: <9ajW3.64437$23.2528299@typ11.nn.bcandid.com> X-Accept-Language: ko Content-Type: multipart/alternative; boundary="------------5D204EE4F8AE01863982C70C" Organization: Linux One, Inc. Mime-Version: 1.0 Reply-To: bslee@linuxone.co.kr Newsgroups: comp.os.linux.alpha --------------5D204EE4F8AE01863982C70C Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: 8bit Ken Light wrote: > I am trying to link an MPICH library compiled with f77 from Redhat 6.0 to a > project compiled with Compaq's Linux Alpha compiler (beta). I receive the > following message... > > /usr/mpich/build/LINUX/ch_p4/lib/libmpich.a(farg.o): In function > �mpir_iargc__�: farg.f(.text+0x18): undefined reference to �xargc� > collect2: ld returned 1 exit status > > Is there an additional library that I may not be loading? What is xargc? > Any ideas? > > -Ken Light I think you compiled MPICH with Compaq c compiler. But if you didn't modify some include file before compiling MPICH with Compaq c, you will meet above compiliation error. Before compile mpich-1.1.2, modify /usr/include/rpc/xdr.h Insert below lines after line 41. #if defined(__DECC) || defined(__DECCXX) #define int64_t long int #endif And when you compile your mpi code, use mpif77 or mpif90 instead of fort. Because of Alpha system is 64 bit and x86 system is 32 bit, your error happens. xargc is I think used when send data in MPICH. Good Luck! -- Bo-sung Lee Chief of Cluster Business Team. LinuxOne, Inc. Tel) +82-2-3488-9800,9840 Fax) +82-2-3488-9898 mailto:bslee@linuxone.co.kr http://www.linuxone.co.kr --------------5D204EE4F8AE01863982C70C Content-Type: text/html; charset=EUC-KR Content-Transfer-Encoding: 8bit Ken Light wrote:
I am trying to link an MPICH library compiled with f77 from Redhat 6.0 to a
project compiled with Compaq's Linux Alpha compiler (beta).  I receive the
following message...

/usr/mpich/build/LINUX/ch_p4/lib/libmpich.a(farg.o): In function
�mpir_iargc__�: farg.f(.text+0x18): undefined reference to �xargc�
collect2: ld returned 1 exit status

Is there an additional library that I may not be loading?  What is xargc?
Any ideas?

-Ken Light

I think you compiled MPICH with Compaq c compiler. But if you didn't modify some include file before compiling MPICH with Compaq c, you will meet above compiliation error.

Before compile mpich-1.1.2, modify /usr/include/rpc/xdr.h
Insert below lines after line 41.

 #if defined(__DECC) || defined(__DECCXX)
 #define int64_t long int
 #endif

And when you compile your mpi code, use mpif77 or mpif90 instead of fort.

Because of Alpha system is 64 bit and x86 system is 32 bit, your error happens.
xargc is I think used when send data in MPICH.
Good Luck!

 -- 
Bo-sung Lee
Chief of Cluster Business Team. LinuxOne, Inc.
Tel) +82-2-3488-9800,9840 Fax) +82-2-3488-9898
mailto:bslee@linuxone.co.kr http://www.linuxone.co.kr
  --------------5D204EE4F8AE01863982C70C--