You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "ryan rawson (JIRA)" <ji...@apache.org> on 2009/02/20 07:45:01 UTC

[jira] Created: (THRIFT-346) Can't build compiler without boost

Can't build compiler without boost
----------------------------------

                 Key: THRIFT-346
                 URL: https://issues.apache.org/jira/browse/THRIFT-346
             Project: Thrift
          Issue Type: Bug
          Components: Compiler (C++)
    Affects Versions: 0.1
         Environment:  - any -
            Reporter: ryan rawson


To build the thrift compiler, one has to use ./configure to create the Makefile - but configure requires boost to be successful. 

The compiler itself doesn't require boost however.  

Building and installing boost is a large dependency - 246MB of source & docs, with a specialized build system to boot.  A build from source would take a long time.

The compiler should have it's own configure.

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


[jira] Commented: (THRIFT-346) Can't build compiler without boost

Posted by "Ben Maurer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675779#action_12675779 ] 

Ben Maurer commented on THRIFT-346:
-----------------------------------

Just FYI, thrift only needs boost headers -- you can install without building. Also, most distros have a package for boost.

> Can't build compiler without boost
> ----------------------------------
>
>                 Key: THRIFT-346
>                 URL: https://issues.apache.org/jira/browse/THRIFT-346
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (C++)
>    Affects Versions: 0.1
>         Environment:  - any -
>            Reporter: ryan rawson
>
> To build the thrift compiler, one has to use ./configure to create the Makefile - but configure requires boost to be successful. 
> The compiler itself doesn't require boost however.  
> Building and installing boost is a large dependency - 246MB of source & docs, with a specialized build system to boot.  A build from source would take a long time.
> The compiler should have it's own configure.

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


[jira] Commented: (THRIFT-346) Can't build compiler without boost

Posted by "ryan rawson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675268#action_12675268 ] 

ryan rawson commented on THRIFT-346:
------------------------------------

gah, I didn't see that subdir.

Alas I've had to break and and (shudder) install mac ports (building boost =
not feasable).

It would be nice if there was a non-cpp compiler.




> Can't build compiler without boost
> ----------------------------------
>
>                 Key: THRIFT-346
>                 URL: https://issues.apache.org/jira/browse/THRIFT-346
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (C++)
>    Affects Versions: 0.1
>         Environment:  - any -
>            Reporter: ryan rawson
>
> To build the thrift compiler, one has to use ./configure to create the Makefile - but configure requires boost to be successful. 
> The compiler itself doesn't require boost however.  
> Building and installing boost is a large dependency - 246MB of source & docs, with a specialized build system to boot.  A build from source would take a long time.
> The compiler should have it's own configure.

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


[jira] Commented: (THRIFT-346) Can't build compiler without boost

Posted by "Michael Greene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675276#action_12675276 ] 

Michael Greene commented on THRIFT-346:
---------------------------------------

As a follow-up for anyone exploring this dependency, the Ruby compiler also uses boost/tokenizer and the SmallTalk compiler #includes boost/tokenizer but doesn't actually use it.

If I'm reading Google and t_field.h correctly, the only thing that code is used for in the common part of the compilers is to convert an int32 field key to its string representation.

At various points in time there have been works on a Python and on an ANTLR based compiler for Thrift.  I'm not sure if anyone is working on these at the moment.

> Can't build compiler without boost
> ----------------------------------
>
>                 Key: THRIFT-346
>                 URL: https://issues.apache.org/jira/browse/THRIFT-346
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (C++)
>    Affects Versions: 0.1
>         Environment:  - any -
>            Reporter: ryan rawson
>
> To build the thrift compiler, one has to use ./configure to create the Makefile - but configure requires boost to be successful. 
> The compiler itself doesn't require boost however.  
> Building and installing boost is a large dependency - 246MB of source & docs, with a specialized build system to boot.  A build from source would take a long time.
> The compiler should have it's own configure.

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


[jira] Commented: (THRIFT-346) Can't build compiler without boost

Posted by "Michael Greene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675261#action_12675261 ] 

Michael Greene commented on THRIFT-346:
---------------------------------------

Boost is required to build the compiler.  You only need the appropriate boost libraries though, as you do for any of the Thrift components that use Boost.  246MB is unnecessarily large.

The compiler uses lexical_cast, as you can see here:
svn.apache.org/repos/asf/incubator/thrift/trunk/compiler/cpp/src/parse/t_field.h

Not requiring boost for the compiler would be nice, but I'm not really a C++ developer and am not aware of more lightweight alternatives.

> Can't build compiler without boost
> ----------------------------------
>
>                 Key: THRIFT-346
>                 URL: https://issues.apache.org/jira/browse/THRIFT-346
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (C++)
>    Affects Versions: 0.1
>         Environment:  - any -
>            Reporter: ryan rawson
>
> To build the thrift compiler, one has to use ./configure to create the Makefile - but configure requires boost to be successful. 
> The compiler itself doesn't require boost however.  
> Building and installing boost is a large dependency - 246MB of source & docs, with a specialized build system to boot.  A build from source would take a long time.
> The compiler should have it's own configure.

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


[jira] Closed: (THRIFT-346) Can't build compiler without boost

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

David Reiss closed THRIFT-346.
------------------------------

    Resolution: Invalid

> Can't build compiler without boost
> ----------------------------------
>
>                 Key: THRIFT-346
>                 URL: https://issues.apache.org/jira/browse/THRIFT-346
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (C++)
>    Affects Versions: 0.1
>         Environment:  - any -
>            Reporter: ryan rawson
>
> To build the thrift compiler, one has to use ./configure to create the Makefile - but configure requires boost to be successful. 
> The compiler itself doesn't require boost however.  
> Building and installing boost is a large dependency - 246MB of source & docs, with a specialized build system to boot.  A build from source would take a long time.
> The compiler should have it's own configure.

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