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

Nathan Beyer commented on THRIFT-1673:
--------------------------------------

The the commit associated with this issue, I'm not able to build on OS X with 
Ruby 1.9.3-p194. I can build on OS X with Ruby 1.8.7-p370. Here's the output 
I'm seeing -

{code}
compiling binary_protocol_accelerated.c
cc1: warnings being treated as errors
binary_protocol_accelerated.c: In function ‘write_string_direct’:
binary_protocol_accelerated.c:83: warning: implicit conversion shortens 64-bit 
value into a 32-bit value
binary_protocol_accelerated.c: In function 
‘rb_thrift_binary_proto_write_double’:
binary_protocol_accelerated.c:203: warning: ISO C90 forbids mixed declarations 
and code
binary_protocol_accelerated.c: In function 
‘rb_thrift_binary_proto_write_string’:
binary_protocol_accelerated.c:215: warning: ISO C90 forbids mixed declarations 
and code
binary_protocol_accelerated.c: In function ‘read_i64_direct’:
binary_protocol_accelerated.c:252: warning: ISO C90 forbids mixed declarations 
and code
binary_protocol_accelerated.c: In function ‘Init_binary_protocol_accelerated’:
binary_protocol_accelerated.c:389: warning: implicit conversion shortens 64-bit 
value into a 32-bit value
binary_protocol_accelerated.c:390: warning: implicit conversion shortens 64-bit 
value into a 32-bit value
binary_protocol_accelerated.c:391: warning: implicit conversion shortens 64-bit 
value into a 32-bit value
binary_protocol_accelerated.c:393: warning: ISO C90 forbids mixed declarations 
and code
make: *** [binary_protocol_accelerated.o] Error 1
rake aborted!
Command failed with status (2): [make...]
{code}

When I remove the changes made in this bug it compiles fine. Any thoughts?
                
> Ruby compile flags for extension for multi arch builds (os x)
> -------------------------------------------------------------
>
>                 Key: THRIFT-1673
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1673
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.9
>         Environment: os x
>            Reporter: Jake Farrell
>            Assignee: Jake Farrell
>             Fix For: 0.9
>
>
> ld: warning: ld: warning: ignoring file thrift_native.o, file was built for 
> unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 
> 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked 
> (i386): thrift_native.oignoring file struct.o, file was built for unsupported 
> file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 
> 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): struct.o

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to