You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Douglas Creager (JIRA)" <ji...@apache.org> on 2011/09/25 21:49:26 UTC
[jira] [Created] (AVRO-894) cmake build doesn't compile on Mac OS X
Lion
cmake build doesn't compile on Mac OS X Lion
--------------------------------------------
Key: AVRO-894
URL: https://issues.apache.org/jira/browse/AVRO-894
Project: Avro
Issue Type: Bug
Components: c
Affects Versions: 1.5.4, 1.6.0
Reporter: Douglas Creager
Assignee: Douglas Creager
When building using the cmake build scripts, the C library doesn't compile on Mac Lion:
{code}
$ make
Scanning dependencies of target avro-shared
[ 1%] Building C object src/CMakeFiles/avro-shared.dir/allocation.o
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/jb/gsl71lzj5z73bz39p6sj2glh0000gn/T//ccHcK1F2.out
make[2]: *** [src/CMakeFiles/avro-shared.dir/allocation.o] Error 255
make[1]: *** [src/CMakeFiles/avro-shared.dir/all] Error 2
make: *** [all] Error 2
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (AVRO-894) cmake build doesn't compile on Mac OS
X Lion
Posted by "Douglas Creager (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Douglas Creager resolved AVRO-894.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.6.0
> cmake build doesn't compile on Mac OS X Lion
> --------------------------------------------
>
> Key: AVRO-894
> URL: https://issues.apache.org/jira/browse/AVRO-894
> Project: Avro
> Issue Type: Bug
> Components: c
> Affects Versions: 1.5.4, 1.6.0
> Reporter: Douglas Creager
> Assignee: Douglas Creager
> Fix For: 1.6.0
>
> Attachments: 0001-Don-t-override-CMAKE_OSX_ARCHITECTURES-if-set.patch
>
>
> When building using the cmake build scripts, the C library doesn't compile on Mac Lion:
> {code}
> $ make
> Scanning dependencies of target avro-shared
> [ 1%] Building C object src/CMakeFiles/avro-shared.dir/allocation.o
> llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
> lipo: can't figure out the architecture type of: /var/folders/jb/gsl71lzj5z73bz39p6sj2glh0000gn/T//ccHcK1F2.out
> make[2]: *** [src/CMakeFiles/avro-shared.dir/allocation.o] Error 255
> make[1]: *** [src/CMakeFiles/avro-shared.dir/all] Error 2
> make: *** [all] Error 2
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (AVRO-894) cmake build doesn't compile on Mac OS X
Lion
Posted by "Douglas Creager (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Douglas Creager updated AVRO-894:
---------------------------------
Attachment: 0001-Don-t-override-CMAKE_OSX_ARCHITECTURES-if-set.patch
Here's a patch that changes the default value of {{CMAKE_OSX_ARCHITECTURES}} to not include ppc. It also only sets the default value if the user didn't provide an override value.
> cmake build doesn't compile on Mac OS X Lion
> --------------------------------------------
>
> Key: AVRO-894
> URL: https://issues.apache.org/jira/browse/AVRO-894
> Project: Avro
> Issue Type: Bug
> Components: c
> Affects Versions: 1.5.4, 1.6.0
> Reporter: Douglas Creager
> Assignee: Douglas Creager
> Attachments: 0001-Don-t-override-CMAKE_OSX_ARCHITECTURES-if-set.patch
>
>
> When building using the cmake build scripts, the C library doesn't compile on Mac Lion:
> {code}
> $ make
> Scanning dependencies of target avro-shared
> [ 1%] Building C object src/CMakeFiles/avro-shared.dir/allocation.o
> llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
> lipo: can't figure out the architecture type of: /var/folders/jb/gsl71lzj5z73bz39p6sj2glh0000gn/T//ccHcK1F2.out
> make[2]: *** [src/CMakeFiles/avro-shared.dir/allocation.o] Error 255
> make[1]: *** [src/CMakeFiles/avro-shared.dir/all] Error 2
> make: *** [all] Error 2
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AVRO-894) cmake build doesn't compile on Mac OS
X Lion
Posted by "Douglas Creager (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13114352#comment-13114352 ]
Douglas Creager commented on AVRO-894:
--------------------------------------
I've merged this into trunk, but I haven't merged into 1.5. The default build scripts for 1.5 and earlier is still autotools, which works fine on Lion. This bug on its own shouldn't make us need to cut a 1.5.5. But if we do make a 1.5.5, then I can merge this into the 1.5 branch.
> cmake build doesn't compile on Mac OS X Lion
> --------------------------------------------
>
> Key: AVRO-894
> URL: https://issues.apache.org/jira/browse/AVRO-894
> Project: Avro
> Issue Type: Bug
> Components: c
> Affects Versions: 1.5.4, 1.6.0
> Reporter: Douglas Creager
> Assignee: Douglas Creager
> Fix For: 1.6.0
>
> Attachments: 0001-Don-t-override-CMAKE_OSX_ARCHITECTURES-if-set.patch
>
>
> When building using the cmake build scripts, the C library doesn't compile on Mac Lion:
> {code}
> $ make
> Scanning dependencies of target avro-shared
> [ 1%] Building C object src/CMakeFiles/avro-shared.dir/allocation.o
> llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
> lipo: can't figure out the architecture type of: /var/folders/jb/gsl71lzj5z73bz39p6sj2glh0000gn/T//ccHcK1F2.out
> make[2]: *** [src/CMakeFiles/avro-shared.dir/allocation.o] Error 255
> make[1]: *** [src/CMakeFiles/avro-shared.dir/all] Error 2
> make: *** [all] Error 2
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AVRO-894) cmake build doesn't compile on Mac OS
X Lion
Posted by "Douglas Creager (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13114344#comment-13114344 ]
Douglas Creager commented on AVRO-894:
--------------------------------------
The problem is that we always set {{CMAKE_OSX_ARCHITECTURES}} to {{ppc;i386;x86_64}}, and the Lion Developer Tools don't include a ppc compiler anymore. If you try to set the variable to not include ppc, it gets overridden by our CMakeFiles.txt file.
> cmake build doesn't compile on Mac OS X Lion
> --------------------------------------------
>
> Key: AVRO-894
> URL: https://issues.apache.org/jira/browse/AVRO-894
> Project: Avro
> Issue Type: Bug
> Components: c
> Affects Versions: 1.5.4, 1.6.0
> Reporter: Douglas Creager
> Assignee: Douglas Creager
>
> When building using the cmake build scripts, the C library doesn't compile on Mac Lion:
> {code}
> $ make
> Scanning dependencies of target avro-shared
> [ 1%] Building C object src/CMakeFiles/avro-shared.dir/allocation.o
> llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
> lipo: can't figure out the architecture type of: /var/folders/jb/gsl71lzj5z73bz39p6sj2glh0000gn/T//ccHcK1F2.out
> make[2]: *** [src/CMakeFiles/avro-shared.dir/allocation.o] Error 255
> make[1]: *** [src/CMakeFiles/avro-shared.dir/all] Error 2
> make: *** [all] Error 2
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira