You are not logged in.

#1 2015-10-21 01:52:45

Calucinho
Member
Registered: 2014-12-05
Posts: 19

Failure during building dolfin-git from AUR

I want to install FEniCS and I am stuck at trying to install dolfin-git from AUR. The error I am getting is this:

-- Generating SWIG interface.
-- --------------------------
-- 
-- Generating form files in demo, test, bench and dolfin directories. May take some time...
-- ----------------------------------------------------------------------------------------
CMake Error at CMakeLists.txt:883 (message):
  Generation of form files failed:



-- Configuring incomplete, errors occurred!
See also "/tmp/yaourt-tmp-carlos/aur-dolfin-git/src/dolfin/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/yaourt-tmp-carlos/aur-dolfin-git/src/dolfin/build/CMakeFiles/CMakeError.log".

I posted the output of CMakeError.log here:

https://dl.dropboxusercontent.com/u/296 … eError.log

and the output of CMakeOutput.log here:

https://dl.dropboxusercontent.com/u/296 … Output.log

Does anyone know what is going wrong and how I can get dolfin installed?

Last edited by Calucinho (2015-10-24 10:27:56)

Offline

#2 2015-10-23 07:45:33

Calucinho
Member
Registered: 2014-12-05
Posts: 19

Re: Failure during building dolfin-git from AUR

Please can someone help? I really need Dolfin to work.

Offline

#3 2015-10-23 22:57:37

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,396

Re: Failure during building dolfin-git from AUR

I'm guessing you mean dolfin-git .

Have you tried building with makepkg ?

Last edited by Lone_Wolf (2015-10-23 22:58:53)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2015-10-24 10:51:19

Calucinho
Member
Registered: 2014-12-05
Posts: 19

Re: Failure during building dolfin-git from AUR

Hey Lone_Wolf,

Thank you for your reply.

I have tried to install dolfin-git using both

yaourt -S dolfin-git

and

makepkg -s

Either way I get the same error sad

Offline

#5 2015-10-24 13:04:50

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,396

Re: Failure during building dolfin-git from AUR

Well,i'm not exactly a wizard with Cmake, but the error log seems to indicate some symboldefinitions are missing :

‘Q_WS_WIN’ was not declared in this scope

‘Q_WS_QWS’ was not declared in this scope

‘Q_WS_MAC’ was not declared in this scope

Looking at the output.log , these are the lines that trigger those errrors :

Determining if the Q_WS_X11 exist passed with the following output:
Change Dir: /tmp/yaourt-tmp-carlos/aur-dolfin-git/src/dolfin/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_b28de/fast"
/usr/bin/make -f CMakeFiles/cmTC_b28de.dir/build.make CMakeFiles/cmTC_b28de.dir/build
make[1]: Entering directory '/tmp/yaourt-tmp-carlos/aur-dolfin-git/src/dolfin/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_b28de.dir/CheckSymbolExists.cxx.o
/usr/bin/g++    -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong  -std=c++11  -fopenmp -I/usr/include/scotch -I/usr/include/qt4    -o CMakeFiles/cmTC_b28de.dir/CheckSymbolExists.cxx.o -c /tmp/yaourt-tmp-carlos/aur-dolfin-git/src/dolfin/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
Linking CXX executable cmTC_b28de
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b28de.dir/link.txt --verbose=1
/usr/bin/g++   -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong  -std=c++11  -fopenmp   -Wl,-O1,--sort-common,--as-needed,-z,relro  CMakeFiles/cmTC_b28de.dir/CheckSymbolExists.cxx.o  -o cmTC_b28de -rdynamic /lib64/libpastix.so /lib64/librt.so -lm /lib64/libhwloc.so /usr/lib64/libcblas.so /usr/lib64/libf77blas.so /usr/lib64/libatlas.so /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib/libgfortran.so -lptscotch -lscotch -lptscotcherr /usr/lib64/openmpi/libmpi.so -lpastix -llapack  -lbz2 -lptscotch -lscotcherr -Wl,-rpath,/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../lib:/usr/lib64/openmpi 
make[1]: Leaving directory '/tmp/yaourt-tmp-carlos/aur-dolfin-git/src/dolfin/build/CMakeFiles/CMakeTmp'

File /tmp/yaourt-tmp-carlos/aur-dolfin-git/src/dolfin/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_X11
  return ((int*)(&Q_WS_X11))[argc];
#else
  (void)argc;
  return 0;
#endif
}

the Q_WS_* are globals in QT4 [1]  ), but have been replaced by other symbols in QT5 [2] .

It does appear dolfin-git code is written for QT4 , but you're building against QT5 .

I don't know how to tell cmake to use QT4 instead of QT5 for dolfin-git , but do you currently have QT4 installed ?
If not, try installing QT4 (arch allows QT4 and QT5 to be installed alongside eachother) and try if dolfin cmake detects & uses QT4 .

if that fails and you need fenics soon :
on http://fenicsproject.org/download/ you can download a virtual machine image for virtualbox with fenics latest released version.




[1] http://doc.qt.io/qt-4.8/qtglobal.html
[2] http://doc.qt.io/qt-5/qtglobal.html

Last edited by Lone_Wolf (2015-10-24 13:07:11)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2015-10-24 19:07:31

Calucinho
Member
Registered: 2014-12-05
Posts: 19

Re: Failure during building dolfin-git from AUR

Thanks Lone_Wolf for you suggestion. It seems I already had QT4 installed. Tomorrow I will try to see whether I can manually compile Dolfin from source. If I manage I will contact the maintainer of the package.

Offline

Board footer

Powered by FluxBB