type/value mismatch error in geometry/geometries/point_xy

117 views
Skip to first unread message

Michael Pilipchuk

unread,
Feb 9, 2024, 9:58:04 AM2/9/24
to deal.II User Group
Hello all,

I installed deal.II-v9.5.1 using candi and that installed cleanly. Then I tried to install the open-source PRISMS-Plasticity package that uses deall.II, and it compiled with no errors up until using "make release". The chain of errors eventually leads back to point_xy.hpp, showing 
/dealii-candi/deal.II-v9.5.1/include/deal.II/bundled/geometry/geometries/point_xy.hpp:78:27: note:   expected a type, got ‘1’

/dealii-candi/deal.II-v9.5.1/include/deal.II/bundled/boost/geometry/geometries/point_xy.hpp:78:27: error: template argument 2 is invalid

/dealii-candi/deal.II-v9.5.1/include/deal.II/bundled/boost/geometry/geometries/point_xy.hpp:78:27: error: template argument 3 is invalid

Discussion in the PRISMS-Plasticity group seems like it might point to GCC 11.4 compiler issues. Does anyone here have any possible advice? 

Thanks

Michael Pilipchuk

unread,
Feb 9, 2024, 10:00:10 AM2/9/24
to deal.II User Group
Oh, and I forgot to add the main error message - 

/home/mpilipch/dealii-candi/deal.II-v9.5.1/include/deal.II/bundled/boost/geometry/geometries/point_xy.hpp: In member function ‘void boost::geometry::model::d2::point_xy<CoordinateType, CoordinateSystem>::y(const CoordinateType&)’:
/home/mpilipch/dealii-candi/deal.II-v9.5.1/include/deal.II/bundled/boost/geometry/geometries/point_xy.hpp:78:27: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Key, class _Compare, class _Alloc> class std::set’
   78 |     { this->template set<1>(v); }

Wolfgang Bangerth

unread,
Feb 9, 2024, 10:53:26 AM2/9/24
to dea...@googlegroups.com

On 2/9/24 07:58, Michael Pilipchuk wrote:
>
> Discussion in the PRISMS-Plasticity group seems like it might point to
> GCC 11.4 compiler issues. Does anyone here have any possible advice?

Michael,
can you show the entirety of the error message (top to bottom) to see
how exactly you end up in the place where the problem happens?

I will not that the PRISMS project is independent of deal.II, and we are
not involved in their codes. Unless you observe this problem while
compiling deal.II, or in a place where this function is called from
inside deal.II, there is nothing we can do on our end to fix this.

Best
W.

Michael Pilipchuk

unread,
Feb 9, 2024, 11:14:24 AM2/9/24
to dea...@googlegroups.com
Wolfgang,

I understand that the projects are independent, but I was hoping that someone here might know since the error message seems to point back to deal.ii. The errors I get are below. Sorry if I misunderstood the error messages.

image.png
image.png

Thanks,
Michael

--
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/UBcs-4c3u_M/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/9944a594-a03d-4203-b449-8ee07cfae820%40colostate.edu.

Wolfgang Bangerth

unread,
Feb 10, 2024, 1:21:04 PM2/10/24
to dea...@googlegroups.com

Michael,
I looked at the error message and the code it references. The error makes no
sense to me, and I believe that it must be a compiler error. It happens in the
BOOST library, which deal.II packages but has no control over either. I double
checked with the latest version of BOOST, which is unchanged in this location.

I could think of ways of working around this problem if you wanted to edit the
file in question, but you might also just consider upgrading your compiler.

Best
Wolfgang


On 2/9/24 09:13, Michael Pilipchuk wrote:
> *** Caution: EXTERNAL Sender ***
>
> Wolfgang,
>
> I understand that the projects are independent, but I was hoping that someone
> here might know since the error message seems to point back to deal.ii. The
> errors I get are below. Sorry if I misunderstood the error messages.
>
> image.png
> <https://groups.google.com/d/topic/dealii/UBcs-4c3u_M/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> dealii+un...@googlegroups.com
> <mailto:dealii%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/9944a594-a03d-4203-b449-8ee07cfae820%40colostate.edu <https://groups.google.com/d/msgid/dealii/9944a594-a03d-4203-b449-8ee07cfae820%40colostate.edu>.
>
> --
> 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/CA%2BHzbpYvgPtvhSCcwcRqKCTgoamEMQdk9wsnoGyKGvkx5Xz-kg%40mail.gmail.com <https://groups.google.com/d/msgid/dealii/CA%2BHzbpYvgPtvhSCcwcRqKCTgoamEMQdk9wsnoGyKGvkx5Xz-kg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

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


Michael Pilipchuk

unread,
Feb 11, 2024, 4:50:55 PM2/11/24
to dea...@googlegroups.com
Hi Wolfgang,

I appreciate you taking a look at it. Before changing the files I'll try with other compilers, currently, I'm using gcc11.4, the latest available on Ubuntu 22.04, so maybe others will work.

Thanks again,
Michael

To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/UBcs-4c3u_M/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/c08f37b5-b651-4755-8e9d-9d27816e2374%40colostate.edu.

vimukthi Nanayakkara

unread,
Feb 21, 2024, 7:45:42 AM2/21/24
to deal.II User Group
Hi everyone 
I have recently started using deal II and am encountering the same error. Any assistance you can provide in resolving this would be greatly appreciated.

Wolfgang Bangerth

unread,
Feb 21, 2024, 8:05:33 AM2/21/24
to dea...@googlegroups.com
On 2/21/24 02:46, vimukthi Nanayakkara wrote:
> I have recently started using deal II and am encountering the same error. Any
> assistance you can provide in resolving this would be greatly appreciated.

Vimukthi, no easy ones other than upgrading your compiler as mentioned in the
previous message. The only alternative I can suggest is edits to BOOST itself,
but not having the compiler that is troublesome, I have no way to test that
edits I could suggest will actually work.

Best
W.

Michael Pilipchuk

unread,
Feb 21, 2024, 12:24:57 PM2/21/24
to dea...@googlegroups.com
Hi Vimukthi,

I did end up by resolving that issue by making sure that gcc, g++, and gfortran were all on a single version. Ended up using 9 for them. Seems to be working now.

Michael

--
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/UBcs-4c3u_M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages