On Mon, May 16, 2016 at 6:47 AM, Dominic Steinitz <[email protected]> wrote:
> On 15/05/2016 17:34, Dominic Steinitz wrote: > >> HYDU_create_process (utils/launch/launch.c:75): >> > > Sorry for the noise. I understand why I got the above error message but > now I get a different one where previously the example used to work. I have > no idea what I have done differently. > > ~/petsc/src/ksp/ksp/examples/tutorials $ >> /Users/dom/petsc/arch-darwin-c-debug/bin/mpiexec -n 1 ./ex1 >> [0]PETSC ERROR: --------------------- Error Message >> -------------------------------------------------------------- >> [0]PETSC ERROR: Null argument, when expecting valid pointer >> [0]PETSC ERROR: Null Pointer: Parameter # 2 >> [0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html >> for trouble shooting. >> [0]PETSC ERROR: Petsc Release Version 3.6.3, unknown >> [0]PETSC ERROR: ./ex1 on a arch-darwin-c-debug named >> Dominics-MacBook-Pro.local by dom Mon May 16 12:40:21 2016 >> [0]PETSC ERROR: Configure options --with-cc=gcc --with-cxx=g++ >> --with-fc=gfortran --download-fblaslapack --download-mpich >> [0]PETSC ERROR: #1 PetscOptionsGetInt() line 1480 in >> /Users/dom/petsc/src/sys/objects/options.c >> [0]PETSC ERROR: #2 main() line 39 in >> /Users/dom/petsc/src/ksp/ksp/examples/tutorials/ex1.c >> [0]PETSC ERROR: No PETSc Option Table entries >> [0]PETSC ERROR: ----------------End of Error Message -------send entire >> error message to [email protected] > > The argument list for PetscOptionsGetInt() changed in this release (so we could have reentrant option functions). It added an additional argument at the beginning. I am guessing there is a mismatch here between the version from which ex1.c comes and the version you are linking. Matt > Here's how I built the example > > ~/petsc/src/ksp/ksp/examples/tutorials $ make clean >> ~/petsc/src/ksp/ksp/examples/tutorials $ make ex1 >> /Users/dom/petsc/arch-darwin-c-debug/bin/mpicc -o ex1.o -c -fPIC -Wall >> -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -O0 >> -I/Users/dom/petsc/include -I/Users/dom/petsc/arch-darwin-c-debug/include >> -I/opt/X11/include -I/usr/local/include `pwd`/ex1.c >> /Users/dom/petsc/arch-darwin-c-debug/bin/mpicc >> -Wl,-multiply_defined,suppress -Wl,-multiply_defined -Wl,suppress >> -Wl,-commons,use_dylibs -Wl,-search_paths_first >> -Wl,-multiply_defined,suppress -Wl,-multiply_defined -Wl,suppress >> -Wl,-commons,use_dylibs -Wl,-search_paths_first -fPIC -Wall >> -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 -O0 -o ex1 >> ex1.o -Wl,-rpath,/Users/dom/petsc/arch-darwin-c-debug/lib >> -L/Users/dom/petsc/arch-darwin-c-debug/lib -lpetsc >> -Wl,-rpath,/Users/dom/petsc/arch-darwin-c-debug/lib -lflapack -lfblas >> -Wl,-rpath,/opt/X11/lib -L/opt/X11/lib -lX11 -Wl,-rpath,/usr/local/lib >> -L/usr/local/lib -lhwloc >> -Wl,-rpath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/7.3.0/lib/darwin >> -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/7.3.0/lib/darwin >> -lmpifort -lgfortran >> -Wl,-rpath,/usr/local/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin15.4.0/5.3.0 >> -L/usr/local/Cellar/gcc/5.3.0/lib/gcc/5/gcc/x86_64-apple-darwin15.4.0/5.3.0 >> -Wl,-rpath,/usr/local/Cellar/gcc/5.3.0/lib/gcc/5 >> -L/usr/local/Cellar/gcc/5.3.0/lib/gcc/5 >> -Wl,-rpath,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib >> -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib >> -lgfortran -lgcc_ext.10.5 -lquadmath -lm -lclang_rt.osx -lmpicxx -lc++ >> -Wl,-rpath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin >> -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin >> -lclang_rt.osx -Wl,-rpath,/Users/dom/petsc/arch-darwin-c-debug/lib >> -L/Users/dom/petsc/arch-darwin-c-debug/lib -ldl -lmpi -lpmpi -lSystem >> -Wl,-rpath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin >> -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin >> -lclang_rt.osx -ldl >> /bin/rm -f ex1.o >> > > > > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener
