Re: [DynInst_API:] Building Dyninst 8.2 on SGI ICE - issue

2014-10-03 Thread Bill Williams

On 10/03/2014 11:47 AM, Jim Galarowicz wrote:

Hi Bill,

I'm running into this problem again with the release dyninst-8.2 sources
on the ORNL Titan Cray platform.

BUILD_RTLIB_32 and CHECK_RTLIB_32 should be the governing options 
(setting CHECK to OFF should not perform tests for 32-bit build 
environments and not build; setting BUILD to off should also not build).


Though this looks like the link error is a non-PIC libiberty.a, not a 
32/64 issue...



[  6%] Building CXX object
common/CMakeFiles/common.dir/src/addrtranslate-auxv.C.o
[  6%] Building CXX object
common/CMakeFiles/common.dir/src/addrtranslate-linux.C.o
Linking CXX shared library libcommon.so
/usr/bin/ld:
/lustre/atlas/proj-shared/csc103/jgalaro/krellroot_v2.1u5/lib64/libiberty.a(cplus-dem.o):
relocation R_X86_64_32S against `_sch_istable' can not be used when
making a shared object; recompile with -fPIC
/lustre/atlas/proj-shared/csc103/jgalaro/krellroot_v2.1u5/lib64/libiberty.a:
could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [common/libcommon.so.8.2.0] Error 1
make[1]: *** [common/CMakeFiles/common.dir/all] Error 2
make: *** [all] Error 2


In dyninst-8.2.0/dyninstAPI_RT the CMakeLists.txt has these references,
but there doesn't appear to be a way to turn the 32 bit build off w/o
creating a patch.

CMakeLists.txt:set (SRC_LIST_mabi ${SRC_LIST} ${SRC_LIST_i386})
CMakeLists.txt:set (SRC_LIST_mabi ${SRC_LIST} ${SRC_LIST_ppc32})
CMakeLists.txt:if (SRC_LIST_mabi)
CMakeLists.txt:add_library (dyninstAPI_RT_m32 SHARED ${SRC_LIST_mabi})
CMakeLists.txt:add_library (dyninstAPI_RT_m32_static STATIC
${SRC_LIST_mabi})

Is there a way and I'm missing it?

Thanks,
Jim G


On 03/26/2014 02:37 PM, Bill Williams wrote:

On 03/26/2014 01:36 PM, Jim Galarowicz wrote:

Hi all,

If I do a module purge, that apparently gets rid of the intel library
business with "as".
However, now I've arrived at another issue.

Does this version of Dyninst honor the
   make SKIP_BUILD_RTLIB_32=1

variable?  It doesn't look like it.   I searched for CMAKE variables
with SKIP in them but didn't see any.

Or else I could build my own binutils with fPIC.

Is there a way to turn off the 32 bit generation with CMAKE?


If you poke at the RTlib's CMakeLists.txt, you'll see that we disable
32-bit generation if a) a compile test of some stripe fails, or b)
we're on BlueGene. As an intermediate step, you can throw in an
additional clause of "or we told you not to build this".

It is on my list (though not next on my list) to poke at the compile
test there and see if I can discern why it is insufficient to actually
detect whether we can/should build a 32-bit runtime. Anyone who
has/gets any insight there, I'd love to hear it...

--bw


Thanks,
Jim G



Build dyninst? 


Build-RPM command-line argument #1 = dyninst-8.2
Build-RPM command-line argument #2 =
Build-RPM command-line argument #3 =

DEBUG: Setting machine to uname: spirit01
RPM working directory: spirit01
Environment variable KRELL_ROOT_PREFIX is set
Environment variable KRELL_ROOT_PREFIX is set to
/home/galarowi/krellroot_v2.1u3
error: Macro %target_prefix has empty body
error: Macro %target_prefix has empty body
Executing(%prep): /bin/sh -e
/home/galarowi/OpenSpeedShop_ROOT/INSTALL/spirit01/rpm-tmp.vognqG
+ umask 022
+ cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' -d dyninst-8.2 ']'
+ rm -fr dyninst-8.2
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3/include -a -f
/home/galarowi/krellroot_v2.1u3/include/boost/shared_ptr.hpp ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/boost/shared_ptr.hpp ']'
+ export DYNINST_BOOST_ROOT=
+ DYNINST_BOOST_ROOT=
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3//libelf.so -o -f
/home/galarowi/krellroot_v2.1u3//libelf.a ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
+ export LIBELFDIR=/usr
+ LIBELFDIR=/usr
+ '[' -f /usr/include/libelf.h ']'
+ export LIBELFINC=/usr/include
+ LIBELFINC=/usr/include
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libdwarf.so -o -f
/home/galarowi/krellroot_v2.1u3/lib64/libdwarf.a ']'
+ export LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ '[' '!' -z /app/wpostool/COST/binutils-2.23 ']'
+ '[' -f /app/wpostool/COST/binutils-2.23/lib64/libiberty.a ']'
+ export
LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
+ LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
+ cd /home/ga

Re: [DynInst_API:] Building Dyninst 8.2 on SGI ICE - issue

2014-10-03 Thread Jim Galarowicz

Hi Bill,

I'm running into this problem again with the release dyninst-8.2 sources 
on the ORNL Titan Cray platform.


[  6%] Building CXX object 
common/CMakeFiles/common.dir/src/addrtranslate-auxv.C.o
[  6%] Building CXX object 
common/CMakeFiles/common.dir/src/addrtranslate-linux.C.o

Linking CXX shared library libcommon.so
/usr/bin/ld: 
/lustre/atlas/proj-shared/csc103/jgalaro/krellroot_v2.1u5/lib64/libiberty.a(cplus-dem.o): 
relocation R_X86_64_32S against `_sch_istable' can not be used when 
making a shared object; recompile with -fPIC
/lustre/atlas/proj-shared/csc103/jgalaro/krellroot_v2.1u5/lib64/libiberty.a: 
could not read symbols: Bad value

