build error with AppleClang 14.0.0.14000029

33 views
Skip to first unread message

Rahul Gopalan Ramachandran

unread,
Jan 24, 2023, 8:51:44 AM1/24/23
to deal.II User Group
Hello All,

There seems to be a compilation error popping up after updating the Apple clang compilers with the new MacOs update (compiler : AppleClang 14.0.0.14000029). Here is the error, 

/softwares/dealii-9.4.1/source/lac/sparse_direct.cc:104:14: error: non-const lvalue reference to type 'vector<long, allocator<long>>' cannot bind to a value of unrelated type 'vector<types::suitesparse_index, allocator<long long>>'
    tmp.swap(Ap);

I am reaching out to know if anyone else tried recompiling dealii after updating to MacOs Ventura in a Apple Silicon machine? Any suggestions?

Regards,
Rahul

Wells, David

unread,
Jan 24, 2023, 12:40:26 PM1/24/23
to deal.II User Group
Hi Rahul,

This is a bug in deal.II - we wrote "long int" where we should have written "types::suitesparse_index", which won't work on an ARM chip (apparently long long means something different there).

I wrote a patch to fix this - see


Best,
David Wells

From: dea...@googlegroups.com <dea...@googlegroups.com> on behalf of Rahul Gopalan Ramachandran <grrah...@gmail.com>
Sent: Tuesday, January 24, 2023 8:51 AM
To: deal.II User Group <dea...@googlegroups.com>
Subject: [deal.II] build error with AppleClang 14.0.0.14000029
 
--
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/67dec931-8bb7-456f-89de-9f8d2ebf7bfcn%40googlegroups.com.

Rahul Gopalan Ramachandran

unread,
Jan 24, 2023, 1:04:06 PM1/24/23
to dea...@googlegroups.com
Thank you David! Indeed that solves it. 

Regards,
Rahul

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/geO2pl5YA6o/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/MN2PR03MB4879263C5809AFEB496775C0EDC99%40MN2PR03MB4879.namprd03.prod.outlook.com.

Reply all
Reply to author
Forward
0 new messages