# No rule to make target `git-daemon'

7 messages from 2018-07-20 to 2018-07-25. Participants: Jeffrey Walton, Eric Sunshine, brian m. carlson, Jeff King, Johannes Schindelin.
Thread: https://gitlist.dev/t/48925

## Jeffrey Walton, 2018-07-20 01:37

Subject: No rule to make target `git-daemon'
Message-ID: <CAH8yC8=oruFBtkndQ0p9N4s23SMvjjrAC_E7zzKRSVbjEwL0FQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAH8yC8%3DoruFBtkndQ0p9N4s23SMvjjrAC_E7zzKRSVbjEwL0FQ%40mail.gmail.com

```
Hi Everyone,

I'm working from the 2.18 tarball on Solaris 11.3 x86_64. I'm catching
the following when building from sources. This appears to be a new
issue. It was not present in 2.17.1.

    gmake: *** No rule to make target `git-daemon'.  Stop.
    gmake: *** Waiting for unfinished jobs....
    Failed to build Git

There does not appear to be an option to control building the daemon:

    $ ./configure --help | grep -i daemon
    $

Any ideas on how to side-step it?

Thanks in advance

```

## Eric Sunshine, 2018-07-20 06:16

Subject: Re: No rule to make target `git-daemon'
Message-ID: <CAPig+cQgXSFKEj4=CsYBTzPkC_JHfu-=bJv17iLe+Ou1ZXvsTg@mail.gmail.com>
URL: https://gitlist.dev/e/CAPig%2BcQgXSFKEj4%3DCsYBTzPkC_JHfu-%3DbJv17iLe%2BOu1ZXvsTg%40mail.gmail.com
In-Reply-To: <CAH8yC8=oruFBtkndQ0p9N4s23SMvjjrAC_E7zzKRSVbjEwL0FQ@mail.gmail.com>

```
On Thu, Jul 19, 2018 at 9:37 PM Jeffrey Walton <noloader@gmail.com> wrote:
> I'm working from the 2.18 tarball on Solaris 11.3 x86_64. I'm catching
> the following when building from sources. This appears to be a new
> issue. It was not present in 2.17.1.
>
>     gmake: *** No rule to make target `git-daemon'.  Stop.
>     gmake: *** Waiting for unfinished jobs....
>     Failed to build Git

Unable to reproduce this problem. Is your Makefile corrupt or
truncated or something?

```

## brian m. carlson, 2018-07-20 21:04

Subject: Re: No rule to make target `git-daemon'
Message-ID: <20180720210459.GA18502@genre.crustytoothpaste.net>
URL: https://gitlist.dev/e/20180720210459.GA18502%40genre.crustytoothpaste.net
In-Reply-To: <CAH8yC8=oruFBtkndQ0p9N4s23SMvjjrAC_E7zzKRSVbjEwL0FQ@mail.gmail.com>

```
On Thu, Jul 19, 2018 at 09:37:08PM -0400, Jeffrey Walton wrote:
> Hi Everyone,
> 
> I'm working from the 2.18 tarball on Solaris 11.3 x86_64. I'm catching
> the following when building from sources. This appears to be a new
> issue. It was not present in 2.17.1.
> 
>     gmake: *** No rule to make target `git-daemon'.  Stop.
>     gmake: *** Waiting for unfinished jobs....
>     Failed to build Git
> 
> There does not appear to be an option to control building the daemon:
> 
>     $ ./configure --help | grep -i daemon
>     $
> 
> Any ideas on how to side-step it?

I also don't see this issue, and I didn't see anything between 2.17.1
and 2.18 that stood out to me as a potential cause of this problem.  Can
you tell us a bit more about what version of GNU make you're using and
the configuration you're trying to build (say, the config.mak.autogen)?
-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204

```

## Jeff King, 2018-07-20 21:27

Subject: Re: No rule to make target `git-daemon'
Message-ID: <20180720212725.GA3865@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20180720212725.GA3865%40sigill.intra.peff.net
In-Reply-To: <CAH8yC8=oruFBtkndQ0p9N4s23SMvjjrAC_E7zzKRSVbjEwL0FQ@mail.gmail.com>

```
On Thu, Jul 19, 2018 at 09:37:08PM -0400, Jeffrey Walton wrote:

