On MacOS X 10.8 (where cc and c++ are clang and clang++, and the default
ABI is LP64) I've configured the release candidate with

--prefix=.... --enable-debug CC=cc CXX=c++



The build fails linking opal_wrapper as shown in the "make V=1" output
below.

Based on the undefined symbol (_lt_libltdlc_LTX_preloaded_symbols) I am
guessing this is a libltdl issue.  If relevant, note that configure picks
the embedded libltdl:

*** GNU libltdl setup
checking location of libltdl... internal copy
configure: OMPI configuring in opal/libltdl

Oddly enough, I have no problems with a build configured for the ILP32 ABI
as follows:

--prefix=.... --enable-debug CC=cc CXX=c++ \
CFLAGS=-m32 --with-wrapper-cflags=-m32 \
CXXFLAGS=-m32 --with-wrapper-cxxflags=-m32 \
FCFLAGS=-m32 --with-wrapper-fcflags=-m32


I can send (off-list) the config.log and configure's complete stdout for
both the LP64 and ILP32 builds if requested.

-Paul


/bin/sh ../../../libtool  --tag=CC   --mode=link cc  -g -finline-functions
-fno-strict-aliasing   -export-dynamic  -Wl,-flat_namespace  -o
opal_wrapper opal_wrapper.o ../../../opal/libopen-pal.la
libtool: link: cc -g -finline-functions -fno-strict-aliasing
-Wl,-flat_namespace -o .libs/opal_wrapper opal_wrapper.o
 ../../../opal/.libs/libopen-pal.dylib -lm
Undefined symbols for architecture x86_64:
  "_lt_libltdlc_LTX_preloaded_symbols", referenced from:
      import-atom in libopen-pal.dylib
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [opal_wrapper] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1


-- 
Paul H. Hargrove                          phhargr...@lbl.gov
Computer Languages & Systems Software (CLaSS) Group
Computer Science Department               Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

Reply via email to