Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4tuw2tuv0 opened this issue Feb 13, 2024 · 1 comment

Comments

@4tuw2tuv0
Copy link

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!

@kaworu
Copy link
Owner

kaworu commented Feb 28, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants