tagutil icon indicating copy to clipboard operation
tagutil copied to clipboard

Trouble Building ("CMakeFiles/tagutil.dir/tagutil.c.d: No such file or directory")

Open 4tuw2tuv0 opened this issue 1 year ago • 1 comments

When I try building tagutil, I keep running into this error:

make[3]: Entering directory '/tmp/guix-build-tagutil-3.1.drv-0/source/build'
[  4%] Building C object CMakeFiles/tagutil.dir/tagutil.c.o
cc1: error: too many filenames given; type ‘cc1 --help’ for usage
cc1: fatal error: CMakeFiles/tagutil.dir/tagutil.c.d: No such file or directory
compilation terminated.
make[3]: *** [CMakeFiles/tagutil.dir/build.make:76: CMakeFiles/tagutil.dir/tagutil.c.o] Error 1
make[3]: Leaving directory '/tmp/guix-build-tagutil-3.1.drv-0/source/build'
make[2]: *** [CMakeFiles/Makefile2:83: CMakeFiles/tagutil.dir/all] Error 2
make[2]: Leaving directory '/tmp/guix-build-tagutil-3.1.drv-0/source/build'
make[1]: *** [Makefile:136: all] Error 2
make[1]: Leaving directory '/tmp/guix-build-tagutil-3.1.drv-0/source/build'
make: *** [Makefile:6: release] Error 2
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "8") exit-status: 2 term-signal: #f stop-signal: #f>

As far as I can tell – though –, I'm running the right commands (as the GitHub instructed):

test -d build || mkdir build
cd build && cmake -DCMAKE_BUILD_TYPE=RELEASE ../src && make

So I can't tell what I'm doing wrong; the version of cmake I'm using is 3.24.2.

And full output can be found here: https://pastebin.com/NAHgxpc1.

Thanks for any help!

4tuw2tuv0 avatar Feb 13 '24 22:02 4tuw2tuv0

Hi @WammKD, thanks for the report.

Could you try:

test -d build || mkdir build
cd build && cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_VERBOSE_MAKEFILE=YES ../src && make

and show the full output please? Also on the way I'm confused by -j 8 to make, does

env | grep MAKEFLAGS

shows anything?

kaworu avatar Feb 28 '24 17:02 kaworu