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

Error building in CMakeFiles/Makefile2 #401

Open
TheCheddarCheese opened this issue Jul 19, 2024 · 3 comments · May be fixed by #403
Open

Error building in CMakeFiles/Makefile2 #401

TheCheddarCheese opened this issue Jul 19, 2024 · 3 comments · May be fixed by #403

Comments

@TheCheddarCheese
Copy link

This might be related to my previous issue, although I honestly don't see the connection. Basically I replaced libgcrypt-config with pkg-config in cmake/Modules/FindLibGcrypt.cmake. That let me build with cmake, but when I run make -j4 I get this:

[ 86%] Building CXX object libgrive/CMakeFiles/unittest.dir/test/base/ResourceTreeTest.cc.o
[ 88%] Linking CXX executable btest
/usr/bin/ld: cannot find -lPlease: No such file or directory
/usr/bin/ld: cannot find specify: No such file or directory
/usr/bin/ld: cannot find at: No such file or directory
/usr/bin/ld: cannot find least: No such file or directory
/usr/bin/ld: cannot find one: No such file or directory
/usr/bin/ld: cannot find package: No such file or directory
/usr/bin/ld: cannot find name: No such file or directory
/usr/bin/ld: cannot find on: No such file or directory
/usr/bin/ld: cannot find the: No such file or directory
/usr/bin/ld: cannot find command: No such file or directory
/usr/bin/ld: cannot find line.: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [libgrive/CMakeFiles/btest.dir/build.make:143: libgrive/btest] Error 1
make[1]: *** [CMakeFiles/Makefile2:190: libgrive/CMakeFiles/btest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 89%] Building CXX object libgrive/CMakeFiles/unittest.dir/test/base/StateTest.cc.o
[ 91%] Building CXX object libgrive/CMakeFiles/unittest.dir/test/util/ConfigTest.cc.o
[ 93%] Building CXX object libgrive/CMakeFiles/unittest.dir/test/util/DateTimeTest.cc.o
[ 94%] Building CXX object libgrive/CMakeFiles/unittest.dir/test/util/FunctionTest.cc.o
[ 96%] Linking CXX executable grive
/usr/bin/ld: cannot find -lPlease: No such file or directory
/usr/bin/ld: cannot find specify: No such file or directory
/usr/bin/ld: cannot find at: No such file or directory
/usr/bin/ld: cannot find least: No such file or directory
/usr/bin/ld: cannot find one: No such file or directory
/usr/bin/ld: cannot find package: No such file or directory
/usr/bin/ld: cannot find name: No such file or directory
/usr/bin/ld: cannot find on: No such file or directory
/usr/bin/ld: cannot find the: No such file or directory
/usr/bin/ld: cannot find command: No such file or directory
/usr/bin/ld: cannot find line.: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [grive/CMakeFiles/grive_executable.dir/build.make:110: grive/grive] Error 1
make[1]: *** [CMakeFiles/Makefile2:216: grive/CMakeFiles/grive_executable.dir/all] Error 2
[ 98%] Building CXX object libgrive/CMakeFiles/unittest.dir/test/util/SignalHandlerTest.cc.o
[100%] Linking CXX executable unittest
/usr/bin/ld: cannot find -lPlease: No such file or directory
/usr/bin/ld: cannot find specify: No such file or directory
/usr/bin/ld: cannot find at: No such file or directory
/usr/bin/ld: cannot find least: No such file or directory
/usr/bin/ld: cannot find one: No such file or directory
/usr/bin/ld: cannot find package: No such file or directory
/usr/bin/ld: cannot find name: No such file or directory
/usr/bin/ld: cannot find on: No such file or directory
/usr/bin/ld: cannot find the: No such file or directory
/usr/bin/ld: cannot find command: No such file or directory
/usr/bin/ld: cannot find line.: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [libgrive/CMakeFiles/unittest.dir/build.make:223: libgrive/unittest] Error 1
make[1]: *** [CMakeFiles/Makefile2:164: libgrive/CMakeFiles/unittest.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I tried debugging myself but that didn't really work because I've never worked with a makefile in my life. Maybe it's an issue with a separate package? Anyone have an idea what could be happening here?

@syahny
Copy link

syahny commented Jul 19, 2024

I tried the method you advised and I am in the same situation as you. lol........

@TheCheddarCheese
Copy link
Author

TheCheddarCheese commented Jul 19, 2024 via email

@syahny
Copy link

syahny commented Jul 19, 2024

I will try changing the gcc version and try again....
gcc10 failed... trying gcc11...

adangel added a commit to adangel/grive2 that referenced this issue Jul 27, 2024
@adangel adangel linked a pull request Jul 27, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants