Skip to Content.
Sympa Menu

opal - Re: [Opal] Compile error when compiling OPAL

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] Compile error when compiling OPAL


Chronological Thread  
  • From: 18001331171 AT 189.cn
  • To: Snuverink Jochem <jochem.snuverink AT psi.ch>
  • Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • Subject: Re: [Opal] Compile error when compiling OPAL
  • Date: Tue, 30 May 2023 15:06:50 +0800 (CST)
  • Hmm_attache_num: 0000
  • Hmm_source_ip: wmail.10.64.8.43.886965769
  • Hmm_source_type: WEBMAIL
  • Hmm_webcln_ip: 124.152.207.217

Hi Jochem,


Thanks for your advice. In fact I have tried this method before, but after removing this some new kind of error appeared. Looks like the following:

" /OPAL/include/MueLu_NotayAggregationFactory_def.hpp:155: note: ‘-Wmisleading-indentation’ is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers"


Also, the two methods Pedro mentioned also didn't work for me. The error I mentioned before disappered but some new error will appear again

and I'm still working on it.


Best regards,

Weizhuang


------------------ 原始邮件 ------------------

发件人:Snuverink Jochem "jochem.snuverink AT psi.ch"
时 间:2023/05/30 14:29:48 周二
收件人:"18001331171 AT 189.cn" "18001331171 AT 189.cn", "Calvo Portela,  Pedro" "Pedro.Calvo AT ciemat.es"
抄送人:"opal AT lists.psi.ch" "opal AT lists.psi.ch"
主 题:AW: [Opal] Compile error when compiling OPAL

<style>P {margin-top:0;margin-bottom:0;}</style>

Hi Weizhuang

Another easy solution could be to remove the line "add_compile_options (-Werror)" from CMakeLists.txt (main directory), then this error will be turned into a warning.

Best regards,
Jochem

Von: opal-request AT lists.psi..ch <opal-request AT lists.psi.ch> im Auftrag von Calvo Portela, Pedro <Pedro.Calvo AT ciemat.es>
Gesendet: Montag, 22. Mai 2023 12:45
An: 18001331171 AT 189.cn <18001331171 AT 189.cn>
Cc: opal AT lists.psi.ch <opal AT lists.psi.ch>
Betreff: Re: [Opal] Compile error when compiling OPAL
 

Hi Weizhuang


This bug has been solved in the master branch, so it will be fixed in the next OPAL release. I suggest to two options to compile OPAL 2022.1.0

- Use a previous version of boost. The minimum version to compile OPAL is boost 1.66.0

- Try to compile OPAL master branch, but this a not stable branch with some bugs to be fixed, so I don't really recommend this solution


Best regards

Pedro



De: 18001331171 AT 189.cn <18001331171 AT 189.cn>
Enviado: lunes, 22 de mayo de 2023 12:02
Para: Calvo Portela, Pedro
Asunto: Re: Re: [Opal] Compile error when compiling OPAL
 


Hi Pedro,


I am compiling OPAL on ubuntu 22.04 on Windows.

The boost version is 1.81.0. The OPAL version is 2022.1.0.


Best Regards,

Weizhuang

------------------ 原始邮件 ------------------

发件人:Calvo Portela,  Pedro "Pedro.Calvo@ciemat..es"
时 间:2023/05/22 17:54:10 周一
收件人:"18001331171 AT 189.cn" "18001331171 AT 189.cn"
抄送人:
主 题:Re: [Opal] Compile error when compiling OPAL

Hi Weizhuang


I've never got this error. Please, we need some info about your system to approach the issue

What version of Boost do you have installed on your system? What OPAL release are you trying to compile?


Cheers

Pedro


------------------------------------------------
Dr. Pedro Calvo Portela
Unidad de Aceleradores - CIEMAT
Avenida Complutense 40, Edificio 7
28040 Madrid
Tel: +34 – 91 496 2554 / ext. 362542


De: opal-request AT lists.psi.ch <opal-request AT lists.psi.ch> en nombre de 18001331171 AT 189.cn <18001331171 AT 189.cn>
Enviado: lunes, 22 de mayo de 2023 11:05
Para: opal
Asunto: [Opal] Compile error when compiling OPAL
 

Hello,


I tried to compile the OPAL from source following the build-recipes in the website. When compiling OPAL, the following error message occured:

"/OPAL/src/Optimize/OpalSimulation.cpp:659:59: error: ‘std::string boost::filesystem::extension(const boost::filesystem::path&)’ is deprecated: Use path::extension() instead [-Werror=deprecated-declarations]
 659 |                 std::string extension = Util::toUpper(fs::extension(it->path().filename())); "

Does anyone knows how to do with this error? 


Best Regards,

Weizhuang Peng













Archive powered by MHonArc 2.6.24.

Top of Page