# Hard link problem during build

2 messages from 2008-04-02 to 2008-04-02. Participants: PICCA Frédéric-Emmanuel, Peter Eriksen.
Thread: https://gitlist.dev/t/12963

## PICCA Frédéric-Emmanuel, 2008-04-02 07:52

Subject: Hard link problem during build
Message-ID: <606CC410B038E34CB97646A32D0EC0BF09E1A4@venusbis.synchrotron-soleil.fr>
URL: https://gitlist.dev/e/606CC410B038E34CB97646A32D0EC0BF09E1A4%40venusbis.synchrotron-soleil.fr

```
Hello

I am working with a filesystem mounted via nfs.
this system is
http://www.active-circle.com/contenu-29-gb.htm

It seems that it do not allow hard linkage. Nevertheless soft linkage is allow.

So the build process failed during the link of built-in commands.
git-merge-subtree$X: target and
$(BUILT_INS): target.

Is it necessary to do hard link instead of soft link ?

Thanks

Frédéric

```

## Peter Eriksen, 2008-04-02 12:12

Subject: Re: Hard link problem during build
Message-ID: <yqsr1w5oa21w.fsf@rifpc20.inf.ethz.ch>
URL: https://gitlist.dev/e/yqsr1w5oa21w.fsf%40rifpc20.inf.ethz.ch
In-Reply-To: <606CC410B038E34CB97646A32D0EC0BF09E1A4@venusbis.synchrotron-soleil.fr>

```
...
> I am working with a filesystem mounted via nfs.
...

> It seems that it do not allow hard linkage. Nevertheless soft linkage
> is allow.

Beware that git depends on that stat() gives the correct (Posix) size of
symlinks. This can give problems, if a Windows filesystem is mounted
over NFS.

> So the build process failed during the link of built-in commands.
> git-merge-subtree$X: target and
> $(BUILT_INS): target.
> 
> Is it necessary to do hard link instead of soft link ?

You can change the Makefile (look for calls to 'ln') to copy the build-in
commands instead of linking them, and that should work (but waste some
space).

Peter

```
