You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Dmitry Irlyanov (JIRA)" <ji...@apache.org> on 2006/11/30 12:44:21 UTC

[jira] Created: (HARMONY-2375) Incorrect icc_release builds

Incorrect icc_release builds
----------------------------

                 Key: HARMONY-2375
                 URL: http://issues.apache.org/jira/browse/HARMONY-2375
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: linux, icc, ia32
            Reporter: Dmitry Irlyanov
            Priority: Critical


icc_release builds can't run any program due to undefined symbol in libharmonyvm.so

example:

./java  -classpath . Hello

Failed to open JVM DLL:/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/harmonyvm(/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/libharmonyvm.so: undefined symbol: _ZN20BootstrapClassLoader13SetBCPElementEPKcP10apr_pool_t) 

This behavior is caused by excessive inline option in trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp

The patch has been tested on svn revision: 480581

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2375) Incorrect icc_release builds

Posted by "Dmitry Irlyanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2375?page=all ]

Dmitry Irlyanov updated HARMONY-2375:
-------------------------------------

    Attachment: icc_release_builds.patch

The patch has been tested on svn revision: 480581

> Incorrect icc_release builds
> ----------------------------
>
>                 Key: HARMONY-2375
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2375
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: linux, icc, ia32
>            Reporter: Dmitry Irlyanov
>            Priority: Critical
>         Attachments: icc_release_builds.patch
>
>
> icc_release builds can't run any program due to undefined symbol in libharmonyvm.so
> example:
> ./java  -classpath . Hello
> Failed to open JVM DLL:/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/harmonyvm(/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/libharmonyvm.so: undefined symbol: _ZN20BootstrapClassLoader13SetBCPElementEPKcP10apr_pool_t) 
> This behavior is caused by excessive inline option in trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp
> The patch has been tested on svn revision: 480581

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2375) Incorrect icc_release builds

Posted by "Naveen Neelakantam (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2375?page=comments#action_12456271 ] 
            
Naveen Neelakantam commented on HARMONY-2375:
---------------------------------------------

In my previous comment, replace all uses of "declared" with "defined".  Sorry about that.

> Incorrect icc_release builds
> ----------------------------
>
>                 Key: HARMONY-2375
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2375
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: linux, icc, ia32
>            Reporter: Dmitry Irlyanov
>         Assigned To: Alexey Varlamov
>            Priority: Critical
>         Attachments: icc_release_builds.patch
>
>
> icc_release builds can't run any program due to undefined symbol in libharmonyvm.so
> example:
> ./java  -classpath . Hello
> Failed to open JVM DLL:/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/harmonyvm(/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/libharmonyvm.so: undefined symbol: _ZN20BootstrapClassLoader13SetBCPElementEPKcP10apr_pool_t) 
> This behavior is caused by excessive inline option in trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp
> The patch has been tested on svn revision: 480581

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (HARMONY-2375) Incorrect icc_release builds

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2375?page=all ]

Alexey Varlamov closed HARMONY-2375.
------------------------------------


I agree about invalid use. And even now when the method is private, I'm pretty sure using "inline" pragma for it gives zero benefit. Anyway the issue is fixed, closing.

> Incorrect icc_release builds
> ----------------------------
>
>                 Key: HARMONY-2375
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2375
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: linux, icc, ia32
>            Reporter: Dmitry Irlyanov
>         Assigned To: Alexey Varlamov
>            Priority: Critical
>         Attachments: icc_release_builds.patch
>
>
> icc_release builds can't run any program due to undefined symbol in libharmonyvm.so
> example:
> ./java  -classpath . Hello
> Failed to open JVM DLL:/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/harmonyvm(/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/libharmonyvm.so: undefined symbol: _ZN20BootstrapClassLoader13SetBCPElementEPKcP10apr_pool_t) 
> This behavior is caused by excessive inline option in trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp
> The patch has been tested on svn revision: 480581

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2375) Incorrect icc_release builds

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2375?page=comments#action_12454621 ] 
            
Geir Magnusson Jr commented on HARMONY-2375:
--------------------------------------------

before we commit this, lets come to an agreement about what the problem is.  I think this reflects a bug with the intel compiler

> Incorrect icc_release builds
> ----------------------------
>
>                 Key: HARMONY-2375
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2375
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: linux, icc, ia32
>            Reporter: Dmitry Irlyanov
>         Assigned To: Alexey Varlamov
>            Priority: Critical
>         Attachments: icc_release_builds.patch
>
>
> icc_release builds can't run any program due to undefined symbol in libharmonyvm.so
> example:
> ./java  -classpath . Hello
> Failed to open JVM DLL:/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/harmonyvm(/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/libharmonyvm.so: undefined symbol: _ZN20BootstrapClassLoader13SetBCPElementEPKcP10apr_pool_t) 
> This behavior is caused by excessive inline option in trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp
> The patch has been tested on svn revision: 480581

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2375) Incorrect icc_release builds

Posted by "Naveen Neelakantam (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2375?page=comments#action_12456270 ] 
            
Naveen Neelakantam commented on HARMONY-2375:
---------------------------------------------

It is not a compiler bug.  It was an invalid use of the inline keyword.  See http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-9.7

The issue was that the method BootstrapClassLoader::SetBCPElement was declared in vm/vmcore/src/class_support/classloader.cpp but referenced in vm/vmcore/src/init/vm_init.cpp.  This will break on a lot of compilers (for example, it was breaking the release build with gcc 3.4.6).

The fix used in r482618 got rid of the reference to SetBCPElement in vm_init.cpp.  However, this problem could creep up again because  the inline keyword is still being used in a .cpp file.  Right now it is safe because the methods being declared with the inline keyword are private.

Regardless, the fix did solve my problem.

> Incorrect icc_release builds
> ----------------------------
>
>                 Key: HARMONY-2375
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2375
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: linux, icc, ia32
>            Reporter: Dmitry Irlyanov
>         Assigned To: Alexey Varlamov
>            Priority: Critical
>         Attachments: icc_release_builds.patch
>
>
> icc_release builds can't run any program due to undefined symbol in libharmonyvm.so
> example:
> ./java  -classpath . Hello
> Failed to open JVM DLL:/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/harmonyvm(/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/libharmonyvm.so: undefined symbol: _ZN20BootstrapClassLoader13SetBCPElementEPKcP10apr_pool_t) 
> This behavior is caused by excessive inline option in trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp
> The patch has been tested on svn revision: 480581

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (HARMONY-2375) Incorrect icc_release builds

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2375?page=all ]

Alexey Varlamov reassigned HARMONY-2375:
----------------------------------------

    Assignee: Alexey Varlamov

> Incorrect icc_release builds
> ----------------------------
>
>                 Key: HARMONY-2375
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2375
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: linux, icc, ia32
>            Reporter: Dmitry Irlyanov
>         Assigned To: Alexey Varlamov
>            Priority: Critical
>         Attachments: icc_release_builds.patch
>
>
> icc_release builds can't run any program due to undefined symbol in libharmonyvm.so
> example:
> ./java  -classpath . Hello
> Failed to open JVM DLL:/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/harmonyvm(/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/libharmonyvm.so: undefined symbol: _ZN20BootstrapClassLoader13SetBCPElementEPKcP10apr_pool_t) 
> This behavior is caused by excessive inline option in trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp
> The patch has been tested on svn revision: 480581

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (HARMONY-2375) Incorrect icc_release builds

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2375?page=all ]

Alexey Varlamov resolved HARMONY-2375.
--------------------------------------

    Resolution: Fixed

Fixed at r482618 by declaring BootstrapClassLoader::SetBCPElement private  member.

Please verify it resolved your problem.

> Incorrect icc_release builds
> ----------------------------
>
>                 Key: HARMONY-2375
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2375
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: linux, icc, ia32
>            Reporter: Dmitry Irlyanov
>         Assigned To: Alexey Varlamov
>            Priority: Critical
>         Attachments: icc_release_builds.patch
>
>
> icc_release builds can't run any program due to undefined symbol in libharmonyvm.so
> example:
> ./java  -classpath . Hello
> Failed to open JVM DLL:/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/harmonyvm(/drlvm/trunk/build/lnx_ia32_icc_release/deploy/jre/bin/default/libharmonyvm.so: undefined symbol: _ZN20BootstrapClassLoader13SetBCPElementEPKcP10apr_pool_t) 
> This behavior is caused by excessive inline option in trunk\working_vm\vm\vmcore\src\class_support\classloader.cpp
> The patch has been tested on svn revision: 480581

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira