Problem on compiling deal.ii using candi

73 views
Skip to first unread message

Li Xiangyue

unread,
May 26, 2023, 3:15:08 AM5/26/23
to deal.II User Group

Dear deal.ii developers,

 

I try to install deal.ii through candi using:

 

git clone https://github.com/dealii/candi.git

cd candi

./candi.sh

 

All the common dependencies have been installed. But here comes some trouble when compiling deal.ii. Could you help me fix this problem?

 

The error shows:

======================================================================================================

###

-- Configuring done

-- Generating done

-- Build files have been written to: /home/dell/dealii-candi/tmp/build/deal.II-v9.4.2

[  0%] Built target expand_instantiations_exe

...

[ 82%] Built target obj_rol_debug

[ 82%] Linking CXX executable ../bin/step-63.debug

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'SlepcFinalize'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSCreate'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetTolerances'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSDestroy'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetOperators'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetST'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetTarget'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetWhichEigenpairs'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetProblemType'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetDimensions'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetFromOptions'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetConvergenceTest'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSolve'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSGetConverged'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSGetIterationNumber'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSComputeError'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSGetEigenpair'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSSetType'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSArnoldiSetDelayed'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSLanczosSetReorthog'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'EPSGDSetDoubleExpansion'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STCreate'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STDestroy'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STSetMatMode'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STSetKSP'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STSetType'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STSetShift'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'STCayleySetAntishift'

../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'SlepcInitialize'

collect2: error: ld returned 1 exit status

examples/CMakeFiles/step-63.debug.dir/build.make:214: recipe for target 'bin/step-63.debug' failed

make[2]: *** [bin/step-63.debug] Error 1

CMakeFiles/Makefile2:6931: recipe for target 'examples/CMakeFiles/step-63.debug.dir/all' failed

make[1]: *** [examples/CMakeFiles/step-63.debug.dir/all] Error 2

Makefile:129: recipe for target 'all' failed

make: *** [all] Error 2

Failure with exit status: 2

Exit message: There was a problem building dealii v9.4.2.

======================================================================================================

 

Thank you for your time and I look forward to hearing from you!

Wolfgang Bangerth

unread,
May 26, 2023, 10:50:07 AM5/26/23
to dea...@googlegroups.com
> All the common dependencies have been installed. But here comes some trouble
> when compiling deal.ii. Could you help me fix this problem?
>
> The error shows:
>
> ======================================================================================================
>
> ###
>
> -- Configuring done
>
> -- Generating done
>
> -- Build files have been written to:
> /home/dell/dealii-candi/tmp/build/deal.II-v9.4.2
>
> [  0%] Built target expand_instantiations_exe
>
> ...
>
> [ 82%] Built target obj_rol_debug
>
> [ 82%] Linking CXX executable ../bin/step-63.debug
>
> ../lib/libdeal_II.g.so.9.4.2: error: undefined reference to 'SlepcFinalize'

I don't know what causes the problem on your system. But these are all
functions that are part of SLEPc. Do you need SLEPc? If not, try disabling it
in the configuration.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/


Li Xiangyue

unread,
May 29, 2023, 3:44:54 AM5/29/23
to deal.II User Group
Thanks a lot! But I need SLEPc to do my work.
Actually, in the process of installing slepc, I modified candi/deal.II-toolchain/packages/slepc.package.
I noticed an update to SLPEc's website, and I changed the setting
  • Form: VERSION=3.19.0; CHECKSUM = 673 dbda220e5a4bd2c3a6618267d8e55
  • To: VERSION = 3.19.1; CHECKSUM = 00 c1fa02e573e3a2f43fecb9298a00a3.
I didn't have any other changes elsewhere. Is there anything wrong with my handling?

Wolfgang Bangerth

unread,
Jun 4, 2023, 8:38:34 PM6/4/23
to dea...@googlegroups.com

Li Xiangyue:
I believe that Timo already fixed the issue with the checksum. As for what
specifically is going wrong on your platform, I have to admit that I don't
know. Could you see whether you can get the command line of the command
'Linking CXX executable ../bin/step-63.debug' that causes the trouble? I don't
know candi well enough to tell you how to get that command line, but if it
were just a call to 'make', you would have to replace 'make' by 'make VERBOSE=1'.

Best
W.

On 5/29/23 01:44, Li Xiangyue wrote:
> *** Caution: EXTERNAL Sender ***
>
> Thanks a lot! But I need SLEPc to do my work.
> Actually, in the process of installing slepc, I modified
> candi/deal.II-toolchain/packages/slepc.package.
> I noticed an update to SLPEc's website, and I changed the setting
>
> * Form: VERSION=3.19.0; CHECKSUM = 673 dbda220e5a4bd2c3a6618267d8e55
> * To: VERSION = 3.19.1; CHECKSUM = 00 c1fa02e573e3a2f43fecb9298a00a3.
> <http://www.math.colostate.edu/~bangerth/>
>
>
> --
> The deal.II project is located at http://www.dealii.org/
> <http://www.dealii.org/>
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> <https://groups.google.com/d/forum/dealii?hl=en>
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+un...@googlegroups.com
> <mailto:dealii+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/c78cb31c-394c-4132-9e19-aa2bf2020041n%40googlegroups.com <https://groups.google.com/d/msgid/dealii/c78cb31c-394c-4132-9e19-aa2bf2020041n%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages