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 during install #550

Open
robin-sto opened this issue Mar 21, 2024 · 3 comments
Open

error during install #550

robin-sto opened this issue Mar 21, 2024 · 3 comments

Comments

@robin-sto
Copy link

Hello,

I am trying to install collapse in an R/4.2.1 environment via BiocManager::install. I am getting this error:

gcc -std=gnu11 -I"/usr/local/lib64/R/include" -DNDEBUG -I'/usr/local/lib64/R/library/Rcpp/include' -I/usr/local/include -fopenmp -fpic -g -O2 -c fmean.c -o fmean.o
fmean.c: In function ‘fmean_double_omp_impl’:
fmean.c:37:30: error: expected ‘#pragma omp’ clause before ‘simd’
#pragma omp parallel for simd num_threads(nthreads) reduction(+:mean,n)
^
fmean.c:45:28: error: expected ‘#pragma omp’ clause before ‘simd’
#pragma omp parallel for simd num_threads(nthreads) reduction(+:mean)

this repeats for a while.

Can you help me?

@SebKrantz
Copy link
Owner

Hi, this means OpenMP, your C/C++ compiler, or both are outdated, see #417. So either update them or install collapse without OpenMP.

@SebKrantz
Copy link
Owner

SebKrantz commented Mar 21, 2024

Ok, so since this issue has occurred multiple times, and updating your compiler may be tedious, I have just created a branch "no_parallel_simd" that should solve your problem:

remotes::install_github("SebKrantz/collapse", ref = "no_parallel_simd")

@robin-sto
Copy link
Author

robin-sto commented Mar 21, 2024 via email

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