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

Errors when using make #37

Open
ken0414 opened this issue Oct 13, 2022 · 4 comments
Open

Errors when using make #37

ken0414 opened this issue Oct 13, 2022 · 4 comments

Comments

@ken0414
Copy link

ken0414 commented Oct 13, 2022

CMake version is 3.22.1
GNU Make version is 4.3
CMake is running without using CUDA

Errors occured when using command 'make'

kenmarnuls@LAPTOP-Q547HOJF:~/CCMpred$ make
[ 7%] Building C object lib/libconjugrad/CMakeFiles/conjugrad.dir/src/conjugrad.c.o
In file included from /home/kenmarnuls/CCMpred/lib/libconjugrad/src/conjugrad.c:4:
/home/kenmarnuls/CCMpred/lib/libconjugrad/include/conjugrad.h:21:15: error: conflicting types for ‘sqrtf’; have ‘float(double)’
21 | #define fsqrt sqrtf
| ^~~~~
In file included from /home/kenmarnuls/CCMpred/lib/libconjugrad/src/conjugrad.c:4:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:143:1: note: previous declaration of ‘sqrtf’ with type ‘float(float)’
143 | __MATHCALL (sqrt,, (Mdouble __x));
| ^~~~~~~~~~
make[2]: *** [lib/libconjugrad/CMakeFiles/conjugrad.dir/build.make:76:lib/libconjugrad/CMakeFiles/conjugrad.dir/src/conjugrad.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:129:lib/libconjugrad/CMakeFiles/conjugrad.dir/all] Error 2
make: *** [Makefile:156:all] Error 2

Can this problem be solved by modifying the code?

@ken0414
Copy link
Author

ken0414 commented Oct 16, 2022

Hello, my issue is solved, the program was succesfully generated, but there is an another problem when im running CCMpred.

line 4: 240 Segmentation fault

How does it happend? Is there something wrong with my Ubuntu system. Im using the CPU version.

@ken0414
Copy link
Author

ken0414 commented Oct 16, 2022

Here is the output

(base) kenmarnuls@LAPTOP-Q547HOJF:~/code/SPOT-Contact-Helical-New/inputs$ ccmpred tmp.aln tmp.mat


| | | |___ ___ ___ | |
| --| --| | | | . | | -| . |
|||
||| || |||
|_|

using CPU (1 thread(s))

Reweighted 3971 sequences with threshold 0.8 to Beff=370.517 weight mean=0.0933057, min=0.000383877, max=1
Segmentation fault

@Benny0323
Copy link

Benny0323 commented Jan 27, 2023

CMake version is 3.22.1 GNU Make version is 4.3 CMake is running without using CUDA

Errors occured when using command 'make'

kenmarnuls@LAPTOP-Q547HOJF:~/CCMpred$ make [ 7%] Building C object lib/libconjugrad/CMakeFiles/conjugrad.dir/src/conjugrad.c.o In file included from /home/kenmarnuls/CCMpred/lib/libconjugrad/src/conjugrad.c:4: /home/kenmarnuls/CCMpred/lib/libconjugrad/include/conjugrad.h:21:15: error: conflicting types for ‘sqrtf’; have ‘float(double)’ 21 | #define fsqrt sqrtf | ^~~~~ In file included from /home/kenmarnuls/CCMpred/lib/libconjugrad/src/conjugrad.c:4: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:143:1: note: previous declaration of ‘sqrtf’ with type ‘float(float)’ 143 | __MATHCALL (sqrt,, (Mdouble __x)); | ^~~~~~~~~~ make[2]: *** [lib/libconjugrad/CMakeFiles/conjugrad.dir/build.make:76:lib/libconjugrad/CMakeFiles/conjugrad.dir/src/conjugrad.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:129:lib/libconjugrad/CMakeFiles/conjugrad.dir/all] Error 2 make: *** [Makefile:156:all] Error 2

Can this problem be solved by modifying the code?

Hi!
Could you tell me how to solve this problem. Unluckily, I met it too!
Thanks!

@lm-jkominek
Copy link

Hi, not sure if you still care, but I also stumbled upon this problem. What worked for me was opening the file "include/conjugrad.h" and simply commenting out the offending line by adding // in front of it.

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

3 participants