Error in p4est installation using deal.II suggested script

253 views
Skip to first unread message

Kishore Nori

unread,
Mar 12, 2021, 11:41:21 AM3/12/21
to deal.II User Group
Hi everyone,

Hope you are doing well!

I  am new to deal.II and I am trying to install p4est before I install deal.II, I found this script on the deal.II website (https://www.dealii.org/current/external-libs/p4est.html) for installing p4est with optimisations and settings relevant for deal.II, but I am getting an error while installing through this procedure, the following are the run time updates, when executing: $ ./p4est-setup.sh p4est-2.2.tar.gz ~/bin/

CFLAGS_FAST: -O2 -qopenmp
CFLAGS_DEBUG: -O0 -g -qopenmp

This script tries to unpack, configure and build the p4est library.
Build FAST: /home/kishore/p4est-build/FAST
Build DEBUG: /home/kishore/p4est-build/DEBUG
Install FAST: /home/kishore/bin//FAST
Install DEBUG: /home/kishore/bin//DEBUG
Checking environment: CFLAGS P4EST_CFLAGS_FAST P4EST_CFLAGS_DEBUG
Unpack directory: /home/kishore/p4est-2.2
Unpacking... done
See output in files .../config.output and .../make.output

Build FAST version in /home/kishore/p4est-build/FAST
configure: error: unsafe srcdir value: '/home/kishore/p4est-2.2'
Error: Error in configure

May I get pointers on fixing this? 

Thank you very much,

yours sincerely,

Kishore

Bruno Turcksin

unread,
Mar 12, 2021, 1:45:13 PM3/12/21
to deal.II User Group
Kishore,

Can you try the following command:
$  bash ./p4est-setup.sh p4est-2.2.tar.gz /home/kishore/bin

Best,

Bruno

Kishore Nori

unread,
Mar 12, 2021, 1:55:59 PM3/12/21
to deal.II User Group
Dear Bruno,

Thank you for the suggestion, but unfortunately, this as well leads to exactly the same error report as above.
I get the same error report even when I run it as a super user. (I forgot to mention that I am running this on Ubuntu 20.04)

Thanking you,

Best wishes,

Kishore

Bruno Turcksin

unread,
Mar 12, 2021, 2:13:33 PM3/12/21
to dea...@googlegroups.com
Kishore,

Can you check that /home/kishore/p4est-2.2 exists and that there are
files in the directory. According to google this error usually if
there is a blank space in the name of the file but it doesn't look
like it's your problem.

Best,

Bruno
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/zFAOjhxCtuM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/35d1353f-d1a6-4dbe-b3bb-62518bb4d5e5n%40googlegroups.com.

Matthias Maier

unread,
Mar 12, 2021, 2:21:14 PM3/12/21
to dea...@googlegroups.com
For Ubuntu 20.04:

Have you tried to use the ppa package found here?

https://launchpad.net/~ginggs/+archive/ubuntu/deal.ii-9.2.0-backports

Doing this and running

sudo apt install libdeal.ii-dev libdeal.ii-doc cmake make g++

should install all necessary dependencies (and a functional deal.II
9.2.0). If you want to use the development version, just install version
9.2.0 on the system and then configure and compile the library by hand.

Best,
Matthias



see: https://github.com/dealii/dealii/issues/11529

Kishore Nori

unread,
Mar 12, 2021, 2:28:16 PM3/12/21
to dea...@googlegroups.com
Dear Bruno, 

Thank you again, I deleted the existing files and all the folders related to p4est and the logs and tried running the command you mentioned again, The error mentioned above is fixed but I get a new error:

configure: error: linking to Fortran libraries from C fails
See `config.log' for more details
Error: Error in configure

Best wishes,

Kishore

Kishore Nori

unread,
Mar 12, 2021, 2:31:46 PM3/12/21
to dea...@googlegroups.com
Dear Matthias,

No, I haven't tried this way, seems easier, thank you very much! 
Would it also install p4est? If not, can I use this way after installing p4est?

Best wishes,

Kishore

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/zFAOjhxCtuM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/878s6s89g9.fsf%4043-1.org.

Bruno Turcksin

unread,
Mar 12, 2021, 2:45:33 PM3/12/21
to dea...@googlegroups.com
Kishore,

Do you have gfortran installed? p4est needs to have a fortran compiler
to configure even though they don't use fortran,

Best,

Bruno
> To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CA%2BskKkP503SA9m79pcuYVOm9T_k0v4gN1i2w16LW5uda-P-MRw%40mail.gmail.com.

Matthias Maier

unread,
Mar 12, 2021, 5:02:29 PM3/12/21
to dea...@googlegroups.com
Yes, it install p4est alongside trilinos, petsc, and most of the
supported dependencies.

Give it a try!

Matthias

Kishore Nori

unread,
Mar 12, 2021, 11:16:10 PM3/12/21
to deal.II User Group
Dear Bruno,

Yes I have gfortran installed, when I try to install it again using $ sudo apt install gfortran, it says "gfortran is already the newest version (4:9.3.0-1ubuntu2)". 

The following I found relevant in the config.log file:

Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) 
configure:4338: $? = 0
configure:4327: mpif77 -V >&5
gfortran: error: unrecognized command line option '-V'
gfortran: fatal error: no input files
compilation terminated.
configure:4338: $? = 1
configure:4327: mpif77 -qversion >&5
gfortran: error: unrecognized command line option '-qversion'; did you mean '--version'?
gfortran: fatal error: no input files
compilation terminated.

and later in the file also

Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) 
configure:5434: $? = 0
configure:5423: mpicc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:5434: $? = 1
configure:5423: mpicc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:5434: $? = 1
configure:5438: checking whether we are using the GNU C compiler
configure:5465: mpicc -c -O2 -qopenmp -DSC_LOG_PRIORITY=SC_LP_ESSENTIAL conftest.c >&5
gcc: error: unrecognized command line option '-qopenmp'; did you mean '-fopenmp'?

The first seems to be a problem with mpif77, and this (https://askubuntu.com/questions/179256/how-do-i-install-a-fortran-77-compiler) says fortran77 compiler or libraries are not included in the gfortran package of Ubuntu (there seems to be a possibility of installing these by $ sudo apt-get install fort77) but I am not very sure of what is going on!?

So is this a problem pertaining to Ubuntu OS?

It is seems that I should follow Matthias suggestion and install through the PPA. 

Thank you very much for the inputs,

Best wishes,

Kishore

Kishore Nori

unread,
Mar 12, 2021, 11:19:40 PM3/12/21
to deal.II User Group
Dear Matthias,

That's great! I ll go for this way then and update. 

Thank you very much for the suggestion.

Best wishes,

Kishore
Reply all
Reply to author
Forward
0 new messages