Hello,
I’m getting multiple definition errors, with different sizes for symbols, in many functions in the pghpf and pgf90 libraries when trying to compile and link F90 and HPF code. This happens both when using version 5.1 on an opteron system, and also when using an old version 3.1 on a p4 system. Do you have any suggestions?
Thanks.
The error messages are a follows:
_make -f Makefile.multivariate.hpf
pghpf -O -g -Minform=warn -Minfo=all -Mextend -Mr8 -o HMAX.multivariate lkh_multivariate.o read_multivariate.o legaus.o gammln.o ddaskr.o daux.o dlinpk.o dbanpre.o num_call.o -L/home/hazelton/Bhat_panther -lBhat_hpf -lpghpf -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl
Timing stats:
Total time 0 millisecs
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(error.o)(.text+0x0): In function __hpfio_errinit': error.c: multiple definition of __hpfio_errinit’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(error.o)(.text+0x0):error.c: first defined here
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(error.o)(.text+0xa0): In function __hpfio_error': error.c: multiple definition of __hpfio_error’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(error.o)(.text+0xa0):error.c: first defined here
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(error.o)(.text+0x2bf): In function __hpfio_eoferr': error.c: multiple definition of __hpfio_eoferr’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(error.o)(.text+0x2bf):error.c: first defined here
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(error.o)(.text+0x3e6): In function __hpfio_eorerr': error.c: multiple definition of __hpfio_eorerr’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(error.o)(.text+0x3e6):error.c: first defined here
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(fmtwrite.o)(.text+0x6f2): In function __f90io_fmt_write': fmtwrite.c: multiple definition of __f90io_fmt_write’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(fmtwrite.o)(.text+0x7f8):fmtwrite.c: first defined here
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x0): In function __hpf_ptr_aligned': allo.c: multiple definition of __hpf_ptr_aligned’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x0):allo.c: first defined here
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x4a): In function __hpf_ptr_offset': allo.c: multiple definition of __hpf_ptr_offset’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x4a):allo.c: first defined here
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x13a): In function __hpf_alloc': allo.c: multiple definition of __hpf_alloc’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x13a):allo.c: first defined here
/usr/bin/ld: Warning: size of symbol __hpf_alloc' changed from 438 in /usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o) to 534 in /usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o) /usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x350): In function __hpf_allocated’:
allo.c: multiple definition of __hpf_allocated' /usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x2f0):allo.c: first defined here /usr/bin/ld: Warning: size of symbol __hpf_allocated’ changed from 55 in /usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o) to 106 in /usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x3ba): In function ftn_allocated': allo.c: multiple definition of ftn_allocated’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x327):allo.c: first defined here
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x419): In function ftn_allocate': allo.c: multiple definition of ftn_allocate’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x386):allo.c: first defined here
/usr/bin/ld: Warning: size of symbol ftn_allocate' changed from 81 in /usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o) to 64 in /usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o) /usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x459): In function ftn_alloc’:
allo.c: multiple definition of ftn_alloc' /usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x3d7):allo.c: first defined here /usr/bin/ld: Warning: size of symbol ftn_alloc’ changed from 77 in /usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o) to 60 in /usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x4f1): In function __hpf_allocate': allo.c: multiple definition of __hpf_allocate’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x4a2):allo.c: first defined here
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x519): In function __hpf_local_allocate': allo.c: multiple definition of __hpf_local_allocate’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x4ca):allo.c: first defined here
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x541): In function __hpf_dealloc': allo.c: multiple definition of __hpf_dealloc’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x4f2):allo.c: first defined here
/usr/bin/ld: Warning: size of symbol __hpf_dealloc' changed from 193 in /usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o) to 266 in /usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o) /usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x64b): In function ftn_deallocate’:
allo.c: multiple definition of ftn_deallocate' /usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x5b3):allo.c: first defined here /usr/bin/ld: Warning: size of symbol ftn_deallocate’ changed from 35 in /usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o) to 19 in /usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x65e): In function ftn_dealloc': allo.c: multiple definition of ftn_dealloc’
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x5d6):allo.c: first defined here
/usr/bin/ld: Warning: size of symbol ftn_dealloc' changed from 35 in /usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o) to 19 in /usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o) /usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x6a9): In function __hpf_deallocate’:
allo.c: multiple definition of __hpf_deallocate' /usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x651):allo.c: first defined here /usr/pgi/linux86-64/5.1/lib/libpgf90.a(allo.o)(.text+0x6c1): In function __hpf_local_deallocate’:
allo.c: multiple definition of __hpf_local_deallocate' /usr/pgi/linux86-64/5.1/lib/libpghpf.a(allo.o)(.text+0x669):allo.c: first defined here /usr/pgi/linux86-64/5.1/lib/libpgf90.a(entry.o)(.text+0x0): In function __hpf_entry_init’:
entry.c: multiple definition of __hpf_entry_init' /usr/pgi/linux86-64/5.1/lib/libpghpf.a(entry.o)(.text+0x0):entry.c: first defined here /usr/pgi/linux86-64/5.1/lib/libpgf90.a(entry.o)(.text+0x282): In function __hpf_traceback’:
entry.c: multiple definition of __hpf_traceback' /usr/pgi/linux86-64/5.1/lib/libpghpf.a(entry.o)(.text+0x282):entry.c: first defined here /usr/bin/ld: Warning: size of symbol __hpf_traceback’ changed from 368 in /usr/pgi/linux86-64/5.1/lib/libpghpf.a(entry.o) to 369 in /usr/pgi/linux86-64/5.1/lib/libpgf90.a(entry.o)
/usr/pgi/linux86-64/5.1/lib/libpgf90.a(entry.o)(.text+0x406): In function __hpf_tracecall': entry.c: multiple definition of __hpf_tracecall’
…
/usr/pgi/linux86-64/5.1/lib/libpghpf.a(rdst.o)(.text+0x2dc8):rdst.c: first defined here
/usr/bin/ld: Warning: size of symbol `_hpf_copy_out’ changed from 888 in /usr/pgi/linux86-64/5.1/lib/libpghpf.a(rdst.o) to 445 in /usr/pgi/linux86-64/5.1/lib/libpgf90.a(rdst.o)
make: *** [HMAX.multivariate] Error 2