collect2: error: ld returned 1 exit status
make[2]: *** [common/libcommon.so.8.2.0] Error 1
make[1]: *** [common/CMakeFiles/common.dir/all] Error 2
make: *** [all] Error 2


In dyninst-8.2.0/dyninstAPI_RT the CMakeLists.txt has these references, 
but there doesn't appear to be a way to turn the 32 bit build off w/o 
creating a patch.


CMakeLists.txt:set (SRC_LIST_mabi ${SRC_LIST} ${SRC_LIST_i386})
CMakeLists.txt:set (SRC_LIST_mabi ${SRC_LIST} ${SRC_LIST_ppc32})
CMakeLists.txt:if (SRC_LIST_mabi)
CMakeLists.txt:add_library (dyninstAPI_RT_m32 SHARED ${SRC_LIST_mabi})
CMakeLists.txt:add_library (dyninstAPI_RT_m32_static STATIC 
${SRC_LIST_mabi})


Is there a way and I'm missing it?

Thanks,
Jim G


On 03/26/2014 02:37 PM, Bill Williams wrote:

On 03/26/2014 01:36 PM, Jim Galarowicz wrote:

Hi all,

If I do a module purge, that apparently gets rid of the intel library 
business with "as".

However, now I've arrived at another issue.

Does this version of Dyninst honor the
   make SKIP_BUILD_RTLIB_32=1

variable?  It doesn't look like it.   I searched for CMAKE variables 
with SKIP in them but didn't see any.


Or else I could build my own binutils with fPIC.

Is there a way to turn off the 32 bit generation with CMAKE?

If you poke at the RTlib's CMakeLists.txt, you'll see that we disable 
32-bit generation if a) a compile test of some stripe fails, or b) 
we're on BlueGene. As an intermediate step, you can throw in an 
additional clause of "or we told you not to build this".


It is on my list (though not next on my list) to poke at the compile 
test there and see if I can discern why it is insufficient to actually 
detect whether we can/should build a 32-bit runtime. Anyone who 
has/gets any insight there, I'd love to hear it...


--bw


Thanks,
Jim G



Build dyninst? 


Build-RPM command-line argument #1 = dyninst-8.2
Build-RPM command-line argument #2 =
Build-RPM command-line argument #3 =

DEBUG: Setting machine to uname: spirit01
RPM working directory: spirit01
Environment variable KRELL_ROOT_PREFIX is set
Environment variable KRELL_ROOT_PREFIX is set to 
/home/galarowi/krellroot_v2.1u3

error: Macro %target_prefix has empty body
error: Macro %target_prefix has empty body
Executing(%prep): /bin/sh -e 
/home/galarowi/OpenSpeedShop_ROOT/INSTALL/spirit01/rpm-tmp.vognqG

+ umask 022
+ cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' -d dyninst-8.2 ']'
+ rm -fr dyninst-8.2
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3/include -a -f 
/home/galarowi/krellroot_v2.1u3/include/boost/shared_ptr.hpp ']'

+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/boost/shared_ptr.hpp ']'
+ export DYNINST_BOOST_ROOT=
+ DYNINST_BOOST_ROOT=
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'

+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3//libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3//libelf.a ']'

+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'

+ export LIBELFDIR=/usr
+ LIBELFDIR=/usr
+ '[' -f /usr/include/libelf.h ']'
+ export LIBELFINC=/usr/include
+ LIBELFINC=/usr/include
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libdwarf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libdwarf.a ']'

+ export LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ '[' '!' -z /app/wpostool/COST/binutils-2.23 ']'
+ '[' -f /app/wpostool/COST/binutils-2.23/lib64/libiberty.a ']'
+ export 
LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a

+ LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
+ cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
+ rm -rf dyninst-8.2
+ /usr/bin/gzip -dc 
/home/galarowi/OpenSpeedShop_ROOT/SOURCES/dyninst-8.2.tar.gz

