Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

C++/MPI on Seaborg

95 views
Skip to first unread message

gennari

unread,
May 6, 2004, 3:51:20 AM5/6/04
to
I'm trying to compile my complex C++ program on Seaborg. I can't seem to
find mpi.h and the MPI library, so I am using mpcc. The program compiles
without MPI using xlc, and compiles with MPI on citris. Using Seaborg with
mpcc I get the following link errors. Any suggestions? Is mpicc supposed to
work with C++? Do I have to link against some odd libraries? Anyone know
where to find the MPI headers and libraries on seaborg?

Thanks.

Frank

ld: 0711-224 WARNING: Duplicate symbol: TWOp56
ld: 0711-224 WARNING: Duplicate symbol: RESIZE_THRESHOLD
ld: 0711-224 WARNING: Duplicate symbol: RESIZE_FACTOR
ld: 0711-224 WARNING: Duplicate symbol: DEG_TO_RAD
ld: 0711-224 WARNING: Duplicate symbol: MAX_EXP_LENGTH
ld: 0711-224 WARNING: Duplicate symbol: MAX_DEPTH
ld: 0711-224 WARNING: Duplicate symbol: BIT_MASK
ld: 0711-224 WARNING: Duplicate symbol: MAX_ID_LENGTH
ld: 0711-224 WARNING: Duplicate symbol: POLY_TO_RECT
ld: 0711-224 WARNING: Duplicate symbol: bad_pointer
ld: 0711-224 WARNING: Duplicate symbol: INVERT_COMPLEX
ld: 0711-224 WARNING: Duplicate symbol: SKIP_ZERO_MF_MATCHES
ld: 0711-224 WARNING: Duplicate symbol: MAX_VERBOSE_LEVEL
ld: 0711-224 WARNING: Duplicate symbol: NUM_PREREAD_SETTINGS
ld: 0711-224 WARNING: Duplicate symbol: PAT_BUFFER
ld: 0711-224 WARNING: Duplicate symbol: MAX_NAME_LENGTH
ld: 0711-224 WARNING: Duplicate symbol: NUM_INPUT_MATCH_TYPES
ld: 0711-224 WARNING: Duplicate symbol: NUM_SPECIAL_TOKENS
ld: 0711-224 WARNING: Duplicate symbol: XY_SWAP
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
ld: 0711-317 ERROR: Undefined symbol:
__vft24__DynaCastDesc_si_public14__DynaCastDesc
ld: 0711-317 ERROR: Undefined symbol: __vft13eti_cplusplus9type_info
ld: 0711-317 ERROR: Undefined symbol:
__vft24__DynaCastDesc_vi_public14__DynaCastDesc
ld: 0711-317 ERROR: Undefined symbol: __dl__FPv
ld: 0711-317 ERROR: Undefined symbol: .__vd__FPv
ld: 0711-317 ERROR: Undefined symbol: .__vn__FUl
ld: 0711-317 ERROR: Undefined symbol: .__nw__FUl
ld: 0711-317 ERROR: Undefined symbol: .__Throw
ld: 0711-317 ERROR: Undefined symbol: .__nw__FUlPv
ld: 0711-317 ERROR: Undefined symbol: .__dl__FPv
ld: 0711-317 ERROR: Undefined symbol: ._Xlen__Q2_3std12_String_baseCFv
ld: 0711-317 ERROR: Undefined symbol: .__setUncaughtExceptionFlag__3stdFb
ld: 0711-317 ERROR: Undefined symbol: .terminate__3stdFv
ld: 0711-317 ERROR: Undefined symbol: .__ReThrow
ld: 0711-317 ERROR: Undefined symbol: .unexpected__3stdFv
ld: 0711-317 ERROR: Undefined symbol: ._Xran__Q2_3std12_String_baseCFv
ld: 0711-317 ERROR: Undefined symbol: .__CleanupCatch
ld: 0711-317 ERROR: Undefined symbol: __vn__FUl
ld: 0711-317 ERROR: Undefined symbol: __vd__FPv
ld: 0711-317 ERROR: Undefined symbol: .__vec__new2
ld: 0711-317 ERROR: Undefined symbol: .__vec__delete2
ld: 0711-317 ERROR: Undefined symbol: ._Dtest
ld: 0711-317 ERROR: Undefined symbol: .init_timeout__Fi
ld: 0711-317 ERROR: Undefined symbol: cerr__3std
ld: 0711-317 ERROR: Undefined symbol: goodbit__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: adjustfield__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: left__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: badbit__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: .clear__Q2_3std8ios_baseFib
ld: 0711-317 ERROR: Undefined symbol: failbit__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: .__ct__Q2_3std7_LockitFi
ld: 0711-317 ERROR: Undefined symbol: .uncaught_exception__3stdFv
ld: 0711-317 ERROR: Undefined symbol: unitbuf__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: .__dt__Q2_3std7_LockitFv
ld: 0711-317 ERROR: Undefined symbol: id__Q2_3std5ctypeXTc_
ld: 0711-317 ERROR: Undefined symbol: _Id_cnt__Q3_3std6locale2id
ld: 0711-317 ERROR: Undefined symbol: ._Getfacet__Q2_3std6localeCFUl
ld: 0711-317 ERROR: Undefined symbol: .__ct__Q2_3std8_LocinfoFPCc
ld: 0711-317 ERROR: Undefined symbol: ._Getctype
ld: 0711-317 ERROR: Undefined symbol: _Cltab__Q2_3std5ctypeXTc_
ld: 0711-317 ERROR: Undefined symbol: .__dt__Q2_3std8_LocinfoFv
ld: 0711-317 ERROR: Undefined symbol: ._Tolower
ld: 0711-317 ERROR: Undefined symbol: ._Toupper
ld: 0711-317 ERROR: Undefined symbol: fixed__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: showpos__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: showpoint__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: floatfield__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: scientific__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: showbase__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: oct__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: basefield__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: uppercase__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: hex__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: boolalpha__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: internal__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol:
.run_fft_corr__FRPPQ2_3std7complexXTd_P7PM_DATAR6PM_PATUiT4
ld: 0711-317 ERROR: Undefined symbol: cout__3std
ld: 0711-317 ERROR: Undefined symbol: out__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol: in__Q2_3std8ios_base
ld: 0711-317 ERROR: Undefined symbol:
.imbue__Q2_3std8ios_baseFRCQ2_3std6locale
ld: 0711-317 ERROR: Undefined symbol: ._Init__Q2_3std8ios_baseFv
ld: 0711-317 ERROR: Undefined symbol: ._Addstd__Q2_3std8ios_baseFv
ld: 0711-317 ERROR: Undefined symbol: ._Init__Q2_3std6localeFv
ld: 0711-317 ERROR: Undefined symbol: _Global__Q3_3std6locale7_Locimp
ld: 0711-317 ERROR: Undefined symbol: .__dt__Q2_3std8ios_baseFv
ld: 0711-317 ERROR: Undefined symbol: ._Nomemory__3stdFv
ld: 0711-317 ERROR: Undefined symbol: _BADOFF__3std
ld: 0711-317 ERROR: Undefined symbol: _Fpz__3std
gmake[1]: *** [pattern_match] Error 8
gmake[1]: Leaving directory `/u2/gennari/CS267/project/pm_extreme'
gmake: *** [opt] Error 2


Edward Jason Riedy

unread,
May 6, 2004, 12:19:33 PM5/6/04
to
And Frank Gennari writes:
- Is mpicc supposed to work with C++? Do I have to link against some
- odd libraries?

The C++ compiler is wrapped by mpCC, which might fix a few
of the problems.

- Anyone know where to find the MPI headers and libraries on seaborg?

They are under /usr/lpp/ppe.poe, but you need a bit more
information to link yourself. See the information about
static executables at
http://hpcf.nersc.gov/vendor_docs/ibm/pe/am102mst15.html

- ld: 0711-224 WARNING: Duplicate symbol: RESIZE_THRESHOLD

Putting
const int RESIZE_THRESHOLD = 4;
into a header file will create a duplicate symbol in each
object file... If that's what you're doing, this should
have been an error on other systems. Try
static const int RESIZE_THRESHOLD = 4;

(If that's not what you're doing, are these inlines
functions?)

- ld: 0711-317 ERROR: Undefined symbol:
- __vft24__DynaCastDesc_si_public14__DynaCastDesc

Using mpCC should fix these by including the C++ runtime
library.

Jason
--

Mark Frederick Augustine Hoemmen

unread,
May 13, 2004, 8:16:59 PM5/13/04
to Jason Riedy
Greetings!

Just wondering how and where we should turn in the
project report. We were planning on posting it to
a web page and sending you the URL, but if you would
prefer the actual file or a paper copy, we can do
that too.

mfh


0 new messages