On Tue, 3 Dec 2013 15:12:04 +0100 Johannes Ring <[email protected]> wrote:
> On Fri, Nov 29, 2013 at 9:20 PM, Jan Blechta > <[email protected]> wrote: > > When configuring DOLFIN against CHOLMOD library from SuiteSparse, > > following error is issued in build/CMakeFiles/CMakeError.log > > > > /usr/bin/c++ -O2 -mfpmath=sse -fexpensive-optimizations > > -DCHOLMOD_TEST_RUNS -fopenmp > > CMakeFiles/cmTryCompileExec.dir/src.cxx.o -o cmTryCompileExec > > -rdynamic -Wl,-Bstatic -lcholmod -lamd -lcamd -lcolamd -lccolamd > > -lsuitesparseconfig -Wl,-Bdynamic -lparmetis -lmetis -Wl,-Bstatic > > -llapack -lblas -Wl,-Bdynamic > > -lgfortran > > > > /usr/local/pkg/suitesparse/4.2.1/gnu/lib/../lib/libsuitesparseconfig.a > > (SuiteSparse_config.o): In function `SuiteSparse_tic': > > SuiteSparse_config.c:(.text+0x131): undefined reference to > > `clock_gettime' > > > > Setting > > > > -DCHOLMOD_LIBRARIES:STRING='-lrt' > > > > or even > > > > -DCHOLMOD_LIBRARIES:STRING='$(shell pkg-config --libs > > suitesparse) -lrt' > > > > does not help. Where can be a problem? > > You can try something like the attached patch. I have committed it. Is it production-ready? Jan > > Johannes _______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
