[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    Re: [Boost-users] [cfe-dev] [llvm-dev] Error: ISO C++17 does not allow 'register' storage class spec
From:       Matthieu Brucher via Boost-users <boost-users () lists ! boost ! org>
Date:       2018-12-25 18:01:04
Message-ID: CAHCaCkJP-ES5gLQogOWRm4aJh=n6=pqpy3z0eAjXc5DkRLN4ew () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Python 2.7 will always have this issue. Python 3 may have fixed the issue,
but Python 3 is supported by Boost.Python for a long time now.

The question is which Python version you want to wrap. It seems that you
don't know the Python 2 and Python 3 are different products. You may not
even need to build these then.
If you are using Python 2, you don't have a choice, ou have to either fix
the headers or remove the error in another way.

Cheers,

Matthieu

Le mar. 25 déc. 2018 à 18:41, Osman Zakir via Boost-users <
boost-users@lists.boost.org> a écrit :

> I'll build using C++14 mode, then.  I wonder if Python 3.7.1 has this
> issue as well?  If it doesn't, then maybe Boost should switch over to that
> version of Python.
> ------------------------------
> *From:* Matthieu Brucher <matthieu.brucher@gmail.com>
> *Sent:* Tuesday, December 25, 2018 2:56 PM
> *To:* Oleg Smolsky
> *Cc:* Craig Topper; Osman Zakir; clang developer list;
> cfe-users@lists.llvm.org; llvm-dev@lists.llvm.org
> *Subject:* Re: [cfe-dev] [llvm-dev] Error: ISO C++17 does not allow
> 'register' storage class specifier [-Wregister], when building Boost 1.69.0
>
> The issue comes in part form the Python headers that have the keyword.
> Unfortunately, this also means that there is an issue while building user
> code. But it's not a Boost code issue for this library, but a Python one.
>
> Regards,
>
> Matthieu
>
> Le mar. 25 déc. 2018 à 02:08, Oleg Smolsky via cfe-dev <
> cfe-dev@lists.llvm.org> a écrit :
>
> Yes, this keyword is no longer valid starting from C++17:
>     https://en.cppreference.com/w/cpp/keyword/register
>
> I realize that the "why" probably doesn't help you move forth with your
> problem, so here are a couple suggestions how to get over it:
>
>    - Build Boost in C++14 mode with -std=c++14
>    - Cut out "register" from the Boost source and rebuild
>    - Try a newer Boost version, it may have been fixed
>
> Oleg.
> On 2018-12-23 09:26, Craig Topper via cfe-dev wrote:
>
> This seems a better question for cfe-dev or cfe-users
>
> ~Craig
>
>
> On Sat, Dec 22, 2018 at 12:23 PM Osman Zakir via llvm-dev <
> llvm-dev@lists.llvm.org> wrote:
>
> When trying to build Boost using LLVM, I had this error:
> "
> error: ISO C++17 does not allow 'register' storage class specifier
> [-Wregister]
> "
> I attached the project-config.jam file I used to this message.  Someone
> please help me out (if there's someone on here who can).
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
> _______________________________________________
> cfe-dev mailing listcfe-dev@lists.llvm.orghttp://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
>
> --
> Quantitative analyst, Ph.D.
> Blog: http://blog.audio-tk.com/
> LinkedIn: http://www.linkedin.com/in/matthieubrucher
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> https://lists.boost.org/mailman/listinfo.cgi/boost-users
>


-- 
Quantitative analyst, Ph.D.
Blog: http://blog.audio-tk.com/
LinkedIn: http://www.linkedin.com/in/matthieubrucher

[Attachment #5 (text/html)]

<div dir="ltr">Python 2.7 will always have this issue. Python 3 may have fixed the \
issue, but Python 3 is supported by Boost.Python for a long time \
now.<div><br></div><div>The question is which Python version you want to wrap. It \
seems that you don&#39;t know the Python 2 and Python 3 are different products. You \
may not even need to build these then.</div><div>If you are using Python 2, you \
don&#39;t have a choice, ou have to either fix the headers or remove the error in \
another way.</div><div><br></div><div>Cheers,</div><div><br></div><div>Matthieu</div></div><br><div \
class="gmail_quote"><div dir="ltr">Le  mar. 25 déc. 2018 à  18:41, Osman Zakir via \
Boost-users &lt;<a href="mailto:boost-users@lists.boost.org">boost-users@lists.boost.org</a>&gt; \
a écrit  :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">





<div dir="ltr">
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
 <span>I&#39;ll build using C++14 mode, then.   I wonder if Python 3.7.1 has this \
issue as well?   If it doesn&#39;t, then maybe Boost should switch over to that \
version of Python.</span></div> <div \
id="gmail-m_451667634901783402appendonsend"></div> <hr \
style="display:inline-block;width:98%"> <div \
id="gmail-m_451667634901783402divRplyFwdMsg" dir="ltr"><font face="Calibri, \
sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Matthieu Brucher \
&lt;<a href="mailto:matthieu.brucher@gmail.com" \
target="_blank">matthieu.brucher@gmail.com</a>&gt;<br> <b>Sent:</b> Tuesday, December \
25, 2018 2:56 PM<br> <b>To:</b> Oleg Smolsky<br>
<b>Cc:</b> Craig Topper; Osman Zakir; clang developer list; <a \
href="mailto:cfe-users@lists.llvm.org" target="_blank">cfe-users@lists.llvm.org</a>; \
<a href="mailto:llvm-dev@lists.llvm.org" \
target="_blank">llvm-dev@lists.llvm.org</a><br> <b>Subject:</b> Re: [cfe-dev] \
[llvm-dev] Error: ISO C++17 does not allow &#39;register&#39; storage class specifier \
[-Wregister], when building Boost 1.69.0</font> <div>  </div>
</div>
<div>
<div dir="ltr">The issue comes in part form the Python headers that have the keyword.
<div>Unfortunately, this also means that there is an issue while building user code. \
But it&#39;s not a Boost code issue for this library, but a Python one.</div> \
<div><br> </div>
<div>Regards,</div>
<div><br>
</div>
<div>Matthieu</div>
</div>
<br>
<div class="gmail-m_451667634901783402x_gmail_quote">
<div dir="ltr">Le  mar. 25 déc. 2018 à  02:08, Oleg Smolsky via cfe-dev &lt;<a \
href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>&gt; a \
écrit  :<br> </div>
<blockquote class="gmail-m_451667634901783402x_gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
 <div bgcolor="#FFFFFF">
<p>Yes, this keyword is no longer valid starting from C++17:<br>
       <a class="gmail-m_451667634901783402x_gmail-m_1003612495795424007moz-txt-link-freetext" \
href="https://en.cppreference.com/w/cpp/keyword/register" target="_blank"> \
https://en.cppreference.com/w/cpp/keyword/register</a></p> <p>I realize that the \
&quot;why&quot; probably doesn&#39;t help you move forth with your problem, so here \
are a couple suggestions how to get over it:</p> <ul>
<li>Build Boost in C++14 mode with -std=c++14<br>
</li><li>Cut out &quot;register&quot; from the Boost source and rebuild </li><li>Try \
a newer Boost version, it may have been fixed </li></ul> <p>Oleg.<br>
</p>
<div class="gmail-m_451667634901783402x_gmail-m_1003612495795424007moz-cite-prefix">On \
2018-12-23 09:26, Craig Topper via cfe-dev wrote:<br> </div>
<blockquote type="cite">
<div dir="ltr">
<div>This seems a better question for cfe-dev or cfe-users</div>
<br clear="all">
<div>
<div dir="ltr" class="gmail-m_451667634901783402x_gmail-m_1003612495795424007gmail_signature">~Craig</div>
 </div>
<br>
</div>
<br>
<div class="gmail-m_451667634901783402x_gmail_quote">
<div dir="ltr">On Sat, Dec 22, 2018 at 12:23 PM Osman Zakir via llvm-dev &lt;<a \
href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>&gt; \
wrote:<br> </div>
<blockquote class="gmail-m_451667634901783402x_gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
 <div dir="ltr">
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
 <span>When trying to build Boost using LLVM, I had this error:</span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
 <span>&quot;</span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
 <span>error: ISO C++17 does not allow &#39;register&#39; storage class specifier \
[-Wregister]<br> <div>&quot;</div>
<div>I attached the project-config.jam file I used to this message.   Someone please \
help me out (if there&#39;s someone on here who can).   </div> </span></div>
</div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" \
target="_blank">llvm-dev@lists.llvm.org</a><br> <a \
href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" \
target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br> \
</blockquote> </div>
<br>
<fieldset class="gmail-m_451667634901783402x_gmail-m_1003612495795424007mimeAttachmentHeader"></fieldset>
 <pre class="gmail-m_451667634901783402x_gmail-m_1003612495795424007moz-quote-pre">_______________________________________________
 cfe-dev mailing list
<a class="gmail-m_451667634901783402x_gmail-m_1003612495795424007moz-txt-link-abbreviated" \
href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a> <a \
class="gmail-m_451667634901783402x_gmail-m_1003612495795424007moz-txt-link-freetext" \
href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" \
target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a> </pre>
</blockquote>
</div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" \
target="_blank">cfe-dev@lists.llvm.org</a><br> <a \
href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" \
target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br> \
</blockquote> </div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail-m_451667634901783402x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>Quantitative analyst, Ph.D.<br>
Blog: <a href="http://blog.audio-tk.com/" \
                target="_blank">http://blog.audio-tk.com/</a><br>
LinkedIn: <a href="http://www.linkedin.com/in/matthieubrucher" \
target="_blank">http://www.linkedin.com/in/matthieubrucher</a></div> </div>
</div>
</div>
</div>
</div>
</div>

_______________________________________________<br>
Boost-users mailing list<br>
<a href="mailto:Boost-users@lists.boost.org" \
target="_blank">Boost-users@lists.boost.org</a><br> <a \
href="https://lists.boost.org/mailman/listinfo.cgi/boost-users" rel="noreferrer" \
target="_blank">https://lists.boost.org/mailman/listinfo.cgi/boost-users</a><br> \
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" \
class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Quantitative analyst, \
Ph.D.<br>Blog: <a href="http://blog.audio-tk.com/" \
target="_blank">http://blog.audio-tk.com/</a><br>LinkedIn: <a \
href="http://www.linkedin.com/in/matthieubrucher" \
target="_blank">http://www.linkedin.com/in/matthieubrucher</a></div></div></div></div></div>




_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic