Open jgalarowicz opened 6 years ago
Get a regular build to create CBTFSUMMARY. Any reason spack fails? Do the dependencies bundled with Openspeedshop have patches that are incompatible with those in Spack?
Hi Benson,
When I build using spack on the Cray, I do these steps:
a) module unload PrgEnv-???? - we want to build OSS/CBTF as a login node code
b) module load gcc/?? # need a reasonably recent gcc version
c) setup a spack externals file in ~/.spack/linux/packages.yaml file. Here is one from Theta at Argonne.
packages: all: providers: pkgconfig: [pkg-config] mpich: buildable: False paths: mpich@7.7.1%gcc@7.3.0 arch=linux-sles12-x86_64: /opt/cray/pe/mpt/7.7.2/gni/mpich-gnu python: #buildable: False paths: python@2.7.13%gcc@7.3.0 arch=linux-sles12-x86_64: /usr
d) spack install openspeedshop +mpich ^cmake@3.6.0 # there seems to be a problem building cmake of late. 3.6.0 seems to work, so that is why I added the cmake dependency.
I also had to change the boost version because dyninst and the new boost versions don't work together. I see there is a fix for this in the works in the dyninst code base.
diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py index 9536aa5cc..8ed3ee0f4 100644 --- a/var/spack/repos/builtin/packages/boost/package.py +++ b/var/spack/repos/builtin/packages/boost/package.py @@ -24,8 +24,8 @@ class Boost(Package): list_depth = 1
version('develop', branch='develop', submodules=True) - version('1.69.0', 'ea6eee4b5999f9c02105386850f63a53f0250eaa') - version('1.68.0', '18863a7cae4d58ae85eb63d400f774f60a383411') + #version('1.69.0', 'ea6eee4b5999f9c02105386850f63a53f0250eaa') + #version('1.68.0', '18863a7cae4d58ae85eb63d400f774f60a383411') version('1.67.0', '694ae3f4f899d1a80eb7a3b31b33be73c423c1ae') version('1.66.0', 'b6b284acde2ad7ed49b44e856955d7b1ea4e9459') version('1.65.1', '41d7542ce40e171f3f7982aff008ff0d')
I was able to build on theta and on cori at NERSC with this method/scenario.
Thanks, Jim G
On 02/05/2019 11:28 AM, Benson Muite wrote:
Get a regular build to create CBTFSUMMARY. Any reason spack fails?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenSpeedShop/openspeedshop/issues/6#issuecomment-460727917, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmdtc9tKeHDZYzHW33pcRra8H3oQXBdks5vKb8vgaJpZM4X8g6q.
When trying to get MPI information on the Cray with cbtfsummarry we are getting an error when using the PrgEnv-gnu cc wrapper to build the summary collector mpi wrappers.
I switched the /usr/bin/cc to finding the PrgEnv-gnu version of cc, which is apparently in /opt/cray/pe/craype/default on the Cray, cori at NERSC.
When I do: module swap PrgEnv-intel PrgEnv-gnu module load gcc spack install openspeedshop@develop%gcc@7.3.0 +mpich
I can get through building all the other required packages - no issues. That is totally different from the last time I tried it. Although, that might have been on Trinity at LANL - this is Cori at NERSC, which has been the easiest to build on, in general.
I am including the files I'm changing and the diff of the two files.
galaro@cori11:~/cbtf-krell> module list
jgalaro@cori11:~/cbtf-krell> gcc -v Using built-in specs. COLLECT_GCC=/opt/gcc/7.3.0/bin/../snos/bin/gcc COLLECT_LTO_WRAPPER=/opt/gcc/7.3.0/snos/libexec/gcc/x86_64-suse-linux/7.3.0/lto-wrapper Target: x86_64-suse-linux Configured with: ../cray-gcc-7.3.0-201801270210.d61239fc6000b/configure --prefix=/opt/gcc/7.3.0/snos --disable-nls --libdir=/opt/gcc/7.3.0/snos/lib --enable-languages=c,c++,fortran --with-gxx-include-dir=/opt/gcc/7.3.0/snos/include/g++ --with-slibdir=/opt/gcc/7.3.0/snos/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --build=x86_64-suse-linux --with-ppl --with-cloog --disable-multilib Thread model: posix gcc version 7.3.0 20180125 (Cray Inc.) (GCC)
jgalaro@cori11:~/cbtf-krell> cc -v Using built-in specs. COLLECT_GCC=/opt/gcc/7.3.0/bin/../snos/bin/gcc COLLECT_LTO_WRAPPER=/opt/gcc/7.3.0/snos/libexec/gcc/x86_64-suse-linux/7.3.0/lto-wrapper Target: x86_64-suse-linux Configured with: ../cray-gcc-7.3.0-201801270210.d61239fc6000b/configure --prefix=/opt/gcc/7.3.0/snos --disable-nls --libdir=/opt/gcc/7.3.0/snos/lib --enable-languages=c,c++,fortran --with-gxx-include-dir=/opt/gcc/7.3.0/snos/include/g++ --with-slibdir=/opt/gcc/7.3.0/snos/lib --with-system-zlib --enable-shared --enable-cxa_atexit --build=x86_64-suse-linux --with-ppl --with-cloog --disable-multilib Thread model: posix gcc version 7.3.0 20180125 (Cray Inc.) (GCC) COMPILER_PATH=/opt/gcc/7.3.0/snos/libexec/gcc/x86_64-suse-linux/7.3.0/:/opt/gcc/7.3.0/snos/libexec/gcc/x86_64-suse-linux/7.3.0/:/opt/gcc/7.3.0/snos/libexec/gcc/x86_64-suse-linux/:/opt/gcc/7.3.0/snos/lib/gcc/x86_64-suse-linux/7.3.0/:/opt/gcc/7.3.0/snos/lib/gcc/x86_64-suse-linux/ LIBRARY_PATH=/opt/gcc/7.3.0/snos/lib/gcc/x86_64-suse-linux/7.3.0/:/opt/gcc/7.3.0/snos/lib/gcc/x86_64-suse-linux/7.3.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/gcc/7.3.0/snos/lib/gcc/x86_64-suse-linux/7.3.0/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-march=core-avx2' '-static' '-D' 'CRAYXC' '-D' 'CRAY_HASWELL' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-u' 'pthread_mutex_destroy' '-D' 'TARGET_LINUX' '-v' '-I' '/opt/cray/pe/libsci/18.03.1/GNU/7.1/x86_64/include' '-I' '/opt/cray/pe/mpt/7.7.0/gni/mpich-gnu/5.1/include' '-I' '/opt/cray/rca/2.2.18-6.0.7.0_33.3g2aa4f39.ari/include' '-I' '/opt/cray/alps/6.6.43-6.0.7.0_26.4ga796da3.ari/include' '-I' '/opt/cray/xpmem/2.2.15-6.0.7.1_5.8__g7549d06.ari/include' '-I' '/opt/cray/gni-headers/5.0.12.0-6.0.7.0_24.1g3b1768f.ari/include' '-I' '/opt/cray/pe/pmi/5.0.13/include' '-I' '/opt/cray/ugni/6.0.14.0-6.0.7.0_23.1gea11d3d.ari/include' '-I' '/opt/cray/udreg/2.3.2-6.0.7.0_33.18g5196236.ari/include' '-I' '/opt/cray/wlm_detect/1.3.3-6.0.7.0_47.2g7109084.ari/include' '-I' '/opt/cray/krca/2.2.4-6.0.7.1_5.23g8505b97.ari/include' '-I' '/opt/cray-hss-devel/8.0.0/include' '-L/opt/cray/pe/libsci/18.03.1/GNU/7.1/x86_64/lib' '-L/opt/cray/dmapp/default/lib64' '-L/opt/cray/pe/mpt/7.7.0/gni/mpich-gnu/5.1/lib' '-L/opt/cray/rca/2.2.18-6.0.7.0_33.3g2aa4f39.ari/lib64' '-L/opt/cray/alps/6.6.43-6.0.7.0_26.4__ga796da3.ari/lib64' '-L/opt/cray/xpmem/2.2.15-6.0.7.1_5.8g7549d06.ari/lib64' '-L/opt/cray/pe/pmi/5.0.13/lib64' '-L/opt/cray/ugni/6.0.14.0-6.0.7.0_23.1gea11d3d.ari/lib64' '-L/opt/cray/udreg/2.3.2-6.0.7.0_33.18g5196236.ari/lib64' '-L/opt/cray/pe/atp/2.1.1/libApp' '-L/opt/cray/wlm_detect/1.3.3-6.0.7.0_47.2g7109084.ari/lib64' /opt/gcc/7.3.0/snos/libexec/gcc/x86_64-suse-linux/7.3.0/collect2 -plugin /opt/gcc/7.3.0/snos/libexec/gcc/x86_64-suse-linux/7.3.0/liblto_plugin.so -plugin-opt=/opt/gcc/7.3.0/snos/libexec/gcc/x86_64-suse-linux/7.3.0/lto-wrapper -plugin-opt=-fresolution=/tmp/cc13MW2q.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_eh -plugin-opt=-pass-through=-lc -m elf_x86_64 -static -u pthread_mutex_destroy /usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o /opt/gcc/7.3.0/snos/lib/gcc/x86_64-suse-linux/7.3.0/crtbeginT.o -L/opt/cray/pe/libsci/18.03.1/GNU/7.1/x86_64/lib -L/opt/cray/dmapp/default/lib64 -L/opt/cray/pe/mpt/7.7.0/gni/mpich-gnu/5.1/lib -L/opt/cray/rca/2.2.18-6.0.7.0_33.3__g2aa4f39.ari/lib64 -L/opt/cray/alps/6.6.43-6.0.7.0_26.4ga796da3.ari/lib64 -L/opt/cray/xpmem/2.2.15-6.0.7.1_5.8g7549d06.ari/lib64 -L/opt/cray/pe/pmi/5.0.13/lib64 -L/opt/cray/ugni/6.0.14.0-6.0.7.0_23.1__gea11d3d.ari/lib64 -L/opt/cray/udreg/2.3.2-6.0.7.0_33.18g5196236.ari/lib64 -L/opt/cray/pe/atp/2.1.1/libApp -L/opt/cray/wlm_detect/1.3.3-6.0.7.0_47.2g7109084.ari/lib64 -L/opt/gcc/7.3.0/snos/lib/gcc/x86_64-suse-linux/7.3.0 -L/opt/gcc/7.3.0/snos/lib/gcc/x86_64-suse-linux/7.3.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/opt/gcc/7.3.0/snos/lib/gcc/x86_64-suse-linux/7.3.0/../../.. -rpath=/opt/cray/pe/gcc-libs --no-as-needed -lAtpSigHandler -lAtpSigHCommData --undefined=_ATP_Data_Globals --undefined=atpHandlerInstall -lpthread -lsci_gnu_71_mpi -lsci_gnu_71 -lpthread -lhugetlbfs -lmpich_gnu_51 -lrt -lugni -lpthread -lpmi -lpthread -lalpslli -lpthread -lwlm_detect -lalpsutil -lpthread -lrca -lxpmem -lugni -lpthread -ludreg --as-needed -lgfortran -lquadmath --no-as-needed --as-needed -lmvec --no-as-needed --as-needed -lm --no-as-needed --as-needed -lpthread --no-as-needed --start-group -lgcc -lgcc_eh -lc --end-group /opt/gcc/7.3.0/snos/lib/gcc/x86_64-suse-linux/7.3.0/crtend.o /usr/lib/../lib64/crtn.o /usr/lib/../lib64/crt1.o: In function
_start': /home/abuild/rpmbuild/BUILD/glibc-2.22/csu/../sysdeps/x86_64/start.S:114: undefined reference to
main' collect2: error: ld returned 1 exit status jgalaro@cori11:~/cbtf-krell>The errors I'm seeing:
spack install openspeedshop@develop%gcc@7.3.0 +mpich ==> diffutils is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/diffutils-3.6-rkoi2gv6hb6u2llgznjfsetxtliotsqi ==> bzip2 is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/bzip2-1.0.6-o4wpe27mb42ohakqxnmxf2trych7ij4l ==> pkg-config is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/pkg-config-0.29.2-u2gomdsvq67q55wjxrssfna7jkxckhka ==> xz is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/xz-5.2.4-62czkwibst3iww6vgchn7antsetpmhcx ==> zlib is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/zlib-1.2.11-uw4fzi4m6feyszysqptjqj42z5z3ekg6 ==> libxml2 is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/libxml2-2.9.8-xfskjry5leltvol2wsvqcfi6p2blwt3b ==> ncurses is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/ncurses-6.1-3qx2xoey36v53wznrkw5ocjtbzdu2p5m ==> tar is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/tar-1.30-rauwacuuevb6r37kfc7eddfnggshnq5z ==> gettext is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/gettext-0.19.8.1-mlvm6lzsjyvzpjpr73ke5bat73b3piqr ==> binutils is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/binutils-2.31.1-t2buzwali7nnepsqvqzg5goxy4rmkt3r ==> readline is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/readline-7.0-ztwkzaj6s2jjczfbel2rpbvkqpwqmfkj ==> gdbm is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/gdbm-1.14.1-eqk77qd6kiv4hzyfgxb5wwi7eyfmztmg ==> perl is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/perl-5.26.2-lzuxybjocjj7kdhh3pw5gjgdjqwmtd2w ==> help2man is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/help2man-1.47.4-n2unm4q5n5bainczgt6ib5ciq3azevha ==> libsigsegv is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/libsigsegv-2.11-xvt6ng6xyjj4yjrmljxwua6tnxol3kmt ==> m4 is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/m4-1.4.18-atz6g674azjixpkdau6fkkcxufnfw5xe ==> bison is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/bison-3.0.5-zupd6jdujhpb2kfb6x32mpp2bvepakyy ==> boost is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/boost-1.68.0-55pcrpyax7a4xorz6u6yrxc5dchbdoy4 ==> openssl is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/openssl-1.0.2o-7phfslyi6azswiplgvr2wvzxbve22zkm ==> cmake is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/cmake-3.12.2-corqorwue655lm66ltpkwzrrqossm42m ==> mrnet is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/mrnet-5.0.1-3-62plvcgc5pmzw2pbdw43aebaabapcjtq ==> libiconv is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/libiconv-1.15-c3kh54uga2ptrssjpcedctyjrrr47p4v ==> xerces-c is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/xerces-c-3.2.2-fjnqasur4v2ajsf2qqjey4zquuk3eavb ==> cbtf is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/cbtf-develop-nocqvzgf43drlgr3iom6fhmpbqa2sqde ==> elfutils is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/elfutils-0.173-nhajs276s6x3cw2vl2d77pnqrz7ycnmx ==> libiberty is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/libiberty-2.31.1-eehra6eqdx743nu2rfwoo36oh6g7evpo ==> dyninst is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/dyninst-develop-4u2zvgc6rvxlrjznlytdjfzc52n6tx4h ==> gotcha is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/gotcha-1.0.2-osuvufu3bk7hbz44cbvtyjzzkrb7dypz ==> libmonitor is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/libmonitor-2013.02.18-ake66dgj7qf4wcgocrgbmh2ac3jh2iad ==> libunwind is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/libunwind-1.2.1-246x5s7wbdb26aoto7f6hjw3kxckkzjc ==> sqlite is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/sqlite-3.23.1-vbm5vvim32yoe5wvpg53ment6lqvwtm2 ==> python is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/python-2.7.15-u2igd43lmosejrmm7zgrm6lt6keq6fa3 ==> ninja is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/ninja-1.8.2-qloefczn3fg3iohyvuvomlf2e4vnzlpo ==> llvm-openmp-ompt is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/llvm-openmp-ompt-tr6_forwards-ztk3beqx3m2iju7jvwljx6mtm2bfst4t ==> mpich@7.7.0 : externally installed in /opt/cray/pe/mpt/7.7.0/gni/mpich-gnu/5.1 ==> mpich@7.7.0 : already registered in DB ==> papi is already installed in /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc-7.3.0/papi-5.6.0-7qh3mzppbwoab46uc72pn3s7bxwb57vw ==> Installing cbtf-krell ==> Fetching from /global/u2/j/jgalaro/clean_spack/spack/var/spack/cache/cbtf-krell/cbtf-krell-develop.tar.gz failed. ==> Fetching file:/global/homes/j/jgalaro/cbtf-krell-develop.tar.gz ######################################################################## 100.0% ==> Staging archive: /global/u2/j/jgalaro/clean_spack/spack/var/spack/stage/cbtf-krell-develop-n6sxsozvqmazrmtyzhaalf6ssyyjybbg/cbtf-krell-develop.tar.gz ==> Created stage in /global/u2/j/jgalaro/clean_spack/spack/var/spack/stage/cbtf-krell-develop-n6sxsozvqmazrmtyzhaalf6ssyyjybbg ==> No patches needed for cbtf-krell ==> Building cbtf-krell [CMakePackage] ==> Executing phase: 'cmake' ==> Executing phase: 'build' ==> Error: ProcessError: Command exited with status 2: 'make'
4 errors found in build log: 19333 make[2]: Leaving directory '/tmp/jgalaro/spack-stage/spack-stage-lCtE0B/cbtf-krell/build_cbtf_krell' 19334 [ 97%] Built target overview-monitor-mrnet-mpi 19335 make -f core/collectors/overview/mpi/CMakeFiles/overview-mpich-wrappers.dir/build.make core/collectors/overview/mpi/CMakeFiles/overview-mpich-wrappers.dir/depend 19336 make[2]: Entering directory '/tmp/jgalaro/spack-stage/spack-stage-lCtE0B/cbtf-krell/build_cbtf_krell' 19337 [ 97%] Generating C code for mpich-wrappers.c from wrappers.w 19338 cd /tmp/jgalaro/spack-stage/spack-stage-lCtE0B/cbtf-krell/build_cbtf_krell/core/collectors/overview/mpi && /global/u2/j/jgalaro/clean_spack/spack/opt/spack/cray-cnl6-haswell/gcc -7.3.0/python-2.7.15-u2igd43lmosejrmm7zgrm6lt6keq6fa3/bin/python /global/u2/j/jgalaro/clean_spack/spack/var/spack/stage/cbtf-krell-develop-n6sxsozvqmazrmtyzhaalf6ssyyjybbg/cbtf- krell/core/collectors/overview/mpi/wrap.py -c /opt/cray/pe/craype/default/bin/cc -f /global/u2/j/jgalaro/clean_spack/spack/var/spack/stage/cbtf-krell-develop-n6sxsozvqmazrmtyzha alf6ssyyjybbg/cbtf-krell/core/collectors/overview/mpi/wrappers.w -o /tmp/jgalaro/spack-stage/spack-stage-lCtE0B/cbtf-krell/build_cbtf_krell/core/collectors/overview/mpi/mpich-wr appers.c
See build log for details: /global/u2/j/jgalaro/clean_spack/spack/var/spack/stage/cbtf-krell-develop-n6sxsozvqmazrmtyzhaalf6ssyyjybbg/cbtf-krell/spack-build.out jgalaro@cori11:~/clean_spack/spack/var/spack/repos/builtin/packages>