These are chat archives for elemental/chat

12th
Nov 2016
Ryan H. Lewis
@rhl-
Nov 12 2016 06:43
You can also use CMAKE CC Compiler variable
Jack Poulson
@poulson
Nov 12 2016 17:19
Yes, CMAKE_CXX_COMPILER is the usual way to specify the C++ compiler
Ryan H. Lewis
@rhl-
Nov 12 2016 21:57
@poulson been busy lately but I'm hoping to get back to BFGS soon.
Jack Poulson
@poulson
Nov 12 2016 21:57
OK; I think it is finally time for the release candidate
I'd like to debug some of the numerous issues building on OS X but would be okay with proceding before then
Jack Poulson
@poulson
Nov 12 2016 22:19
I'm currently building valgrind 3.12 on OS X Sierra and hope it is functional enough to explain some of the strange segfaults that I only see with particular compilers on OS X
in particular, the unaligned stack issue
Jack Poulson
@poulson
Nov 12 2016 22:50
it seems I need to manually patch the __bzero implementation as shown here: https://github.com/Homebrew/formula-patches/blob/master/valgrind/bzero.diff
Jack Poulson
@poulson
Nov 12 2016 23:06
I also had to handle the patches suggested here http://demo102.phpcaiji.com/article/gdaghe-valgrind-installation-errors-on-osx-10-8.html and also manually specify --with-mpicc to a GCC-built mpicc
and one has to explicitly enable only 64-bit builds (e.g., ./configure --prefix=/Users/poulson/Install/valgrind-3.12 CC=gcc-6 CXX=g++-6 --with-mpicc=/usr/local/gcc-6-brew/bin/mpicc --enable-only64bit)
Jack Poulson
@poulson
Nov 12 2016 23:19
it also seems that libmpiwrap.c falsely assumes that MPI_Request is of type void* rather than the possible int in an printf call
line 1362 of mpi/libmpiwrap.c should probably be changed from fprintf(stderr, "%s %5d: sReq- %p (completed)\n", preamble, my_pid, request_before); to fprintf(stderr, "%s %5d: sReq- %p (completed)\n", preamble, my_pid, &request_before);