collect2 linking error when executing make

74 views
Skip to first unread message

Simon

unread,
Jan 2, 2023, 4:20:10 AM1/2/23
to deal.II User Group
Dear all,

First of all, I wish you a happy and prosperous new year 2023!

I transferred my dealii project to a different computer and 
encounter an linking error (command make) after setting up 
the project (command cmake .).
The error message is attached.

What is the problem?

Best
Simon
error_make.png

Timo Heister

unread,
Jan 3, 2023, 2:19:52 PM1/3/23
to dea...@googlegroups.com
Simon,

Make sure that you do not transfer any temporary files
(CMakeCache.txt, CMakeFiles/ etc.) but that you start from a fresh
source directory. The error message hints at the fact that your new
system does not have hdf5 installed.

On Mon, Jan 2, 2023 at 4:21 AM Simon <simon.w...@gmail.com> wrote:
>
> Dear all, First of all, I wish you a happy and prosperous new year 2023! I transferred my dealii project to a different computer and encounter an linking error (command make) after setting up the project (command cmake .). ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> Use caution when opening links or attachments if you do not recognize the sender.
>
> ZjQcmQRYFpfptBannerEnd
> --
> 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 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.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/ca0ce1f2-cba0-42e1-8ee4-2178806540ebn%40googlegroups.com.



--
Timo Heister
http://www.math.clemson.edu/~heister/

Simon Wiesheier

unread,
Jan 3, 2023, 2:55:16 PM1/3/23
to dea...@googlegroups.com
I started from an empty source directory with only a CMakeLists.txt file. 

I do not need hdf5. 
At least I was not aware that I had it on my old computer.

Is there a way to work around the issue? 

Best
Simon


Simon Wiesheier

unread,
Jan 4, 2023, 4:48:00 AM1/4/23
to dea...@googlegroups.com
I called cmake as follows
$ cmake -DDEAL_II_WITH_HDF5=OFF .

and get the additional lines

//No help, variable specified on the command line.
DEAL_II_WITH_HDF5:UNINITIALIZED=OFF

in my CMakeCache.txt file.

However, after 
$ make 

the error message is unchanged.
Best
Simon

Timo Heister

unread,
Jan 5, 2023, 11:15:04 AM1/5/23
to dea...@googlegroups.com
How did you install deal.II on your new machine? Note that the HDF5
configuration is part of deal.II and not your user project.

On Wed, Jan 4, 2023 at 4:48 AM Simon Wiesheier
<simon.w...@gmail.com> wrote:
>
> I called cmake as follows $ cmake -DDEAL_II_WITH_HDF5=OFF . and get the additional lines //No help, variable specified on the command line. DEAL_II_WITH_HDF5: UNINITIALIZED=OFF in my CMakeCache. txt file. However, after $ make ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍
> To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CAM50jEsJVDPE-6Y1tuviCXU%2BmgPD55%3D1pX%3DyW8JTP5eghM7ZWA%40mail.gmail.com.

Simon Wiesheier

unread,
Jan 5, 2023, 11:32:27 AM1/5/23
to dea...@googlegroups.com
deal.II was installed using spack.

Do I have to recompile the whole library with
$ cmake -DDEAL_II_WITH_HDF5=OFF?



Abbas

unread,
Jan 6, 2023, 6:11:23 AM1/6/23
to deal.II User Group
Simon, I believe you shouldn't pass the "-DDEAL_II_WITH_HDF5=OFF" to cmake to begin with.  
Reply all
Reply to author
Forward
0 new messages