You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ivan Popov (JIRA)" <ji...@apache.org> on 2007/03/19 17:15:32 UTC
[jira] Created: (HARMONY-3429) [jdktools] support debug and release
build modes in jdktools
[jdktools] support debug and release build modes in jdktools
------------------------------------------------------------
Key: HARMONY-3429
URL: https://issues.apache.org/jira/browse/HARMONY-3429
Project: Harmony
Issue Type: Improvement
Components: JDK
Environment: Windows, Linux
Reporter: Ivan Popov
Currently build infrastructure for jdktools component does not support debug and release builds on both java and native code. Different modules build native code in a different ways with different compiler options. This makes it difficult to debug native code and fix bugs.
Build scripts of jdktools component should be updated to support debug and release build modes according to "hy.cfg" property, similar to classlib component.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-3429) [jdktools] support debug and
release build modes in jdktools
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko reassigned HARMONY-3429:
----------------------------------------
Assignee: Alexey Petrenko
> [jdktools] support debug and release build modes in jdktools
> ------------------------------------------------------------
>
> Key: HARMONY-3429
> URL: https://issues.apache.org/jira/browse/HARMONY-3429
> Project: Harmony
> Issue Type: Improvement
> Components: JDK
> Environment: Windows, Linux
> Reporter: Ivan Popov
> Assigned To: Alexey Petrenko
> Attachments: federated_build.patch, fix_jpda_compile_error.patch, jdktools_build.patch
>
>
> Currently build infrastructure for jdktools component does not support debug and release builds on both java and native code. Different modules build native code in a different ways with different compiler options. This makes it difficult to debug native code and fix bugs.
> Build scripts of jdktools component should be updated to support debug and release build modes according to "hy.cfg" property, similar to classlib component.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3429) [jdktools] support debug and
release build modes in jdktools
Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482191 ]
Ivan Popov commented on HARMONY-3429:
-------------------------------------
Sorry for mistype. Correct commands to create debug or release HDK build are the following:
svn checkout https://svn.apache.org/repos/asf/harmony/enhanced/trunk
cd trunk
ant -Dhy.cfg=debug
or
svn checkout https://svn.apache.org/repos/asf/harmony/enhanced/trunk
cd trunk
ant -Dhy.cfg=release
> [jdktools] support debug and release build modes in jdktools
> ------------------------------------------------------------
>
> Key: HARMONY-3429
> URL: https://issues.apache.org/jira/browse/HARMONY-3429
> Project: Harmony
> Issue Type: Improvement
> Components: JDK
> Environment: Windows, Linux
> Reporter: Ivan Popov
> Attachments: federated_build.patch, jdktools_build.patch
>
>
> Currently build infrastructure for jdktools component does not support debug and release builds on both java and native code. Different modules build native code in a different ways with different compiler options. This makes it difficult to debug native code and fix bugs.
> Build scripts of jdktools component should be updated to support debug and release build modes according to "hy.cfg" property, similar to classlib component.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3429) [jdktools] support debug and release
build modes in jdktools
Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Popov updated HARMONY-3429:
--------------------------------
Attachment: jdktools_build.patch
This patch "jdktools_build.patch" updates build scripts in jdktools component to build in release or debug mode according to property "hy.cfg", which can be set to "release" or "debug" value. By default "debug" value is used, similar to classlib.
Mostly make files for building native code were changed, and they now support similar set of compiler options according to chosen build mode. To check updated build run jdktools tests for both release and debug binaries, you should get the similar results (all tests passed):
cd working_jdktools
ant build -Dhy.cfg=release
ant test
cd working_jdktools
ant build -Dhy.cfg=debug
ant test
Before applying this patch on Linux one needs to fix CR-LF problems in a few build files:
cd working_jdktools
cd make
dos2unix defines.mak defines.mk rules.mak rules.mk
Otherwise, patch may be rejected. Anyway, it makes sense CR-LF problems in these files and set native line end property for them.
> [jdktools] support debug and release build modes in jdktools
> ------------------------------------------------------------
>
> Key: HARMONY-3429
> URL: https://issues.apache.org/jira/browse/HARMONY-3429
> Project: Harmony
> Issue Type: Improvement
> Components: JDK
> Environment: Windows, Linux
> Reporter: Ivan Popov
> Attachments: jdktools_build.patch
>
>
> Currently build infrastructure for jdktools component does not support debug and release builds on both java and native code. Different modules build native code in a different ways with different compiler options. This makes it difficult to debug native code and fix bugs.
> Build scripts of jdktools component should be updated to support debug and release build modes according to "hy.cfg" property, similar to classlib component.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-3429) [jdktools] support debug and release
build modes in jdktools
Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Popov closed HARMONY-3429.
-------------------------------
Thanks, Alexey. After HARMONY-3529 was also fixed the build appeared working well.
Closing this issue.
> [jdktools] support debug and release build modes in jdktools
> ------------------------------------------------------------
>
> Key: HARMONY-3429
> URL: https://issues.apache.org/jira/browse/HARMONY-3429
> Project: Harmony
> Issue Type: Improvement
> Components: JDK
> Environment: Windows, Linux
> Reporter: Ivan Popov
> Assigned To: Alexey Petrenko
> Attachments: federated_build.patch, fix_jpda_compile_error.patch, jdktools_build.patch
>
>
> Currently build infrastructure for jdktools component does not support debug and release builds on both java and native code. Different modules build native code in a different ways with different compiler options. This makes it difficult to debug native code and fix bugs.
> Build scripts of jdktools component should be updated to support debug and release build modes according to "hy.cfg" property, similar to classlib component.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3429) [jdktools] support debug and release
build modes in jdktools
Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Popov updated HARMONY-3429:
--------------------------------
Attachment: jdktools_build.patch
I'm attaching new version of 'jdktools_build.patch" which also supports building jdktools on Windows/x86_64 platform. Patch for federated build remain the same.
> [jdktools] support debug and release build modes in jdktools
> ------------------------------------------------------------
>
> Key: HARMONY-3429
> URL: https://issues.apache.org/jira/browse/HARMONY-3429
> Project: Harmony
> Issue Type: Improvement
> Components: JDK
> Environment: Windows, Linux
> Reporter: Ivan Popov
> Attachments: federated_build.patch, jdktools_build.patch
>
>
> Currently build infrastructure for jdktools component does not support debug and release builds on both java and native code. Different modules build native code in a different ways with different compiler options. This makes it difficult to debug native code and fix bugs.
> Build scripts of jdktools component should be updated to support debug and release build modes according to "hy.cfg" property, similar to classlib component.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3429) [jdktools] support debug and release
build modes in jdktools
Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Popov updated HARMONY-3429:
--------------------------------
Attachment: federated_build.patch
This patch "federated_build.patch" updates federated build to enable creating debug and release Harmony HDK builds according to "hy.cfg" property. It is possible to set "debug" or "release" value to this property. Now, to create debug or release HDK build:
svn checkout https://svn.apache.org/repos/asf/harmony/enhanced/trunk
cd trunk
ant hy.cfg=debug
or
svn checkout https://svn.apache.org/repos/asf/harmony/enhanced/trunk
cd trunk
ant hy.cfg=release
Default value is "release" to preserve compatibility with current behavior and don't break any automated builds and testing. So, the old commands for building HDK will produce release build:
svn checkout https://svn.apache.org/repos/asf/harmony/enhanced/trunk
cd trunk
ant
> [jdktools] support debug and release build modes in jdktools
> ------------------------------------------------------------
>
> Key: HARMONY-3429
> URL: https://issues.apache.org/jira/browse/HARMONY-3429
> Project: Harmony
> Issue Type: Improvement
> Components: JDK
> Environment: Windows, Linux
> Reporter: Ivan Popov
> Attachments: federated_build.patch, jdktools_build.patch
>
>
> Currently build infrastructure for jdktools component does not support debug and release builds on both java and native code. Different modules build native code in a different ways with different compiler options. This makes it difficult to debug native code and fix bugs.
> Build scripts of jdktools component should be updated to support debug and release build modes according to "hy.cfg" property, similar to classlib component.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3429) [jdktools] support debug and release
build modes in jdktools
Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Popov updated HARMONY-3429:
--------------------------------
Patch Info: [Patch Available]
I've tested updated scripts on Windws/x86 and Linux/x86/x86_64/ia64 and they appeared working well. I was able to create debug and release HDK builds and successfully run jdktools tests.
> [jdktools] support debug and release build modes in jdktools
> ------------------------------------------------------------
>
> Key: HARMONY-3429
> URL: https://issues.apache.org/jira/browse/HARMONY-3429
> Project: Harmony
> Issue Type: Improvement
> Components: JDK
> Environment: Windows, Linux
> Reporter: Ivan Popov
> Attachments: federated_build.patch, jdktools_build.patch
>
>
> Currently build infrastructure for jdktools component does not support debug and release builds on both java and native code. Different modules build native code in a different ways with different compiler options. This makes it difficult to debug native code and fix bugs.
> Build scripts of jdktools component should be updated to support debug and release build modes according to "hy.cfg" property, similar to classlib component.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3429) [jdktools] support debug and release
build modes in jdktools
Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Popov updated HARMONY-3429:
--------------------------------
Attachment: (was: jdktools_build.patch)
> [jdktools] support debug and release build modes in jdktools
> ------------------------------------------------------------
>
> Key: HARMONY-3429
> URL: https://issues.apache.org/jira/browse/HARMONY-3429
> Project: Harmony
> Issue Type: Improvement
> Components: JDK
> Environment: Windows, Linux
> Reporter: Ivan Popov
> Attachments: federated_build.patch
>
>
> Currently build infrastructure for jdktools component does not support debug and release builds on both java and native code. Different modules build native code in a different ways with different compiler options. This makes it difficult to debug native code and fix bugs.
> Build scripts of jdktools component should be updated to support debug and release build modes according to "hy.cfg" property, similar to classlib component.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-3429) [jdktools] support debug and
release build modes in jdktools
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko resolved HARMONY-3429.
--------------------------------------
Resolution: Fixed
The patches have been applied.
Please verify.
> [jdktools] support debug and release build modes in jdktools
> ------------------------------------------------------------
>
> Key: HARMONY-3429
> URL: https://issues.apache.org/jira/browse/HARMONY-3429
> Project: Harmony
> Issue Type: Improvement
> Components: JDK
> Environment: Windows, Linux
> Reporter: Ivan Popov
> Assigned To: Alexey Petrenko
> Attachments: federated_build.patch, fix_jpda_compile_error.patch, jdktools_build.patch
>
>
> Currently build infrastructure for jdktools component does not support debug and release builds on both java and native code. Different modules build native code in a different ways with different compiler options. This makes it difficult to debug native code and fix bugs.
> Build scripts of jdktools component should be updated to support debug and release build modes according to "hy.cfg" property, similar to classlib component.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3429) [jdktools] support debug and release
build modes in jdktools
Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Popov updated HARMONY-3429:
--------------------------------
Attachment: fix_jpda_compile_error.patch
Attached patch "fix_jpda_compile_error.patch" fixes compilation error in JPDA module appeared on Windows/x86_64 platform.
> [jdktools] support debug and release build modes in jdktools
> ------------------------------------------------------------
>
> Key: HARMONY-3429
> URL: https://issues.apache.org/jira/browse/HARMONY-3429
> Project: Harmony
> Issue Type: Improvement
> Components: JDK
> Environment: Windows, Linux
> Reporter: Ivan Popov
> Attachments: federated_build.patch, fix_jpda_compile_error.patch, jdktools_build.patch
>
>
> Currently build infrastructure for jdktools component does not support debug and release builds on both java and native code. Different modules build native code in a different ways with different compiler options. This makes it difficult to debug native code and fix bugs.
> Build scripts of jdktools component should be updated to support debug and release build modes according to "hy.cfg" property, similar to classlib component.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.