Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Getting tup error: hard links are not supported

39 views
Skip to first unread message

Pulkit Aggarwal

unread,
May 26, 2023, 11:01:39 PM5/26/23
to tup-users
Hi,

I am a beginner in using tup. We have licensed a third party software that uses Tup build system. I am trying to run Coverity(static code analyser) on a C++ project with Tup build system. 

Original line:

: foreach *.cpp | abc.h |> g++ $(CFLAGS) %f -o %o |> %B.o

After adding Coverity:
: foreach *.cpp | abc.h |> cov-build --dir $(TopDir)/idir g++ $(CFLAGS) %f -o %o |> %B.o

On doing so, I'm getting "tup error: hard links are not supported" error. Want to understand how to by pass this issue.

Guillaume @layus Maudoux

unread,
May 29, 2023, 4:21:49 AM5/29/23
to Pulkit Aggarwal, tup-users
Hi Pulkit,

I am no expert, but I think that you have several options:
* Ideally, there would be a flag to your tool telling it to copy or symlink files instead of using hard links,
* alternatively, run your tool in a $TMP directory, and copy back the ones you need in the workspace. This is the wrapper way. Usually a bash script that sets everything up in $TMP, and cleans up after the tool has run.
* patch Tup to support hard links :-). Although in this case it may be very difficult to define a correct semantic for hard links. Not supporting them is probably a feature, not a bug.

Best,

-- Layus
Reply all
Reply to author
Forward
0 new messages