> I'm working from the 2.18 tarball on Solaris 11.3 x86_64. I'm catching
> the following when building from sources. This appears to be a new
> issue. It was not present in 2.17.1.
> 
>     gmake: *** No rule to make target `git-daemon'.  Stop.
>     gmake: *** Waiting for unfinished jobs....
>     Failed to build Git

Like others, I don't really have an idea on how this could have
happened. But perhaps "gmake -d git-daemon" could be enlightening?

Mine has:

  [...]
  Considering target file 'git-daemon'.
   Looking for an implicit rule for 'git-daemon'.
   Trying pattern rule with stem 'daemon'.
   Trying implicit prerequisite 'daemon.o'.
   Trying rule prerequisite 'GIT-LDFLAGS'.
   Trying rule prerequisite 'common-main.o'.
   Trying rule prerequisite 'libgit.a'.
   Trying rule prerequisite 'xdiff/lib.a'.
   Found an implicit rule for 'git-daemon'.
    Considering target file 'daemon.o'.

and so on.

> There does not appear to be an option to control building the daemon:
> 
>     $ ./configure --help | grep -i daemon
>     $
> 
> Any ideas on how to side-step it?

There's no official knob to turn, but dropping this line would remove
it:

diff --git a/Makefile b/Makefile
index 08e5c54549..31153a2789 100644
--- a/Makefile
+++ b/Makefile
@@ -684,7 +684,6 @@ EXTRA_PROGRAMS =
 PROGRAMS += $(EXTRA_PROGRAMS)
 
 PROGRAM_OBJS += credential-store.o
-PROGRAM_OBJS += daemon.o
 PROGRAM_OBJS += fast-import.o
 PROGRAM_OBJS += http-backend.o
 PROGRAM_OBJS += imap-send.o

-Peff

```

## Jeffrey Walton, 2018-07-20 21:51

Subject: Re: No rule to make target `git-daemon'
Message-ID: <CAH8yC8m7T8k8usGnV_OYp9G=2N4_jdzLT6frme2iBrLnt5iqnw@mail.gmail.com>
URL: https://gitlist.dev/e/CAH8yC8m7T8k8usGnV_OYp9G%3D2N4_jdzLT6frme2iBrLnt5iqnw%40mail.gmail.com
In-Reply-To: <20180720210459.GA18502@genre.crustytoothpaste.net>

```
On Fri, Jul 20, 2018 at 5:04 PM, brian m. carlson
<sandals@crustytoothpaste.net> wrote:
> On Thu, Jul 19, 2018 at 09:37:08PM -0400, Jeffrey Walton wrote:
>> Hi Everyone,
>>
>> I'm working from the 2.18 tarball on Solaris 11.3 x86_64. I'm catching
>> the following when building from sources. This appears to be a new
>> issue. It was not present in 2.17.1.
>>
>>     gmake: *** No rule to make target `git-daemon'.  Stop.
>>     gmake: *** Waiting for unfinished jobs....
>>     Failed to build Git
>>
>> There does not appear to be an option to control building the daemon:
>>
>>     $ ./configure --help | grep -i daemon
>>     $
>>
>> Any ideas on how to side-step it?
>
> I also don't see this issue, and I didn't see anything between 2.17.1
> and 2.18 that stood out to me as a potential cause of this problem.  Can
> you tell us a bit more about what version of GNU make you're using and
> the configuration you're trying to build (say, the config.mak.autogen)?

Sorry about the late reply. I meant to reply this morning.

My shell script to patch things on Solaris was the cause of the problem.

(If anyone is interested in first class Solaris support then I am
happy to help. The patch set needed for the platform has been stable
for the last couple of years).

Jeff

```

## brian m. carlson, 2018-07-20 22:13

Subject: Re: No rule to make target `git-daemon'
Message-ID: <20180720221259.GC18502@genre.crustytoothpaste.net>
URL: https://gitlist.dev/e/20180720221259.GC18502%40genre.crustytoothpaste.net
In-Reply-To: <CAH8yC8m7T8k8usGnV_OYp9G=2N4_jdzLT6frme2iBrLnt5iqnw@mail.gmail.com>

```
On Fri, Jul 20, 2018 at 05:51:46PM -0400, Jeffrey Walton wrote:
> Sorry about the late reply. I meant to reply this morning.
> 
> My shell script to patch things on Solaris was the cause of the problem.

Glad to hear you got it figured out.

> (If anyone is interested in first class Solaris support then I am
> happy to help. The patch set needed for the platform has been stable
> for the last couple of years).

I'd certainly be interested for you to send it to the list.  I'm not
sure I can provide a helpful review, since I don't run Solaris, but
having better support out of the box would definitely be nice.
-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204

```

## Johannes Schindelin, 2018-07-25 19:59

Subject: Re: No rule to make target `git-daemon'
Message-ID: <nycvar.QRO.7.76.6.1807252105070.71@tvgsbejvaqbjf.bet>
URL: https://gitlist.dev/e/nycvar.QRO.7.76.6.1807252105070.71%40tvgsbejvaqbjf.bet
In-Reply-To: <20180720221259.GC18502@genre.crustytoothpaste.net>

```
Hi,

On Fri, 20 Jul 2018, brian m. carlson wrote:

> On Fri, Jul 20, 2018 at 05:51:46PM -0400, Jeffrey Walton wrote:
> 
> > (If anyone is interested in first class Solaris support then I am
> > happy to help. The patch set needed for the platform has been stable
> > for the last couple of years).
> 
> I'd certainly be interested for you to send it to the list.  I'm not
> sure I can provide a helpful review, since I don't run Solaris, but
> having better support out of the box would definitely be nice.

The cURL team has some SunOS build IIRC that was nicely integrated with
their GitHub-based CI. Maybe we could have something similar?

Ciao,
Dscho

```
