[ 
https://issues.apache.org/jira/browse/KUDU-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dinesh Bhat updated KUDU-1530:
------------------------------
    Description: 
Fresh kudu build on my mac (OS X version 10.11.5) fails to compile during 
thirdparty/build-if-necessary.sh:

{noformat}
] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Program.cpp.o
[ 25%] Building C object 
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.cc_kext_x86_64_osx.dir/ffsdi2.c.o
[ 25%] Building C object 
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.cc_kext_x86_64_osx.dir/ffsti2.c.o
Scanning dependencies of target clang_rt.eprintf
[ 25%] Building C object 
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.cc_kext_x86_64_osx.dir/fixdfdi.c.o
[ 25%] Building C object 
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.eprintf.dir/eprintf.c.o
clang: warning: no such sysroot directory: '-mmacosx-version-min=10.5'
/Users/dinesh/Documents/kudu_exp/kudu/thirdparty/llvm-3.8.0.src/projects/compiler-rt/lib/builtins/eprintf.c:14:10:
 fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^
1 error generated.
[ 25%] make[2]: *** 
[projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.eprintf.dir/eprintf.c.o] 
Error 1
make[1]: *** 
[projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.eprintf.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs….
{noformat}

After installing Xcode, the builds succeeded.

In discussion with [~mpercy], we thought it would be better to explicitly 
update the docs about OS X dependency on Xcode along with the xcode cmdline 
utilities. Mike mentioned something about not being able to recollect any extra 
dependency other than xcode-select utilities. However, as mentioned above, I 
had to install Xcode as well for a successfull build on latest OS X.

  was:In discussion with [~mpercy], we thought it would be better to explicitly 
update the docs about OS X dependency on Xcode along with the xcode cmdline 
utilities. Mike mentioned something about not being able to recollect any extra 
dependency other than xcode-select utilities. However, I observed with OS X 
10.11.5, I had to install Xcode as well for a successfull build.


> Update the docs about OS X build dependency on Xcode package
> ------------------------------------------------------------
>
>                 Key: KUDU-1530
>                 URL: https://issues.apache.org/jira/browse/KUDU-1530
>             Project: Kudu
>          Issue Type: Task
>            Reporter: Dinesh Bhat
>            Assignee: Dinesh Bhat
>            Priority: Trivial
>
> Fresh kudu build on my mac (OS X version 10.11.5) fails to compile during 
> thirdparty/build-if-necessary.sh:
> {noformat}
> ] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Program.cpp.o
> [ 25%] Building C object 
> projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.cc_kext_x86_64_osx.dir/ffsdi2.c.o
> [ 25%] Building C object 
> projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.cc_kext_x86_64_osx.dir/ffsti2.c.o
> Scanning dependencies of target clang_rt.eprintf
> [ 25%] Building C object 
> projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.cc_kext_x86_64_osx.dir/fixdfdi.c.o
> [ 25%] Building C object 
> projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.eprintf.dir/eprintf.c.o
> clang: warning: no such sysroot directory: '-mmacosx-version-min=10.5'
> /Users/dinesh/Documents/kudu_exp/kudu/thirdparty/llvm-3.8.0.src/projects/compiler-rt/lib/builtins/eprintf.c:14:10:
>  fatal error: 'stdio.h' file not found
> #include <stdio.h>
>          ^
> 1 error generated.
> [ 25%] make[2]: *** 
> [projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.eprintf.dir/eprintf.c.o]
>  Error 1
> make[1]: *** 
> [projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.eprintf.dir/all] Error 
> 2
> make[1]: *** Waiting for unfinished jobs….
> {noformat}
> After installing Xcode, the builds succeeded.
> In discussion with [~mpercy], we thought it would be better to explicitly 
> update the docs about OS X dependency on Xcode along with the xcode cmdline 
> utilities. Mike mentioned something about not being able to recollect any 
> extra dependency other than xcode-select utilities. However, as mentioned 
> above, I had to install Xcode as well for a successfull build on latest OS X.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to