Error with changing crystal plasticity model

270 views
Skip to first unread message

ricky ding

unread,
Nov 15, 2023, 7:49:33 AM11/15/23
to Prisms-CPFE-users
Dear Team,
I want to replace the crystal plasticity model in the program with the rate dependent model, but this error occurred after typing "make release". What is the reason for this and how can I solve it?
Thanks,
Ricky
849833d12390c0f2a71dde2495a4687.png

Alexander P

unread,
Nov 27, 2023, 10:41:05 PM11/27/23
to Prisms-CPFE-users
I'm having exactly the same problem when trying to compile PRISMS from scratch. The library compiles fine but the same error occurs when trying make release in applications/crystalPlasticity folder 

среда, 15 ноября 2023 г. в 17:49:33 UTC+5, ricky ding:

Alexander P

unread,
Nov 28, 2023, 5:29:57 AM11/28/23
to Prisms-CPFE-users
I found out that the problem occurs becaue of the bug in gcc 11.4 compiler. PRISMS compiles fine with gcc 11.3 compiler version.

вторник, 28 ноября 2023 г. в 08:41:05 UTC+5, Alexander P:

ricky ding

unread,
Dec 21, 2023, 9:41:46 AM12/21/23
to Prisms-CPFE-users
Thank you very much for your help! I found that there was indeed gcc 11.4 compiler in my Ubantu. May I ask how to simply return the current 11.4 to 11.3?

Alexander P

unread,
Jan 18, 2024, 10:10:22 PM1/18/24
to Prisms-CPFE-users
I didn't find easy way to do that. I just used a virtual machine with older version of ubuntu that had 11.3 compiler and then transfer compiled files to main machine. 

четверг, 21 декабря 2023 г. в 19:41:46 UTC+5, ricky ding:

Michael Pilipchuk

unread,
Jan 19, 2024, 4:10:29 PM1/19/24
to Prisms-CPFE-users
I have been looking into this issue for a while also, but haven't been able to sort it out yet. As of right now, I'm using the virtual machine provided by the PRISMS group at this link:  Microsoft Word - Virtual_Machine_Installation_v5_3.docx (prisms-center.org).

-Michael

Michael Pilipchuk

unread,
Feb 12, 2024, 1:05:15 PM2/12/24
to Prisms-CPFE-users
I believe that I found a resolution - the issue lies with compiler versions not quite working.  Adding version 9 as alternatives, selecting them then recompiling fixed the issue for me. Steps:

$ sudo apt-get install g++-9
$ sudo apt-get install gcc-9
$ sudo apt-get install gfortran-9

$ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 50
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 50
$ sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-9 50

$ sudo update-alternatives --config g++            {then select the option for 9}
$ sudo update-alternatives --config gcc            {then select the option for 9}
$ sudo update-alternatives --config gfortran    {then select the option for 9}

in the plasticity directory:
$ rm -rf CMakeCache.txt applications/crystalPlasticity/CMakeCache.txt
$ cmake .
$ make -j 4
$ cd applications/crystalPlasticity
$ cmake .
$ make release


This worked for me, please let me know if this solution didn't help.

Michael

David Montiel

unread,
Feb 12, 2025, 5:32:11 PMFeb 12
to Prisms-CPFE-users
I found that this error can also be solved by removing the line "using namespace std;" from the list of headers in main.cpp of the crystalPlasticity app.

The problem stems from the fact that the boost library defines a template called "set" but "set" is also a function from the std namespace. So that creates a conflict. 

I hope this helps, 

David



--
You received this message because you are subscribed to the Google Groups "Prisms-CPFE-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prisms-cpfe-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prisms-cpfe-users/4a3e6854-90fc-4dde-a930-1bf4bf407e05n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages