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

gpart installation fails: gpart_cpp.cpp:622:42: error: ‘PI’ was not declared in this scope #4

Open
matt-shenton opened this issue Jan 26, 2022 · 1 comment

Comments

@matt-shenton
Copy link

Am I missing something from my system (ubuntu 20.04)

many thanks

Matt Shenton

renv::install("bioc::gpart")
Installing graph [1.72.0] ...
    OK [built from source]
Moving graph [1.72.0] into the cache ...
    OK [moved to cache in 0.18 milliseconds]
Installing RBGL [1.70.0] ...
    OK [built from source]
Moving RBGL [1.70.0] into the cache ...
    OK [moved to cache in 0.18 milliseconds]
Installing OrganismDbi [1.36.0] ...
    OK [built from source]
Moving OrganismDbi [1.36.0] into the cache ...
    OK [moved to cache in 0.19 milliseconds]
Installing GO.db [3.14.0] ...
    OK [built from source]
Moving GO.db [3.14.0] into the cache ...
    OK [moved to cache in 0.44 milliseconds]
Installing org.Hs.eg.db [3.14.0] ...
    OK [built from source]
Moving org.Hs.eg.db [3.14.0] into the cache ...
    OK [moved to cache in 0.18 milliseconds]
Installing TxDb.Hsapiens.UCSC.hg19.knownGene [3.2.2] ...
    OK [built from source]
Moving TxDb.Hsapiens.UCSC.hg19.knownGene [3.2.2] into the cache ...
    OK [moved to cache in 0.3 milliseconds]
Installing Homo.sapiens [1.3.1] ...
    OK [built from source]
Moving Homo.sapiens [1.3.1] into the cache ...
    OK [moved to cache in 0.19 milliseconds]
Installing TxDb.Hsapiens.UCSC.hg38.knownGene [3.14.0] ...
    OK [built from source]
Moving TxDb.Hsapiens.UCSC.hg38.knownGene [3.14.0] into the cache ...
    OK [moved to cache in 0.18 milliseconds]
Installing gpart [1.12.0] ...
    FAILED
Error installing package 'gpart':
=================================

* installing to library ‘/home/mshenton/analysis/LDblocks/renv/staging/1’
* installing *source* package ‘gpart’ ...
** using staged installation
** libs
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG  -I'/home/mshenton/analysis/LDblocks/renv/library/R-4.1/x86_64-pc-linux-gnu/Rcpp/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-i2PIHO/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG  -I'/home/mshenton/analysis/LDblocks/renv/library/R-4.1/x86_64-pc-linux-gnu/Rcpp/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-i2PIHO/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c gpart_cpp.cpp -o gpart_cpp.o
gpart_cpp.cpp: In function ‘uint32_t cubic_real_roots(double, double, double, Rcpp::NumericVector)’:
gpart_cpp.cpp:622:42: error: ‘PI’ was not declared in this scope
  622 |     solutions[1] = sq * cos(dxx + (2.0 * PI / 3.0)) - adiv3;
      |                                          ^~
make: *** [/usr/lib/R/etc/Makeconf:177: gpart_cpp.o] Error 1
ERROR: compilation failed for package ‘gpart’
* removing ‘/home/mshenton/analysis/LDblocks/renv/staging/1/gpart’
Error: install of package 'gpart' failed [error code 1]
@matt-shenton
Copy link
Author

Installed with no error on macOs 11.6.1

So this seems to be about something missing from my ubuntu machine.

Any suggestions are very welcome.

(The tool looks great, by the way, Thanks!)

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

1 participant