Re: build deps
- From
Thiago Farina <tfransosi@gmail.com>
- Date
- Oct 12, 2012, 04:08 UTC
- Message-ID
- <CACnwZYfmz1BTo6okzFh8jXbw+0MAV0sEanYXNzAnV7L4p7nY_g@mail.gmail.com>
- In-Reply-To
- <50776D0D.9090306@gmail.com>
On Thu, Oct 11, 2012 at 10:06 PM, Andrew Wong <andrew.kw.w.lists@gmail.com> wrote:
Show 7 quoted lines
> On 10/11/12 16:54, Thiago Farina wrote: >> Just setting CC to gcc works for me. But still, I'd like to be able to >> build with clang (may be as you noted is just something with the + in >> my PATH). > Oh, I just realized you were using "sudo". The PATH environment was > probably not inherited when you use sudo to run "make". So the > subsequent shells statred by "make' were not able to find "clang".
Interesting, thank you for your observation.
This worked for me now:
$ git clone https://github.com/gitster/git $ cd git $ make configure $ ./configure $ make $ ./git version git version 1.8.0.rc2
clang reported this:
combine-diff.c:1006:19: warning: adding 'int' to a string does not
append to the string [-Wstring-plus-int]
prefix = COLONS + offset;
~~~~~~~^~~~~~~~
combine-diff.c:1006:19: note: use array indexing to silence this
warning
prefix = COLONS + offset;
^
& [ ]
1 warning generated.grep.c:451:16: warning: comparison of unsigned enum expression < 0 is
always false [-Wtautological-compare]
if (p->field < 0 || GREP_HEADER_FIELD_MAX <= p->field)
~~~~~~~~ ^ ~
1 warning generated.