← Back to team overview

dolfin team mailing list archive

Re: Demo Build error

 

This looks strange. Does it help if you add -lX11 to the link command?

We don't include any X11 stuff in DOLFIN so I don't know where this
comes from. Maybe from PETSc?

-- 
Anders


On Fri, May 23, 2008 at 06:40:10PM +0200, Evan Lezar wrote:
> Hi there
> 
> I have just tried to build dolfin from source - which completes without errors,
> but the building of the demo's fail with the following output:
> 
> mpic++ -o demo/fem/assembly/cpp/main.o -c -Wall -pipe -ansi -DDEBUG -g -Werror
> -DNDEBUG -O2 -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK -DPACKAGE_VERSION=\"0.7.3\"
> -DHAS_PETSC=1 -DHAS_SLEPC=1 -DHAS_UMFPACK=1 -DHAS_GTS=1 -fno-strict-aliasing
> -I. -I. -Idolfin -I/usr/include/libxml2 -I/home/elezar/src/petsc-2.3.3-p13/
> bmake/linux-gnu-c-debug -I/home/elezar/src/petsc-2.3.3-p13/include -I/usr/lib/
> openmpi/include -I/usr/lib/openmpi/lib -Idemo -I/home/elezar/src/slepc-2.3.3 -I
> /home/elezar/src/slepc-2.3.3/include -I/home/elezar/src/petsc-2.3.3-p13/bmake/
> linux-gnu-c-debug -I/home/elezar/src/petsc-2.3.3-p13/include -I/usr/lib/openmpi
> /include -I/usr/lib/openmpi/lib -Idemo -I/usr/include/suitesparse -I/usr/
> include/glib-2.0 -I/usr/lib/glib-2.0/include demo/fem/assembly/cpp/main.cpp
> mpic++ -o demo/fem/assembly/cpp/demo -Wl,-rpath,/home/elezar/src/
> petsc-2.3.3-p13/lib/linux-gnu-c-debug -Wl,-rpath,/home/elezar/src/slepc-2.3.3/
> lib/linux-gnu-c-debug -Wl,-rpath,/home/elezar/src/petsc-2.3.3-p13/lib/
> linux-gnu-c-debug -pthread -Wl,--export-dynamic demo/fem/assembly/cpp/main.o
> -Ldolfin -L/home/elezar/src/petsc-2.3.3-p13/lib/linux-gnu-c-debug -L/home/
> elezar/src/slepc-2.3.3/lib/linux-gnu-c-debug -L/home/elezar/src/petsc-2.3.3-p13
> /lib/linux-gnu-c-debug -L/usr/lib/atlas -ldolfin -lxml2 -lpetscts -lpetscsnes
> -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lslepc -lpetscts
> -lpetscsnes -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lblas -lumfpack
> -lamd -lgts -lgthread-2.0 -lrt -lgmodule-2.0 -ldl -lglib-2.0
> dolfin/libdolfin.so: undefined reference to `dpttrf_'
> dolfin/libdolfin.so: undefined reference to `XCreatePixmap'
> dolfin/libdolfin.so: undefined reference to `dhseqr_'
> dolfin/libdolfin.so: undefined reference to `dpotrf_'
> dolfin/libdolfin.so: undefined reference to `XSetForeground'
> dolfin/libdolfin.so: undefined reference to `XUndefineCursor'
> dolfin/libdolfin.so: undefined reference to `dsyevr_'
> dolfin/libdolfin.so: undefined reference to `XGetWMName'
> dolfin/libdolfin.so: undefined reference to `dbdsdc_'
> dolfin/libdolfin.so: undefined reference to `XCopyArea'
> dolfin/libdolfin.so: undefined reference to `dgelqf_'
> dolfin/libdolfin.so: undefined reference to `dpotrs_'
> dolfin/libdolfin.so: undefined reference to `dstevr_'
> dolfin/libdolfin.so: undefined reference to `dggevx_'
> dolfin/libdolfin.so: undefined reference to `dsygvd_'
> dolfin/libdolfin.so: undefined reference to `dlange_'
> dolfin/libdolfin.so: undefined reference to `XCreateGC'
> dolfin/libdolfin.so: undefined reference to `XFillRectangle'
> dolfin/libdolfin.so: undefined reference to `dgetri_'
> dolfin/libdolfin.so: undefined reference to `XCreateFontCursor'
> dolfin/libdolfin.so: undefined reference to `XFreeGC'
> dolfin/libdolfin.so: undefined reference to `XLookupColor'
> dolfin/libdolfin.so: undefined reference to `XSelectInput'
> dolfin/libdolfin.so: undefined reference to `XCreateColormap'
> dolfin/libdolfin.so: undefined reference to `XChangeGC'
> dolfin/libdolfin.so: undefined reference to `XParseColor'
> dolfin/libdolfin.so: undefined reference to `dgeev_'
> dolfin/libdolfin.so: undefined reference to `dlaev2_'
> dolfin/libdolfin.so: undefined reference to `XDrawPoint'
> dolfin/libdolfin.so: undefined reference to `XAllocColor'
> dolfin/libdolfin.so: undefined reference to `dtrexc_'
> dolfin/libdolfin.so: undefined reference to `XListFontsWithInfo'
> dolfin/libdolfin.so: undefined reference to `XDrawString'
> dolfin/libdolfin.so: undefined reference to `XStringListToTextProperty'
> dolfin/libdolfin.so: undefined reference to `dgetrf_'
> dolfin/libdolfin.so: undefined reference to `dgehrd_'
> dolfin/libdolfin.so: undefined reference to `XMapWindow'
> dolfin/libdolfin.so: undefined reference to `XQueryPointer'
> dolfin/libdolfin.so: undefined reference to `XSetWMName'
> dolfin/libdolfin.so: undefined reference to `XAllocNamedColor'
> dolfin/libdolfin.so: undefined reference to `dpttrs_'
> dolfin/libdolfin.so: undefined reference to `XMatchVisualInfo'
> dolfin/libdolfin.so: undefined reference to `XOpenDisplay'
> dolfin/libdolfin.so: undefined reference to `XSetWMProperties'
> dolfin/libdolfin.so: undefined reference to `XQueryFont'
> dolfin/libdolfin.so: undefined reference to `XFreeFontInfo'
> dolfin/libdolfin.so: undefined reference to `XResizeWindow'
> dolfin/libdolfin.so: undefined reference to `XGetGeometry'
> dolfin/libdolfin.so: undefined reference to `dtrevc_'
> dolfin/libdolfin.so: undefined reference to `XSetWindowBackground'
> dolfin/libdolfin.so: undefined reference to `dgesvd_'
> dolfin/libdolfin.so: undefined reference to `XFlush'
> dolfin/libdolfin.so: undefined reference to `XCreateWindow'
> dolfin/libdolfin.so: undefined reference to `XFillArc'
> dolfin/libdolfin.so: undefined reference to `XSetWindowColormap'
> dolfin/libdolfin.so: undefined reference to `XDrawLine'
> dolfin/libdolfin.so: undefined reference to `dgetrs_'
> dolfin/libdolfin.so: undefined reference to `dstebz_'
> dolfin/libdolfin.so: undefined reference to `XMaskEvent'
> dolfin/libdolfin.so: undefined reference to `XQueryColor'
> dolfin/libdolfin.so: undefined reference to `dstein_'
> dolfin/libdolfin.so: undefined reference to `XCheckTypedEvent'
> dolfin/libdolfin.so: undefined reference to `XDefineCursor'
> dolfin/libdolfin.so: undefined reference to `XSetClipRectangles'
> dolfin/libdolfin.so: undefined reference to `XGetWindowAttributes'
> dolfin/libdolfin.so: undefined reference to `XStoreColor'
> dolfin/libdolfin.so: undefined reference to `dgesdd_'
> dolfin/libdolfin.so: undefined reference to `XFillPolygon'
> dolfin/libdolfin.so: undefined reference to `dormlq_'
> dolfin/libdolfin.so: undefined reference to `XCloseDisplay'
> dolfin/libdolfin.so: undefined reference to `XSync'
> dolfin/libdolfin.so: undefined reference to `dorghr_'
> dolfin/libdolfin.so: undefined reference to `XLoadFont'
> dolfin/libdolfin.so: undefined reference to `dlanhs_'
> dolfin/libdolfin.so: undefined reference to `dgeevx_'
> collect2: ld returned 1 exit status
> scons: *** [demo/fem/assembly/cpp/demo] Error 1
> scons: building terminated because of errors.
> 
> 
> ==== end output ====
> 
> I it seems that lapack (among others) is not being correctly linked (or at
> all).
> 
> Any thoughts?
> Thanks
> Evan

> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev



Follow ups

References