Skip to Content.
Sympa Menu

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

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

AW: [Opal] Compile error when compiling OPAL


Chronological Thread  
  • From: Snuverink Jochem <jochem.snuverink AT psi.ch>
  • To: "18001331171 AT 189.cn" <18001331171 AT 189.cn>, "Calvo Portela, Pedro" <Pedro.Calvo AT ciemat.es>
  • Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • Subject: AW: [Opal] Compile error when compiling OPAL
  • Date: Tue, 30 May 2023 06:29:48 +0000
  • Accept-language: de-CH, en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 104.47.22.49) smtp.rcpttodomain=189.cn smtp.mailfrom=psi.ch; dmarc=pass (p=none sp=none pct=100) action=none header.from=psi.ch; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5t/C+DJ+SCdXZBZbguni3SY2U6uSdFMbbLC+HpAexUg=; b=BskPi0hCY9ebYX1acYP5HClAp22qdGcGg1T7w1Awl+xyUjTzvpIYmjPSZZQwI7h50C63GQfwAUTOCpJo9ApyLxJgzTPHH5gzLolrYcYoiEPNxbGNWDKLvHkio7zT7ar+yXaFbDFyCYzRbLzOsjZFD8Cu3OoF6F4FXPRVu7l0OTX4VYTGNBPIDBb+D1WbEfm4ve9gOgkgumFbeIzA4xPBlflbZLu9ODynGQxlkmGoTFKOuoiuVt2EWiAqfLUn/Ne+QaXqggh9ExFEiENPcmlEXLJJqJDRz0tZqhCkgHtDQWDprt3dMxZ7G6+zusGW91rAwyWbg9aegcLfn9W6rYvHgQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=klF/FW8opNGrgm3Cgt4yt8B1sdBIfJmXLX3NQ2FUBIFGnPkLpbY3jkC4bxs92gPeBaxfQ+euu8/r8lV9yswqS5Z0NraGa4g7cj8zxehRQb1QgzJX/yxJPlXZt/2HEQ6sbZduv679VQW/ljGWxSA+0AlkkpvvJDvoAdCbuqkQPs0HgBs0mJ/J+BHf4I4jqzMC4sbLDAeYwcSG80fgLORrECOpCERcuIIelh1BX4XGxRzfKB012tvxpqLFVUTIfFZbb7gasg4CZoviMNRtnVzlB5bawxn3lONDlaWbAq62kTgenHwU3LX3dYlm4C+xmuTCWry2ruWbP9ksk+wErwpAMg==
  • Authentication-results: mc3.ethz.ch; iprev=pass (mail-zr0che01on2045.outbound.protection.outlook.com) smtp.remote-ip=40.107.24.45; spf=pass smtp.mailfrom=psi.ch; dkim=pass header.d=psi.ch header.s=selector2 header.a=rsa-sha256; dmarc=pass header.from=psi.ch
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=psi.ch;
  • Msip_labels:

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 AT 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