OpenFCST / OpenFCSTv03

Release v0.3 (Dec 10, 2016)
http://www.openfcst.org
29 stars 11 forks source link

Unable to compile with C++17 #10

Open cbalen opened 1 year ago

cbalen commented 1 year ago

So I'm using Manjaro Linux 23.0.4 with gcc 13.2.1 and I tried to install OpenFCST with the command:

$ InstallDir="location on my computer" $ ./openFCST_install --install-dir=$InstallDir --cores=4

but when trying to install cpptest I got an error and checking the cpptest-build-err.log it warns of some deprecations for auto_ptr but also gives the error:

mytest.cpp:145:31: error: ISO C++17 does not allow dynamic exception specifications 145 | void func_throw_int() throw(int) { throw 13; }

So I followed some advice on Stack Overflow and I removed the throw(int) from line 145 and throw() from line 144 and it was able to compile. However I then got errors in COLDAE:

Error: Actual argument contains too few elements for dummy argument ‘integs’ (1/3) at (1)

OpenFCST commented 1 year ago

Hi,

If possible, I would suggest you try to run our code on Ubuntu 16.04 LTS as the code was developed to run on this OS.

Regarding your issue, were you able to compile deal.II? I believe that will be the biggest issue. If the only issue is COLDAE, we do not use it in most cases, so you could probably remove a few files (microscale agglomerate) and avoid using COLDAE.

Best, Marc

On Sat, Nov 11, 2023 at 5:15 PM cbalen @.***> wrote:

So I'm using Manjaro Linux 23.0.4 with gcc 13.2.1 and I tried to install OpenFCST with the command:

$ InstallDir="location on my computer" $ ./openFCST_install --install-dir=$InstallDir --cores=4

but when trying to install cpptest I got an error and checking the cpptest-build-err.log it warns of some deprecations for auto_ptr but also gives the error:

mytest.cpp:145:31: error: ISO C++17 does not allow dynamic exception specifications 145 | void func_throw_int() throw(int) { throw 13; }

So I followed some advice on Stack Overflow and I removed the throw(int) from line 145 and throw() from line 144 and it was able to compile. However I then got errors in COLDAE:

Error: Actual argument contains too few elements for dummy argument ‘integs’ (1/3) at (1)

— Reply to this email directly, view it on GitHub https://github.com/OpenFCST/OpenFCSTv03/issues/10, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZ54JZPJMAZQ44R5SYHACTYEAII5AVCNFSM6AAAAAA7HTAK26VHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DSMJWG4ZTOMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--


Marc Secanell, Ph.D., P.Eng.

Professor

Energy Systems Design Laboratory http://www.esdlab.mece.ualberta.ca/

Department of Mechanical Engineering

University of Alberta 10-358 Donadeo Innovation Centre for Engineering, 9211-116 Street NW, Edmonton, AB, Canada T6G 1H9

Phone: (780) 490 8808 (cell)

        (780) 492-6961 (office)

E-mail: @.***

I do not expect a response after hours or on weekends. I sent this email at my convenience and welcome a response at your convenience.

The University of Alberta respectfully acknowledges that we are located on Treaty 6 territory, a traditional gathering place for diverse Indigenous peoples including the Cree, Blackfoot, Métis, Nakota Sioux, Iroquois, Dene, Ojibway/ Saulteaux/Anishinaabe, Inuit, and many others whose histories, languages, and cultures continue to influence our vibrant community.

Confidentiality notice: Emails sent to @.*** are forwarded to a Google-supported email account. Emails, attachments, documents and calendaring data, stored, received and sent through this University account may be transmitted to and stored on servers outside of the University, Alberta or Canada. The University of Alberta cannot and does not guarantee protection against the possible disclosure of your data including, without limitation, against possible secret disclosures of data to a foreign authority as a consequence of foreign laws.


cbalen commented 1 year ago

Hi Marc,

Thank you for responding :)

I have deal.II 9.4.2 already installed on my machine so not thinking (*face palm) I just pointed to that and forgot to mention that in my first message. At the time I didn't think that there would be issues but seeing you are using v8.4.1... I tried to use the version you have in contrib but unfortunately I guess that version of deal.ii doesn't like my mpi compilers :( So that definitely is another issue.

Are there plans to update OpenFCST to run on newer versions of Ubuntu b/c 16.04 is no longer receiving general support?

OpenFCST commented 1 year ago

Hi,

We do have plans for a new release, but we do not have a firm release date yet. We continue to work on our in-house code, which runs on the latest version of Ubuntu using the latest version of deal.II. However, we need new developers before we can work and support a new release.

Best, Marc

On Sun, Nov 12, 2023 at 5:44 PM cbalen @.***> wrote:

Hi Marc,

Thank you for responding :)

I have deal.II 9.4.2 already installed on my machine so not thinking (*face palm) I just pointed to that and forgot to mention that in my first message. At the time I didn't think that there would be issues but seeing you are using v8.4.1... I tried to use the version you have in contrib but unfortunately I guess that version of deal.ii doesn't like my mpi compilers :( So that definitely is another issue.

Are there plans to update OpenFCST to run on newer versions of Ubuntu b/c 16.04 is no longer receiving general support https://en.wikipedia.org/wiki/Ubuntu#Releases?

— Reply to this email directly, view it on GitHub https://github.com/OpenFCST/OpenFCSTv03/issues/10#issuecomment-1807311489, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZ54J7IVVOLXZVGQLHAVFLYEFUPBAVCNFSM6AAAAAA7HTAK26VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXGMYTCNBYHE . You are receiving this because you commented.Message ID: @.***>

--


Marc Secanell, Ph.D., P.Eng.

Professor

Energy Systems Design Laboratory http://www.esdlab.mece.ualberta.ca/

Department of Mechanical Engineering

University of Alberta 10-358 Donadeo Innovation Centre for Engineering, 9211-116 Street NW, Edmonton, AB, Canada T6G 1H9

Phone: (780) 490 8808 (cell)

        (780) 492-6961 (office)

E-mail: @.***

I do not expect a response after hours or on weekends. I sent this email at my convenience and welcome a response at your convenience.

The University of Alberta respectfully acknowledges that we are located on Treaty 6 territory, a traditional gathering place for diverse Indigenous peoples including the Cree, Blackfoot, Métis, Nakota Sioux, Iroquois, Dene, Ojibway/ Saulteaux/Anishinaabe, Inuit, and many others whose histories, languages, and cultures continue to influence our vibrant community.

Confidentiality notice: Emails sent to @.*** are forwarded to a Google-supported email account. Emails, attachments, documents and calendaring data, stored, received and sent through this University account may be transmitted to and stored on servers outside of the University, Alberta or Canada. The University of Alberta cannot and does not guarantee protection against the possible disclosure of your data including, without limitation, against possible secret disclosures of data to a foreign authority as a consequence of foreign laws.