You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "liu ming (JIRA)" <ji...@apache.org> on 2016/03/07 00:00:41 UTC

[jira] [Commented] (TRAFODION-1868) Compatibility with gcc 4.8

    [ https://issues.apache.org/jira/browse/TRAFODION-1868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15182385#comment-15182385 ] 

liu ming commented on TRAFODION-1868:
-------------------------------------

there are multiple issues to build using gcc 4.8.
1. Werror
  gcc 4.8 is more strict than gcc 4.4. There are several programming issues that not reported as warning by 4.4
  - declare and init a var , but never use it anymore
  - assign 0 to a pointer var
  - etc.
2. syntax checking
  gcc 4.8 will report error for some code like
  for ( int idx = 0; idx < 100; idx++)
  {
    ANewClass idx = new ANewClass();
    ...
  need to fix these issues. 
3. boost conflict with c++11
4. must use -Xlinker --copy-dt-needed-entries, otherwise linker will not find all required so automatically.

These are some issues I met, issues related to item 1 are too many. I temply remove -Werror to overcome it. and make a build. But we need to fix all issues related to item 1.

There are so many changes to many src code. So I suggest to do this increamentally. It is easier to test, and easier for others to do code review.


> Compatibility with gcc 4.8
> --------------------------
>
>                 Key: TRAFODION-1868
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-1868
>             Project: Apache Trafodion
>          Issue Type: Bug
>            Reporter: Steve Varnau
>            Priority: Minor
>
> Current code will not compile with gcc 4.8. That is the default version on RH/CentOS 7.  This is needed to move to a development environment on CentOS 7.
> There is a 4.4 version of gcc available on 7. The RPM package is compat-gcc-44, I have not tried building on 7.x with older compiler, but will likely work.
> This is not urgent at this time, but we should move toward enabling a newer dev environment.  But this needs to be coordinated with with versions of OS are supported for runtime use of trafodion.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)