You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (JIRA)" <ji...@apache.org> on 2011/01/17 22:29:43 UTC

[jira] Created: (QPID-3004) Qpid does not compile cleanly with clang++ compiler (2.8)

Qpid does not compile cleanly with clang++ compiler (2.8)
---------------------------------------------------------

                 Key: QPID-3004
                 URL: https://issues.apache.org/jira/browse/QPID-3004
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker, C++ Client, C++ Clustering
    Affects Versions: 0.8
            Reporter: Andrew Stitcher


The Clang project C++ compiler has got to the point where it can now compile the qpid C++ code.

There are some advantages of using this compiler over the GCC compiler that we've previously been using for Unix compiles:
  Much better error messages:
  Faster compiles
and of course there are disadvantages too.

In general I believe there is no portable code just ported code, but code that compiles under the most environments will naturally be the most portable and I'd assert the most bug free too. Therefore I think it is to the benefit of the Qpid if we get the C++ code to compile under clang++ too.

Currently there appear to be a vast number of warnings of the form:

In file included from ../../src-working/cpp/src/qpid/client/SessionImpl.h:35:
./qpid/framing/AMQP_ClientOperations.h:54:30: warning: extra ';' inside a class [-pedantic]
        ConnectionHandler(){};
                             ^

[You'll note that there is an indicator of where in the line the error occurs too as well as just the line no. - the variable pitch font messes it up though]

And there are some smaller number of actual compile errors.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Closed] (QPID-3004) Qpid does not compile cleanly with clang++ compiler (2.8)

Posted by "Andrew Stitcher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Stitcher closed QPID-3004.
---------------------------------

    Resolution: Fixed

Checked in changes to allow c++ code to compile with clang 2.9

> Qpid does not compile cleanly with clang++ compiler (2.8)
> ---------------------------------------------------------
>
>                 Key: QPID-3004
>                 URL: https://issues.apache.org/jira/browse/QPID-3004
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker, C++ Client, C++ Clustering
>    Affects Versions: 0.8
>            Reporter: Andrew Stitcher
>              Labels: clang
>             Fix For: 0.11
>
>         Attachments: clang-errs.txt
>
>
> The Clang project C++ compiler has got to the point where it can now compile the qpid C++ code.
> There are some advantages of using this compiler over the GCC compiler that we've previously been using for Unix compiles:
>   Much better error messages:
>   Faster compiles
> and of course there are disadvantages too.
> In general I believe there is no portable code just ported code, but code that compiles under the most environments will naturally be the most portable and I'd assert the most bug free too. Therefore I think it is to the benefit of the Qpid if we get the C++ code to compile under clang++ too.
> Currently there appear to be a vast number of warnings of the form:
> In file included from ../../src-working/cpp/src/qpid/client/SessionImpl.h:35:
> ./qpid/framing/AMQP_ClientOperations.h:54:30: warning: extra ';' inside a class [-pedantic]
>         ConnectionHandler(){};
>                              ^
> [You'll note that there is an indicator of where in the line the error occurs too as well as just the line no. - the variable pitch font messes it up though]
> And there are some smaller number of actual compile errors.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-3004) Qpid does not compile cleanly with clang++ compiler (2.8)

Posted by "Andrew Stitcher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Stitcher updated QPID-3004:
----------------------------------

    Attachment:     (was: clang-errs.out)

> Qpid does not compile cleanly with clang++ compiler (2.8)
> ---------------------------------------------------------
>
>                 Key: QPID-3004
>                 URL: https://issues.apache.org/jira/browse/QPID-3004
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker, C++ Client, C++ Clustering
>    Affects Versions: 0.8
>            Reporter: Andrew Stitcher
>
> The Clang project C++ compiler has got to the point where it can now compile the qpid C++ code.
> There are some advantages of using this compiler over the GCC compiler that we've previously been using for Unix compiles:
>   Much better error messages:
>   Faster compiles
> and of course there are disadvantages too.
> In general I believe there is no portable code just ported code, but code that compiles under the most environments will naturally be the most portable and I'd assert the most bug free too. Therefore I think it is to the benefit of the Qpid if we get the C++ code to compile under clang++ too.
> Currently there appear to be a vast number of warnings of the form:
> In file included from ../../src-working/cpp/src/qpid/client/SessionImpl.h:35:
> ./qpid/framing/AMQP_ClientOperations.h:54:30: warning: extra ';' inside a class [-pedantic]
>         ConnectionHandler(){};
>                              ^
> [You'll note that there is an indicator of where in the line the error occurs too as well as just the line no. - the variable pitch font messes it up though]
> And there are some smaller number of actual compile errors.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Updated] (QPID-3004) Qpid does not compile cleanly with clang++ compiler (2.8)

Posted by "Andrew Stitcher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Stitcher updated QPID-3004:
----------------------------------

    Fix Version/s: 0.11

Checked in changes that allow qpid c++ code to compile with the clang 2.9 compiler. 

clang 2.8 actually has some bugs that prevent it from compiling our code.

> Qpid does not compile cleanly with clang++ compiler (2.8)
> ---------------------------------------------------------
>
>                 Key: QPID-3004
>                 URL: https://issues.apache.org/jira/browse/QPID-3004
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker, C++ Client, C++ Clustering
>    Affects Versions: 0.8
>            Reporter: Andrew Stitcher
>              Labels: clang
>             Fix For: 0.11
>
>         Attachments: clang-errs.txt
>
>
> The Clang project C++ compiler has got to the point where it can now compile the qpid C++ code.
> There are some advantages of using this compiler over the GCC compiler that we've previously been using for Unix compiles:
>   Much better error messages:
>   Faster compiles
> and of course there are disadvantages too.
> In general I believe there is no portable code just ported code, but code that compiles under the most environments will naturally be the most portable and I'd assert the most bug free too. Therefore I think it is to the benefit of the Qpid if we get the C++ code to compile under clang++ too.
> Currently there appear to be a vast number of warnings of the form:
> In file included from ../../src-working/cpp/src/qpid/client/SessionImpl.h:35:
> ./qpid/framing/AMQP_ClientOperations.h:54:30: warning: extra ';' inside a class [-pedantic]
>         ConnectionHandler(){};
>                              ^
> [You'll note that there is an indicator of where in the line the error occurs too as well as just the line no. - the variable pitch font messes it up though]
> And there are some smaller number of actual compile errors.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-3004) Qpid does not compile cleanly with clang++ compiler (2.8)

Posted by "Andrew Stitcher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Stitcher updated QPID-3004:
----------------------------------

    Attachment: clang-errs.txt

Attached version of clang errors with txt extension to get correct content type

> Qpid does not compile cleanly with clang++ compiler (2.8)
> ---------------------------------------------------------
>
>                 Key: QPID-3004
>                 URL: https://issues.apache.org/jira/browse/QPID-3004
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker, C++ Client, C++ Clustering
>    Affects Versions: 0.8
>            Reporter: Andrew Stitcher
>         Attachments: clang-errs.txt
>
>
> The Clang project C++ compiler has got to the point where it can now compile the qpid C++ code.
> There are some advantages of using this compiler over the GCC compiler that we've previously been using for Unix compiles:
>   Much better error messages:
>   Faster compiles
> and of course there are disadvantages too.
> In general I believe there is no portable code just ported code, but code that compiles under the most environments will naturally be the most portable and I'd assert the most bug free too. Therefore I think it is to the benefit of the Qpid if we get the C++ code to compile under clang++ too.
> Currently there appear to be a vast number of warnings of the form:
> In file included from ../../src-working/cpp/src/qpid/client/SessionImpl.h:35:
> ./qpid/framing/AMQP_ClientOperations.h:54:30: warning: extra ';' inside a class [-pedantic]
>         ConnectionHandler(){};
>                              ^
> [You'll note that there is an indicator of where in the line the error occurs too as well as just the line no. - the variable pitch font messes it up though]
> And there are some smaller number of actual compile errors.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-3004) Qpid does not compile cleanly with clang++ compiler (2.8)

Posted by "Andrew Stitcher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-3004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Stitcher updated QPID-3004:
----------------------------------

    Attachment: clang-errs.out

Output from clang compile

> Qpid does not compile cleanly with clang++ compiler (2.8)
> ---------------------------------------------------------
>
>                 Key: QPID-3004
>                 URL: https://issues.apache.org/jira/browse/QPID-3004
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker, C++ Client, C++ Clustering
>    Affects Versions: 0.8
>            Reporter: Andrew Stitcher
>
> The Clang project C++ compiler has got to the point where it can now compile the qpid C++ code.
> There are some advantages of using this compiler over the GCC compiler that we've previously been using for Unix compiles:
>   Much better error messages:
>   Faster compiles
> and of course there are disadvantages too.
> In general I believe there is no portable code just ported code, but code that compiles under the most environments will naturally be the most portable and I'd assert the most bug free too. Therefore I think it is to the benefit of the Qpid if we get the C++ code to compile under clang++ too.
> Currently there appear to be a vast number of warnings of the form:
> In file included from ../../src-working/cpp/src/qpid/client/SessionImpl.h:35:
> ./qpid/framing/AMQP_ClientOperations.h:54:30: warning: extra ';' inside a class [-pedantic]
>         ConnectionHandler(){};
>                              ^
> [You'll note that there is an indicator of where in the line the error occurs too as well as just the line no. - the variable pitch font messes it up though]
> And there are some smaller number of actual compile errors.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org