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

Cannot install package #320

Open
DrNamwob opened this issue Jul 23, 2024 · 1 comment
Open

Cannot install package #320

DrNamwob opened this issue Jul 23, 2024 · 1 comment

Comments

@DrNamwob
Copy link

I cannot install gimmemotifs in my anaconda environment with pip, conda, or from source code. I get the same error regardless. Can someone please help? Thank you!

The error occurs here:
building 'gimmemotifs.c_metrics' extension
Here is a printout of the error mesage:
gimmemotifs/c_metrics.c: In function 'get_truncate_len':
gimmemotifs/c_metrics.c:315:5: error: type of 'len1' defaults to 'int' [-Wimplicit-int]
315 | int get_truncate_len(len1, len2, pos) {
| ^~~~~~~~~~~~~~~~
gimmemotifs/c_metrics.c:315:5: error: type of 'len2' defaults to 'int' [-Wimplicit-int]
gimmemotifs/c_metrics.c:315:5: error: type of 'pos' defaults to 'int' [-Wimplicit-int]
gimmemotifs/c_metrics.c: In function 'c_metrics_pwmscan':
gimmemotifs/c_metrics.c:564:16: warning: unused variable 'pwm_min' [-Wunused-variable]
564 | double pwm_min = -50;
| ^~~~~~~
gimmemotifs/c_metrics.c:563:13: warning: unused variable 'c' [-Wunused-variable]
563 | int c;
| ^
gimmemotifs/c_metrics.c: At top level:
gimmemotifs/c_metrics.c:901:22: error: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
901 | {NULL, NULL, NULL, 0, NULL}
| ^~~~
gimmemotifs/c_metrics.c:901:22: note: (near initialization for 'CoreMethods[4].ml_flags')
gimmemotifs/c_metrics.c:901:31: warning: excess elements in struct initializer
901 | {NULL, NULL, NULL, 0, NULL}
| ^~~~
gimmemotifs/c_metrics.c:901:31: note: (near initialization for 'CoreMethods[4]')

@ebasto
Copy link

ebasto commented Sep 20, 2024

Hi mate, I downgraded my GCC and it worked for me. While I'm not sure what's the most appropriate version to use, I did the following:

brew install gcc@12
export CC=/opt/homebrew/bin/gcc-12
then installation

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