You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Michael Lum (JIRA)" <ji...@apache.org> on 2010/08/27 19:22:54 UTC

[jira] Created: (THRIFT-874) Script and document Windows build process

Script and document Windows build process
-----------------------------------------

                 Key: THRIFT-874
                 URL: https://issues.apache.org/jira/browse/THRIFT-874
             Project: Thrift
          Issue Type: Task
         Environment: Target: MinGW + MSYS on Windows XP
            Reporter: Michael Lum
            Assignee: Michael Lum
            Priority: Minor


1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
2. Investigate scripting the build as a contrib/ item.
3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Commented: (THRIFT-874) Script and document Windows build process

Posted by "Roger Meier (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904305#action_12904305 ] 

Roger Meier commented on THRIFT-874:
------------------------------------

Hi David, to your questions:
(1) Do you have Wine installed? *Yes*
(2) What does configure output for you after "checking whether we are cross compiling...". For me the answers are "yes" and "no", respectively.  *yes* 
see http://www.bufferoverflow.ch/hudson/job/Thrift-mingw32/11/console for details (lines starting with a + are command executed on command line)

I do not have a _compiler/cpp/.libs/thrift.exe_ 

>From my perspective the attached [^mingw-cross-compile.sh] is also sufficient, as described above.
Here is the build using that shell script: http://www.bufferoverflow.ch/hudson/job/Thrift-mingw32_mingw-cross-compile.sh/3/console


> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: mingw-cross-compile.sh, v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v6-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Updated: (THRIFT-874) Script and document Windows build process

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

Roger Meier updated THRIFT-874:
-------------------------------

    Component/s: Deployment
                 Build Process

> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>          Components: Build Process, Deployment
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: mingw-cross-compile.sh, v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v6-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v7-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Commented: (THRIFT-874) Script and document Windows build process

Posted by "David Reiss (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904319#action_12904319 ] 

David Reiss commented on THRIFT-874:
------------------------------------

Do you know if you have binfmt-misc set up for wine?  When I run

{noformat}
$ echo 'int main() { return 0; }' > conftest.c
$ i586-mingw32msvc-gcc -o conftest.exe  -DMINGW  conftest.c
$ ./conftest.exe
{noformat}

conftest spits out some warning messages, but it exits successfully.  That's why it thinks it is not a cross compile.  What happens when you run those commands?

> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: mingw-cross-compile.sh, v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v6-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Commented: (THRIFT-874) Script and document Windows build process

Posted by "Roger Meier (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904590#action_12904590 ] 

Roger Meier commented on THRIFT-874:
------------------------------------

Great! I like solutions which are able to run in different environments.

> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: mingw-cross-compile.sh, v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v6-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v7-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Commented: (THRIFT-874) Script and document Windows build process

Posted by "David Reiss (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904015#action_12904015 ] 

David Reiss commented on THRIFT-874:
------------------------------------

Ah, thanks.  I was thinking to strip it, but I didn't know how.

I think leaving this open for Windows users who want to hack on the code generator is a good idea.

> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Updated: (THRIFT-874) Script and document Windows build process

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

David Reiss updated THRIFT-874:
-------------------------------

    Attachment: v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch

> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Commented: (THRIFT-874) Script and document Windows build process

Posted by "David Reiss (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904281#action_12904281 ] 

David Reiss commented on THRIFT-874:
------------------------------------

Hey Roger, your version isn't working for me.  Two questions.  (1) Do you have Wine installed?  (2) What does configure output for you after "checking whether we are cross compiling...".  For me the answers are "yes" and "no", respectively.

On closer inspection, I think what's happening to me is that compiler/cpp/thrift.exe is a libtool wrapper script for compiler/cpp/.libs/thrift.exe .

It doesn't look like "make install" did a strip for me.  I'm attaching a version that pulls thrift.exe directly out of libtool's .libs dir.  Can you let me know if it works for you?  If not, I'll probably have to write an even hackier version that grabs .libs/thrift.exe if present and thrift.exe if not.

> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: mingw-cross-compile.sh, v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Commented: (THRIFT-874) Script and document Windows build process

Posted by "David Reiss (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904035#action_12904035 ] 

David Reiss commented on THRIFT-874:
------------------------------------

Hrm.  It looks like I switched BUILD and HOST.  After correcting them, the binary appears to be automatically stripped.  Not sure what happened there.  Can you try out this new patch?  I put a binary up at http://people.apache.org/~dreiss/thrift-e0db3ee-r2.exe , and it appears to work under Wine.

> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Updated: (THRIFT-874) Script and document Windows build process

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

David Reiss updated THRIFT-874:
-------------------------------

    Attachment: v7-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch

> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: mingw-cross-compile.sh, v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v6-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v7-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Commented: (THRIFT-874) Script and document Windows build process

Posted by "David Reiss (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904511#action_12904511 ] 

David Reiss commented on THRIFT-874:
------------------------------------

Okay, in that second job, autoconf does not detect that it's a cross-compile, just like for me.

I think I found the problem with .libs:

http://www.bufferoverflow.ch/hudson/job/Print%20software%20versions/1/console

You're using libtool 1.5.26.  I'm on 2.2.6b.

{noformat}
$ libtoolize --version
libtoolize (GNU libtool) 2.2.6b
Written by Gary V. Vaughan <ga...@gnu.org>, 2003

Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ which libtoolize
/usr/bin/libtoolize
$ dpkg -S /usr/bin/libto
libtool     libtoolize  
$ dpkg -S /usr/bin/libtoolize 
libtool: /usr/bin/libtoolize
$ apt-cache show libtool
Package: libtool
Priority: optional
Section: devel
Installed-Size: 1332
Maintainer: Ubuntu Developers <ub...@lists.ubuntu.com>
Original-Maintainer: Kurt Roeckx <ku...@roeckx.be>
Architecture: i386
Version: 2.2.6b-2ubuntu1
[...]
{noformat}

I'm guessing that's it.  It looks like Lenny has a much older version than Lucid.  2.2.6b is in Lenny backports, FWIW.

I'll just make a version of the script that works with both the older and newer version.

> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: mingw-cross-compile.sh, v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v6-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Updated: (THRIFT-874) Script and document Windows build process

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

David Reiss updated THRIFT-874:
-------------------------------

    Attachment: v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch
                v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch
                v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch

> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Commented: (THRIFT-874) Script and document Windows build process

Posted by "Roger Meier (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903939#action_12903939 ] 

Roger Meier commented on THRIFT-874:
------------------------------------

Great!

Work's fine for Windows XP, built with mingw on Debian Lenny!

it probably makes sense to strip the binary within the _contrib/mingw-cross-compile.sh_ script by doing a
{code}
i586-mingw32msvc-strip compiler/cpp/thrift.exe
{code}
bevore make it available as download.



> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Updated: (THRIFT-874) Script and document Windows build process

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

David Reiss updated THRIFT-874:
-------------------------------

    Attachment: v6-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch

> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: mingw-cross-compile.sh, v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v6-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Commented: (THRIFT-874) Script and document Windows build process

Posted by "Roger Meier (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904332#action_12904332 ] 

Roger Meier commented on THRIFT-874:
------------------------------------

{code}
$ echo 'int main() { return 0; }' > conftest.c
$ i586-mingw32msvc-gcc -o conftest.exe  -DMINGW  conftest.c
$ ./conftest.exe
$ file conftest.exe 
conftest.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit
$ wine conftest.exe
{code}
just quiet...

{code}
$ cat /proc/sys/fs/binfmt_misc/
cli        jar        python2.4  python2.5  register   status     wine
$ cat /proc/sys/fs/binfmt_misc/wine 
enabled
interpreter /usr/share/binfmt-support/run-detectors
flags: 
offset 0
magic 4d5a
{code}
that's all

> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: mingw-cross-compile.sh, v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v6-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Updated: (THRIFT-874) Script and document Windows build process

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

Roger Meier updated THRIFT-874:
-------------------------------

    Attachment: mingw-cross-compile.sh

Thanks David!
your thrift-e0db3ee-r2.exe version seems to be broken, just a 14KB file...

I've attached my current version of *mingw-cross-compile.sh*. => everything is working fine on Windows XP.

It should be sufficient to set the host type to _i586-mingw32msvc_
build host, CC and CXX is auto detected if cross compiler is installed correctly.

strip is usually done on _make install_ , in that case we probably have to do it from mingw-cross-compile.sh script



> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: mingw-cross-compile.sh, v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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


[jira] Commented: (THRIFT-874) Script and document Windows build process

Posted by "David Reiss (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904515#action_12904515 ] 

David Reiss commented on THRIFT-874:
------------------------------------

Okay, this version appears to work both for me and your Hudson setup.  LG?

http://www.bufferoverflow.ch/hudson/job/Thrift-mingw32-dreiss/2/console
http://gitweb.thrift-rpc.org/?p=thrift.git;a=blob;f=contrib/mingw-cross-compile.sh;h=9e8e054;hb=pri/dreiss/mingw-test

> Script and document Windows build process
> -----------------------------------------
>
>                 Key: THRIFT-874
>                 URL: https://issues.apache.org/jira/browse/THRIFT-874
>             Project: Thrift
>          Issue Type: Task
>         Environment: Target: MinGW + MSYS on Windows XP
>            Reporter: Michael Lum
>            Assignee: Michael Lum
>            Priority: Minor
>         Attachments: mingw-cross-compile.sh, v4-0015-THRIFT-874.-Include-missing-time.h-in-two-compiler-f.patch, v4-0016-THRIFT-874.-Disable-AX_SIGNED_RIGHT_SHIFT-for-cross-.patch, v4-0017-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v5-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v6-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch, v7-0001-THRIFT-874.-Add-script-to-cross-compile-the-Thrift-c.patch
>
>
> 1. Document how to build the Thrift code from source on a stock MinGW+MSYS install on Windows
> 2. Investigate scripting the build as a contrib/ item.
> 3. If #2 is successful, provide a way to generate a .MSI that installs the thrift compiler and runtime libraries.

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