+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dyninst-8.2
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch (dyninst-8.2.patch):'
Patch (dyninst-8.2.pa

Re: [DynInst_API:] Building Dyninst 8.2 on SGI ICE - issue

2014-03-26 Thread Jim Galarowicz
Hi all,

I built my own binutils and the Dyninst build worked.
Just thought I'd provide that status.

Thanks for your time!

Jim G

On Mar 26, 2014, at 11:36 AM, Jim Galarowicz wrote:

> Hi all,
> 
> If I do a module purge, that apparently gets rid of the intel library 
> business with "as".
> However, now I've arrived at another issue.
> 
> Does this version of Dyninst honor the 
>  make SKIP_BUILD_RTLIB_32=1
> 
> variable?  It doesn't look like it.   I searched for CMAKE variables with 
> SKIP in them but didn't see any.
> 
> Or else I could build my own binutils with fPIC.
> 
> Is there a way to turn off the 32 bit generation with CMAKE?
> 
> Thanks,
> Jim G
> 
> 
> 
> Build dyninst? 
> 
> 
> Build-RPM command-line argument #1 = dyninst-8.2
> Build-RPM command-line argument #2 = 
> Build-RPM command-line argument #3 = 
> 
> DEBUG: Setting machine to uname: spirit01
> RPM working directory: spirit01
> Environment variable KRELL_ROOT_PREFIX is set
> Environment variable KRELL_ROOT_PREFIX is set to 
> /home/galarowi/krellroot_v2.1u3
> error: Macro %target_prefix has empty body
> error: Macro %target_prefix has empty body
> Executing(%prep): /bin/sh -e 
> /home/galarowi/OpenSpeedShop_ROOT/INSTALL/spirit01/rpm-tmp.vognqG
> + umask 022
> + cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
> + LANG=C
> + export LANG
> + unset DISPLAY
> + '[' -d dyninst-8.2 ']'
> + rm -fr dyninst-8.2
> + '[' '!' -z ']'
> + '[' '!' -z ']'
> + '[' -d /home/galarowi/krellroot_v2.1u3 ']'
> + '[' -d /home/galarowi/krellroot_v2.1u3/include -a -f 
> /home/galarowi/krellroot_v2.1u3/include/boost/shared_ptr.hpp ']'
> + '[' -d /home/galarowi/krellroot_v2.1u3 ']'
> + '[' -f /home/galarowi/krellroot_v2.1u3/boost/shared_ptr.hpp ']'
> + export DYNINST_BOOST_ROOT=
> + DYNINST_BOOST_ROOT=
> + '[' '!' -z ']'
> + '[' '!' -z ']'
> + '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
> + '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f 
> /home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
> + '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
> + '[' -f /home/galarowi/krellroot_v2.1u3//libelf.so -o -f 
> /home/galarowi/krellroot_v2.1u3//libelf.a ']'
> + '[' -d /home/galarowi/krellroot_v2.1u3 ']'
> + '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f 
> /home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
> + export LIBELFDIR=/usr
> + LIBELFDIR=/usr
> + '[' -f /usr/include/libelf.h ']'
> + export LIBELFINC=/usr/include
> + LIBELFINC=/usr/include
> + '[' '!' -z ']'
> + '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
> + '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libdwarf.so -o -f 
> /home/galarowi/krellroot_v2.1u3/lib64/libdwarf.a ']'
> + export LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
> + LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
> + '[' '!' -z /app/wpostool/COST/binutils-2.23 ']'
> + '[' -f /app/wpostool/COST/binutils-2.23/lib64/libiberty.a ']'
> + export LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
> + LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
> + cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
> + rm -rf dyninst-8.2
> + /usr/bin/gzip -dc 
> /home/galarowi/OpenSpeedShop_ROOT/SOURCES/dyninst-8.2.tar.gz
> + /bin/tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd dyninst-8.2
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + echo 'Patch (dyninst-8.2.patch):'
> Patch (dyninst-8.2.patch):
> + /bin/cat /home/galarowi/OpenSpeedShop_ROOT/SOURCES/dyninst-8.2.patch
> + /usr/bin/patch -p1 --fuzz=0
> (Stripping trailing CRs from patch.)
> patching file CMakeLists.txt
> + pwd
> /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01/dyninst-8.2
> + export 
> DYNINST_ROOT=/home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01/dyninst-8.2
> + DYNINST_ROOT=/home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01/dyninst-8.2
> + '[' '%{target_prefix}' == bgp ']'
> + '[' '%{target_prefix}' == bgq ']'
> + CXXFLAGS=-std=c++0x
> + cmake . 
> -DCMAKE_INSTALL_PREFIX=/home/galarowi/OpenSpeedShop_ROOT/BUILDROOT/dyninst-8.2-1.x86_64/home/galarowi/krellroot_v2.1u3
>  
> -DINSTALL_LIB_DIR=/home/galarowi/OpenSpeedShop_ROOT/BUILDROOT/dyninst-8.2-1.x86_64/home/galarowi/krellroot_v2.1u3/lib64
>  
> -DINSTALL_INCLUDE_DIR=/home/galarowi/OpenSpeedShop_ROOT/BUILDROOT/dyninst-8.2-1.x86_64/home/galarowi/krellroot_v2.1u3/include/dyninst
>  
> -DCMAKE_PREFIX_PATH=/home/galarowi/OpenSpeedShop_ROOT/BUILDROOT/dyninst-8.2-1.x86_64/home/galarowi/krellroot_v2.1u3
>  -DCMAKE_BUILD_TYPE=RelWithDebInfo 
> -DLIBDWARF_LIBRARIES=/home/galarowi/krellroot_v2.1u3/lib64 
> -DLIBDWARF_INCLUDE_DIR=/home/galarowi/krellroot_v2.1u3/include 
> -DLIBELF_LIBRARIES=/usr/lib64 -DLIBELF_INCLUDE_DIR=/usr/include -DPATH_BOOST= 
> -DIBERTY_LIBRARY=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
> -- The C compiler identification is GNU 4.4.7
> -- The CXX compiler identification is GNU 4.4.7
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
>

Re: [DynInst_API:] Building Dyninst 8.2 on SGI ICE - issue

2014-03-26 Thread Bill Williams

On 03/26/2014 01:36 PM, Jim Galarowicz wrote:

Hi all,

If I do a module purge, that apparently gets rid of the intel library business with 
"as".
However, now I've arrived at another issue.

Does this version of Dyninst honor the
   make SKIP_BUILD_RTLIB_32=1

variable?  It doesn't look like it.   I searched for CMAKE variables with SKIP 
in them but didn't see any.

Or else I could build my own binutils with fPIC.

Is there a way to turn off the 32 bit generation with CMAKE?

If you poke at the RTlib's CMakeLists.txt, you'll see that we disable 
32-bit generation if a) a compile test of some stripe fails, or b) we're 
on BlueGene. As an intermediate step, you can throw in an additional 
clause of "or we told you not to build this".


It is on my list (though not next on my list) to poke at the compile 
test there and see if I can discern why it is insufficient to actually 
detect whether we can/should build a 32-bit runtime. Anyone who has/gets 
any insight there, I'd love to hear it...


--bw


Thanks,
Jim G



Build dyninst? 


Build-RPM command-line argument #1 = dyninst-8.2
Build-RPM command-line argument #2 =
Build-RPM command-line argument #3 =

DEBUG: Setting machine to uname: spirit01
RPM working directory: spirit01
Environment variable KRELL_ROOT_PREFIX is set
Environment variable KRELL_ROOT_PREFIX is set to /home/galarowi/krellroot_v2.1u3
error: Macro %target_prefix has empty body
error: Macro %target_prefix has empty body
Executing(%prep): /bin/sh -e 
/home/galarowi/OpenSpeedShop_ROOT/INSTALL/spirit01/rpm-tmp.vognqG
+ umask 022
+ cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' -d dyninst-8.2 ']'
+ rm -fr dyninst-8.2
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3/include -a -f 
/home/galarowi/krellroot_v2.1u3/include/boost/shared_ptr.hpp ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/boost/shared_ptr.hpp ']'
+ export DYNINST_BOOST_ROOT=
+ DYNINST_BOOST_ROOT=
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3//libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3//libelf.a ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
+ export LIBELFDIR=/usr
+ LIBELFDIR=/usr
+ '[' -f /usr/include/libelf.h ']'
+ export LIBELFINC=/usr/include
+ LIBELFINC=/usr/include
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libdwarf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libdwarf.a ']'
+ export LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ '[' '!' -z /app/wpostool/COST/binutils-2.23 ']'
+ '[' -f /app/wpostool/COST/binutils-2.23/lib64/libiberty.a ']'
+ export LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
+ LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
+ cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
+ rm -rf dyninst-8.2
+ /usr/bin/gzip -dc /home/galarowi/OpenSpeedShop_ROOT/SOURCES/dyninst-8.2.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dyninst-8.2
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch (dyninst-8.2.patch):'
Patch (dyninst-8.2.patch):
+ /bin/cat /home/galarowi/OpenSpeedShop_ROOT/SOURCES/dyninst-8.2.patch
+ /usr/bin/patch -p1 --fuzz=0
(Stripping trailing CRs from patch.)
patching file CMakeLists.txt
+ pwd
/home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01/dyninst-8.2
+ export 
DYNINST_ROOT=/home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01/dyninst-8.2
+ DYNINST_ROOT=/home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01/dyninst-8.2
+ '[' '%{target_prefix}' == bgp ']'
+ '[' '%{target_prefix}' == bgq ']'
+ CXXFLAGS=-std=c++0x
+ cmake . 
-DCMAKE_INSTALL_PREFIX=/home/galarowi/OpenSpeedShop_ROOT/BUILDROOT/dyninst-8.2-1.x86_64/home/galarowi/krellroot_v2.1u3
 
-DINSTALL_LIB_DIR=/home/galarowi/OpenSpeedShop_ROOT/BUILDROOT/dyninst-8.2-1.x86_64/home/galarowi/krellroot_v2.1u3/lib64
 
-DINSTALL_INCLUDE_DIR=/home/galarowi/OpenSpeedShop_ROOT/BUILDROOT/dyninst-8.2-1.x86_64/home/galarowi/krellroot_v2.1u3/include/dyninst
 
-DCMAKE_PREFIX_PATH=/home/galarowi/OpenSpeedShop_ROOT/BUILDROOT/dyninst-8.2-1.x86_64/home/galarowi/krellroot_v2.1u3
 -DCMAKE_BUILD_TYPE=RelWithDebInfo 
-DLIBDWARF_LIBRARIES=/home/galarowi/krellroot_v2.1u3/lib64 
-DLIBDWARF_INCLUDE_DIR=/home/galarowi/krellroot_v2.1u3/include 
-DLIBELF_LIBRARIES=/usr/lib64 -DLIBELF_INCLUDE_DIR=/usr/include -DPATH_BOOST= 
-DIBERTY_LIBRARY=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C co

Re: [DynInst_API:] Building Dyninst 8.2 on SGI ICE - issue

2014-03-26 Thread Jim Galarowicz
Hi all,

If I do a module purge, that apparently gets rid of the intel library business 
with "as".
However, now I've arrived at another issue.

Does this version of Dyninst honor the 
  make SKIP_BUILD_RTLIB_32=1

variable?  It doesn't look like it.   I searched for CMAKE variables with SKIP 
in them but didn't see any.

Or else I could build my own binutils with fPIC.

Is there a way to turn off the 32 bit generation with CMAKE?

Thanks,
Jim G



Build dyninst? 


Build-RPM command-line argument #1 = dyninst-8.2
Build-RPM command-line argument #2 = 
Build-RPM command-line argument #3 = 

DEBUG: Setting machine to uname: spirit01
RPM working directory: spirit01
Environment variable KRELL_ROOT_PREFIX is set
Environment variable KRELL_ROOT_PREFIX is set to /home/galarowi/krellroot_v2.1u3
error: Macro %target_prefix has empty body
error: Macro %target_prefix has empty body
Executing(%prep): /bin/sh -e 
/home/galarowi/OpenSpeedShop_ROOT/INSTALL/spirit01/rpm-tmp.vognqG
+ umask 022
+ cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' -d dyninst-8.2 ']'
+ rm -fr dyninst-8.2
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3/include -a -f 
/home/galarowi/krellroot_v2.1u3/include/boost/shared_ptr.hpp ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/boost/shared_ptr.hpp ']'
+ export DYNINST_BOOST_ROOT=
+ DYNINST_BOOST_ROOT=
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3//libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3//libelf.a ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
+ export LIBELFDIR=/usr
+ LIBELFDIR=/usr
+ '[' -f /usr/include/libelf.h ']'
+ export LIBELFINC=/usr/include
+ LIBELFINC=/usr/include
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libdwarf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libdwarf.a ']'
+ export LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ '[' '!' -z /app/wpostool/COST/binutils-2.23 ']'
+ '[' -f /app/wpostool/COST/binutils-2.23/lib64/libiberty.a ']'
+ export LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
+ LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
+ cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
+ rm -rf dyninst-8.2
+ /usr/bin/gzip -dc /home/galarowi/OpenSpeedShop_ROOT/SOURCES/dyninst-8.2.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dyninst-8.2
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch (dyninst-8.2.patch):'
Patch (dyninst-8.2.patch):
+ /bin/cat /home/galarowi/OpenSpeedShop_ROOT/SOURCES/dyninst-8.2.patch
+ /usr/bin/patch -p1 --fuzz=0
(Stripping trailing CRs from patch.)
patching file CMakeLists.txt
+ pwd
/home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01/dyninst-8.2
+ export 
DYNINST_ROOT=/home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01/dyninst-8.2
+ DYNINST_ROOT=/home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01/dyninst-8.2
+ '[' '%{target_prefix}' == bgp ']'
+ '[' '%{target_prefix}' == bgq ']'
+ CXXFLAGS=-std=c++0x
+ cmake . 
-DCMAKE_INSTALL_PREFIX=/home/galarowi/OpenSpeedShop_ROOT/BUILDROOT/dyninst-8.2-1.x86_64/home/galarowi/krellroot_v2.1u3
 
-DINSTALL_LIB_DIR=/home/galarowi/OpenSpeedShop_ROOT/BUILDROOT/dyninst-8.2-1.x86_64/home/galarowi/krellroot_v2.1u3/lib64
 
-DINSTALL_INCLUDE_DIR=/home/galarowi/OpenSpeedShop_ROOT/BUILDROOT/dyninst-8.2-1.x86_64/home/galarowi/krellroot_v2.1u3/include/dyninst
 
-DCMAKE_PREFIX_PATH=/home/galarowi/OpenSpeedShop_ROOT/BUILDROOT/dyninst-8.2-1.x86_64/home/galarowi/krellroot_v2.1u3
 -DCMAKE_BUILD_TYPE=RelWithDebInfo 
-DLIBDWARF_LIBRARIES=/home/galarowi/krellroot_v2.1u3/lib64 
-DLIBDWARF_INCLUDE_DIR=/home/galarowi/krellroot_v2.1u3/include 
-DLIBELF_LIBRARIES=/usr/lib64 -DLIBELF_INCLUDE_DIR=/usr/include -DPATH_BOOST= 
-DIBERTY_LIBRARY=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Attempting to automatically identify platform: x86_64-unknown-linux2.4
-- Found LibElf: /usr/lib64  
-- Found LibDwarf: /home/galarowi/krellroot_v2.1u3/lib64  
-- Found libiberty: /app/wpostool/COST/binutils-2.23/lib64/libiberty.a
-- Using libi

Re: [DynInst_API:] Building Dyninst 8.2 on SGI ICE - issue

2014-03-26 Thread Matthew LeGendre



On Wed, 26 Mar 2014, Jim Galarowicz wrote:

Hi Matt,

Ok.  the web pages don't indicate anything about backend and frontend 
versions like they do for the Cray machine.


Yes, this machine was both frustrating and poorly documented.  Good luck 
;)


I'm guessing in order to get the frontend compilers I have to module 
unload the default Intel compiler module, and then do not load the gcc 
module.  Do you remember if that is what you did?


Yes, I do recall switching compilers with the module command.  I think the 
system was giving me the frontend compilers by default, then I could 
module load the backend compilers (if I recall correctly).


That gives me the 4.4.7 gnu compilers.  I get the same error.  I did 
module unload of the compiler modules.


Looks like it is finding another version of as somewhere else that 
/usr/bin/as


GNU assembler version 2.20.51.0.2-5.36.el6 20100205
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-redhat-linux'.
[galarowi@spirit01 OpenSpeedShop_ROOT ]$ ldd  /usr/bin/as
linux-vdso.so.1 =>  (0x77fde000)
libopcodes-2.20.51.0.2-5.36.el6.so => 
/usr/lib64/libopcodes-2.20.51.0.2-5.36.el6.so (0x77cd7000)
libbfd-2.20.51.0.2-5.36.el6.so => 
/usr/lib64/libbfd-2.20.51.0.2-5.36.el6.so (0x779f)
libz.so.1 => /lib64/libz.so.1 (0x777da000)
libc.so.6 => /lib64/libc.so.6 (0x77447000)
/lib64/ld-linux-x86-64.so.2 (0x77fdf000)
[galarowi@spirit01 OpenSpeedShop_ROOT ]$


[galarowi@spirit01 OpenSpeedShop_ROOT ]$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[galarowi@spirit01 OpenSpeedShop_ROOT ]$ which gcc
/usr/bin/gcc


I think you've got the frontend compiler there.  An easy test is just to 
use it to build/run a hello world binary.  If it runs, then you've got the 
front end compiler.



--- BUILD OUTPUT 

Build dyninst? 


Build-RPM command-line argument #1 = dyninst-8.2
Build-RPM command-line argument #2 =
Build-RPM command-line argument #3 =

DEBUG: Setting machine to uname: spirit01
RPM working directory: spirit01
Environment variable KRELL_ROOT_PREFIX is set
Environment variable KRELL_ROOT_PREFIX is set to /home/galarowi/krellroot_v2.1u3
error: Macro %target_prefix has empty body
error: Macro %target_prefix has empty body
Executing(%prep): /bin/sh -e 
/home/galarowi/OpenSpeedShop_ROOT/INSTALL/spirit01/rpm-tmp.6mVk1i
+ umask 022
+ cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' -d dyninst-8.2 ']'
+ rm -fr dyninst-8.2
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3/include -a -f 
/home/galarowi/krellroot_v2.1u3/include/boost/shared_ptr.hpp ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/boost/shared_ptr.hpp ']'
+ export DYNINST_BOOST_ROOT=
+ DYNINST_BOOST_ROOT=
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3//libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3//libelf.a ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
+ export LIBELFDIR=/usr
+ LIBELFDIR=/usr
+ '[' -f /usr/include/libelf.h ']'
+ export LIBELFINC=/usr/include
+ LIBELFINC=/usr/include
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libdwarf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libdwarf.a ']'
+ export LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ '[' '!' -z /app/wpostool/COST/binutils-2.23 ']'
+ '[' -f /app/wpostool/COST/binutils-2.23/lib64/libiberty.a ']'
+ export LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
+ LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
+ cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
+ rm -rf dyninst-8.2
+ /usr/bin/gzip -dc /home/galarowi/OpenSpeedShop_ROOT/SOURCES/dyninst-8.2.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dyninst-8.2
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch (dyninst-8.2.patch):'
Patch (dyninst-8.2.patch):
+ /bin/cat /home/galarowi/OpenSpeedShop_ROOT/SOURCES/dyninst-8.2.patch
+ /usr/bin/patch -p1 --fuzz=0
(Stripping trailing CRs from patch.)
patching file CMak

Re: [DynInst_API:] Building Dyninst 8.2 on SGI ICE - issue

2014-03-26 Thread Jim Galarowicz
Hi Matt,

Ok.  the web pages don't indicate anything about backend and frontend versions 
like they do for the Cray machine.
I'm guessing in order to get the frontend compilers I have to module unload the 
default Intel compiler module, and then do not load the gcc module.   Do you 
remember if that is what you did?

That gives me the 4.4.7 gnu compilers.   I get the same error.   I did module 
unload of the compiler modules.

Looks like it is finding another version of as somewhere else that /usr/bin/as 

GNU assembler version 2.20.51.0.2-5.36.el6 20100205
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-redhat-linux'.
[galarowi@spirit01 OpenSpeedShop_ROOT ]$ ldd  /usr/bin/as
linux-vdso.so.1 =>  (0x77fde000)
libopcodes-2.20.51.0.2-5.36.el6.so => 
/usr/lib64/libopcodes-2.20.51.0.2-5.36.el6.so (0x77cd7000)
libbfd-2.20.51.0.2-5.36.el6.so => 
/usr/lib64/libbfd-2.20.51.0.2-5.36.el6.so (0x779f)
libz.so.1 => /lib64/libz.so.1 (0x777da000)
libc.so.6 => /lib64/libc.so.6 (0x77447000)
/lib64/ld-linux-x86-64.so.2 (0x77fdf000)
[galarowi@spirit01 OpenSpeedShop_ROOT ]$ 


[galarowi@spirit01 OpenSpeedShop_ROOT ]$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[galarowi@spirit01 OpenSpeedShop_ROOT ]$ which gcc
/usr/bin/gcc


--- BUILD OUTPUT 

Build dyninst? 


Build-RPM command-line argument #1 = dyninst-8.2
Build-RPM command-line argument #2 = 
Build-RPM command-line argument #3 = 

DEBUG: Setting machine to uname: spirit01
RPM working directory: spirit01
Environment variable KRELL_ROOT_PREFIX is set
Environment variable KRELL_ROOT_PREFIX is set to /home/galarowi/krellroot_v2.1u3
error: Macro %target_prefix has empty body
error: Macro %target_prefix has empty body
Executing(%prep): /bin/sh -e 
/home/galarowi/OpenSpeedShop_ROOT/INSTALL/spirit01/rpm-tmp.6mVk1i
+ umask 022
+ cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' -d dyninst-8.2 ']'
+ rm -fr dyninst-8.2
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3/include -a -f 
/home/galarowi/krellroot_v2.1u3/include/boost/shared_ptr.hpp ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/boost/shared_ptr.hpp ']'
+ export DYNINST_BOOST_ROOT=
+ DYNINST_BOOST_ROOT=
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3//libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3//libelf.a ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
+ export LIBELFDIR=/usr
+ LIBELFDIR=/usr
+ '[' -f /usr/include/libelf.h ']'
+ export LIBELFINC=/usr/include
+ LIBELFINC=/usr/include
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libdwarf.so -o -f 
/home/galarowi/krellroot_v2.1u3/lib64/libdwarf.a ']'
+ export LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ '[' '!' -z /app/wpostool/COST/binutils-2.23 ']'
+ '[' -f /app/wpostool/COST/binutils-2.23/lib64/libiberty.a ']'
+ export LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
+ LIBIBERTYLIBDIR=/app/wpostool/COST/binutils-2.23/lib64/libiberty.a
+ cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
+ rm -rf dyninst-8.2
+ /usr/bin/gzip -dc /home/galarowi/OpenSpeedShop_ROOT/SOURCES/dyninst-8.2.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dyninst-8.2
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch (dyninst-8.2.patch):'
Patch (dyninst-8.2.patch):
+ /bin/cat /home/galarowi/OpenSpeedShop_ROOT/SOURCES/dyninst-8.2.patch
+ /usr/bin/patch -p1 --fuzz=0
(Stripping trailing CRs from patch.)
patching file CMakeLists.txt
+ pwd
/home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01/dyninst-8.2
+ export 
DYNINST_ROOT=/home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01/dyninst-8.2
+ DYNINST_ROOT=/home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01/dyninst-8.2
+ '[' '%{target_prefix}' == bgp ']'
+ '[' '%{target_prefix}' == bgq ']'
+ CXXFLAGS=-std=c++0x
+ cmake . 
-DCMAKE_INSTALL_PREFIX=/home/galarowi/OpenSpeedShop_ROOT/BUILDROOT/dyninst-8.2-1.x86_64/home/galarowi/krellroot_v2.1u3
 
-DINSTALL_LIB_DIR=/home/galarowi/OpenSpee

Re: [DynInst_API:] Building Dyninst 8.2 on SGI ICE - issue

2014-03-26 Thread Matthew LeGendre


Jim,

I was working with Koushik on the Spirit machine a couple months ago. 
They've got two compiler toolchains, one for building backend binaries and 
one for building frontend binaries.  Unfortunately, the two compilers 
don't produce compatible code (even though it's all linux/x86_64).


Dyninst's CMake is being handed the backend compiler, then testing the 
compiler on the frontend and finding it broken.  Depending on whether you 
want to build Dyninst for the frontend or backend you need to:


- Use the frontend compiler to build a frontend Dyninst.  This might have 
just been the /usr/bin/gcc compiler, if I remember correctly.


- If you want to build a backend Dyninst then tell CMake you're 
cross-compiling.  That should tell CMake not to try and test/execute the 
code it's building.  I haven't done this before with cmake, but it looks 
like http://www.cmake.org/Wiki/CMake_Cross_Compiling might have the 
information you need.  Maybe you just need to set CMAKE_SYSTEM_TYPE to 
"Generic".


-Matt

On Wed, 26 Mar 2014, Jim Galarowicz wrote: > Hi,


I'm now trying to build Dyninst 8.2 on an SGI ICE system.  But I'm getting
this:
  CMake Error 
at/work1/app/gnu/platforms/x86_64/share/cmake-2.8/Modules/CMakeTestCCompiler.
cmake:61 (message):
  The C compiler "/app/gmpapp/gcc/platform/gcc-4.7.3/bin/gcc" is not able to
  compile a simple test program.

[galarowi@spirit01 OpenSpeedShop_ROOT ]$ cmake --version
cmake version 2.8.10.2
[galarowi@spirit01 OpenSpeedShop_ROOT ]$ gcc --version
gcc (GCC) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[galarowi@spirit01 OpenSpeedShop_ROOT ]$ which CC
/usr/bin/which: no CC 
in(/app/gmpapp/gcc/platform/gcc-4.7.3/bin:/home/galarowi/bin:/opt/local/bin:/
opt/cisco/vpn/bin:/usr/local/usp/git/1.8.5/bin:/usr/local/usp/PETtools/CE/p
kgs/cmake-2.8.11.2/bin:.:/usr/local/krb5/bin:/usr/local/ossh/bin:/opt/sgi/m
pt/mpt-2.08/bin:/usr/lib64/qt-3.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/lo
cal/sbin:/opt/c3/bin:/opt/pbs/default/bin:/opt/sgi/sbin:/opt/sgi/bin:/home/
galarowi/bin:/home/galarowi/bin/x86_64:/hafs_x86_64:/hafs_x86_64/bin:/usr/b
in/X11:/usr/local/bin:/app/java/jdk1.7.0_17/bin:.)
[galarowi@spirit01 OpenSpeedShop_ROOT ]$ which CXX
/usr/bin/which: no CXX 
in(/app/gmpapp/gcc/platform/gcc-4.7.3/bin:/home/galarowi/bin:/opt/local/bin:/
opt/cisco/vpn/bin:/usr/local/usp/git/1.8.5/bin:/usr/local/usp/PETtools/CE/p
kgs/cmake-2.8.11.2/bin:.:/usr/local/krb5/bin:/usr/local/ossh/bin:/opt/sgi/m
pt/mpt-2.08/bin:/usr/lib64/qt-3.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/lo
cal/sbin:/opt/c3/bin:/opt/pbs/default/bin:/opt/sgi/sbin:/opt/sgi/bin:/home/
galarowi/bin:/home/galarowi/bin/x86_64:/hafs_x86_64:/hafs_x86_64/bin:/usr/b
in/X11:/usr/local/bin:/app/java/jdk1.7.0_17/bin:.)


[galarowi@spirit01 OpenSpeedShop_ROOT ]$ module list
Currently Loaded Modulefiles:
  1) mpt/2.08                       3) /app/startup/shell.module      5)
/app/startup/chgaccnt.module   7) /app/startup/login2.module
  2) costinit                       4) /app/startup/alias.module      6)
/app/startup/login.module      8) gcc-compilers/4.7.3

[galarowi@spirit01 OpenSpeedShop_ROOT ]$ uname -a
Linux spirit01 2.6.32-358.11.1.el6.x86_64 #1 SMP Wed May 15 10:48:38 EDT
2013 x86_64 x86_64 x86_64 GNU/Linux

Do you have any advice on what might be causing this?

Thanks,
Jim G


The complete build output:

~/OpenSpeedShop_ROOT/BUILD/spirit01 ~/OpenSpeedShop_ROOT
~/OpenSpeedShop_ROOT
XERCESC BUILT SUCCESSFULLY.

Build vampirtrace? 

Build dyninst? 


Build-RPM command-line argument #1 = dyninst-8.2
Build-RPM command-line argument #2 = 
Build-RPM command-line argument #3 = 

DEBUG: Setting machine to uname: spirit01
RPM working directory: spirit01
Environment variable KRELL_ROOT_PREFIX is set
Environment variable KRELL_ROOT_PREFIX is set to
/home/galarowi/krellroot_v2.1u3
error: Macro %target_prefix has empty body
error: Macro %target_prefix has empty body
Executing(%prep): /bin/sh -e
/home/galarowi/OpenSpeedShop_ROOT/INSTALL/spirit01/rpm-tmp.M7pyFg
+ umask 022
+ cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' -d dyninst-8.2 ']'
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3/include -a -f
/home/galarowi/krellroot_v2.1u3/include/boost/shared_ptr.hpp ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/boost/shared_ptr.hpp ']'
+ export DYNINST_BOOST_ROOT=
+ DYNINST_BOOST_ROOT=
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3//libelf.so -o -f
/home/galarowi/krellroot_v2.1u3//libelf.a ']'
+ '

Re: [DynInst_API:] Building Dyninst 8.2 on SGI ICE - issue

2014-03-26 Thread Bill Williams
Hrm. Is as on this system, by chance, pointing to an intel assembler and 
not gas? libimf is one of the intel math libraries, and I would think 
that if there are bits of intel toolchain in your path there should be 
intel libraries in your ld_library_path as well...


Looks like the standard location for libimf is /opt/intel/lib/intel64, 
but this is a wonky toolchain.


--bw

On 03/26/2014 10:52 AM, Jim Galarowicz wrote:

Hi,

I'm now trying to build Dyninst 8.2 on an SGI ICE system.  But I'm
getting this:
   CMake Error at
/work1/app/gnu/platforms/x86_64/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61
(message):
   The C compiler "/app/gmpapp/gcc/platform/gcc-4.7.3/bin/gcc" is not
able to
   compile a simple test program.

[galarowi@spirit01 OpenSpeedShop_ROOT ]$ cmake --version
cmake version 2.8.10.2
[galarowi@spirit01 OpenSpeedShop_ROOT ]$ gcc --version
gcc (GCC) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[galarowi@spirit01 OpenSpeedShop_ROOT ]$ which CC
/usr/bin/which: no CC in
(/app/gmpapp/gcc/platform/gcc-4.7.3/bin:/home/galarowi/bin:/opt/local/bin:/opt/cisco/vpn/bin:/usr/local/usp/git/1.8.5/bin:/usr/local/usp/PETtools/CE/pkgs/cmake-2.8.11.2/bin:.:/usr/local/krb5/bin:/usr/local/ossh/bin:/opt/sgi/mpt/mpt-2.08/bin:/usr/lib64/qt-3.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/opt/c3/bin:/opt/pbs/default/bin:/opt/sgi/sbin:/opt/sgi/bin:/home/galarowi/bin:/home/galarowi/bin/x86_64:/hafs_x86_64:/hafs_x86_64/bin:/usr/bin/X11:/usr/local/bin:/app/java/jdk1.7.0_17/bin:.)
[galarowi@spirit01 OpenSpeedShop_ROOT ]$ which CXX
/usr/bin/which: no CXX in
(/app/gmpapp/gcc/platform/gcc-4.7.3/bin:/home/galarowi/bin:/opt/local/bin:/opt/cisco/vpn/bin:/usr/local/usp/git/1.8.5/bin:/usr/local/usp/PETtools/CE/pkgs/cmake-2.8.11.2/bin:.:/usr/local/krb5/bin:/usr/local/ossh/bin:/opt/sgi/mpt/mpt-2.08/bin:/usr/lib64/qt-3.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/opt/c3/bin:/opt/pbs/default/bin:/opt/sgi/sbin:/opt/sgi/bin:/home/galarowi/bin:/home/galarowi/bin/x86_64:/hafs_x86_64:/hafs_x86_64/bin:/usr/bin/X11:/usr/local/bin:/app/java/jdk1.7.0_17/bin:.)


[galarowi@spirit01 OpenSpeedShop_ROOT ]$ module list
Currently Loaded Modulefiles:
   1) mpt/2.08   3) /app/startup/shell.module
  5) /app/startup/chgaccnt.module   7) /app/startup/login2.module
   2) costinit   4) /app/startup/alias.module
  6) /app/startup/login.module  8) gcc-compilers/4.7.3

[galarowi@spirit01 OpenSpeedShop_ROOT ]$ uname -a
Linux spirit01 2.6.32-358.11.1.el6.x86_64 #1 SMP Wed May 15 10:48:38 EDT
2013 x86_64 x86_64 x86_64 GNU/Linux

Do you have any advice on what might be causing this?

Thanks,
Jim G


*The complete build output:*

~/OpenSpeedShop_ROOT/BUILD/spirit01 ~/OpenSpeedShop_ROOT
~/OpenSpeedShop_ROOT
XERCESC BUILT SUCCESSFULLY.

Build vampirtrace? 

Build dyninst? 


Build-RPM command-line argument #1 = dyninst-8.2
Build-RPM command-line argument #2 =
Build-RPM command-line argument #3 =

DEBUG: Setting machine to uname: spirit01
RPM working directory: spirit01
Environment variable KRELL_ROOT_PREFIX is set
Environment variable KRELL_ROOT_PREFIX is set to
/home/galarowi/krellroot_v2.1u3
error: Macro %target_prefix has empty body
error: Macro %target_prefix has empty body
Executing(%prep): /bin/sh -e
/home/galarowi/OpenSpeedShop_ROOT/INSTALL/spirit01/rpm-tmp.M7pyFg
+ umask 022
+ cd /home/galarowi/OpenSpeedShop_ROOT/BUILD/spirit01
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' -d dyninst-8.2 ']'
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3/include -a -f
/home/galarowi/krellroot_v2.1u3/include/boost/shared_ptr.hpp ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/boost/shared_ptr.hpp ']'
+ export DYNINST_BOOST_ROOT=
+ DYNINST_BOOST_ROOT=
+ '[' '!' -z ']'
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3//libelf.so -o -f
/home/galarowi/krellroot_v2.1u3//libelf.a ']'
+ '[' -d /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libelf.so -o -f
/home/galarowi/krellroot_v2.1u3/lib64/libelf.a ']'
+ export LIBELFDIR=/usr
+ LIBELFDIR=/usr
+ '[' -f /usr/include/libelf.h ']'
+ export LIBELFINC=/usr/include
+ LIBELFINC=/usr/include
+ '[' '!' -z ']'
+ '[' '!' -z /home/galarowi/krellroot_v2.1u3 ']'
+ '[' -f /home/galarowi/krellroot_v2.1u3/lib64/libdwarf.so -o -f
/home/galarowi/krellroot_v2.1u3/lib64/libdwarf.a ']'
+ export LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ LIBDWARFDIR=/home/galarowi/krellroot_v2.1u3
+ '[' '!' -z /app/wpostool/COST/binutils-2.23 ']'
+ '[' -f /app/wpostool/COST/bi