Skip to content

Errors when using make #37

Description

@ken0414

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?

Activity

  1. ken0414 commented on Oct 16, 2022

    @ken0414
    Author

    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.

  2. ken0414 commented on Oct 16, 2022

    @ken0414
    Author

    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

  3. Benny0323 commented on Jan 27, 2023

    @Benny0323

    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!

  4. lm-jkominek commented on Nov 27, 2023

    @lm-jkominek

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions