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

Unable to install strex package using gcc version 4.4.7 #5

Closed
JordaneGourlay opened this issue Oct 14, 2020 · 3 comments
Closed

Unable to install strex package using gcc version 4.4.7 #5

JordaneGourlay opened this issue Oct 14, 2020 · 3 comments

Comments

@JordaneGourlay
Copy link

I am unable to install strex package using these two installations :

sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-koji-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-koji-linux-gnu (64-bit)
Running under: Scientific Linux release 6.8 (Carbon)

Both having as GCC version "4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)"

I am getting these warnings

stringi-imports.h: In function ‘C_stringi_replace_all’:
stringi-imports.h:10:5: warning: implicit declaration of function ‘R_GetCCallable’ [-Wimplicit-function-declaration]
     R_GetCCallable("stringi", "C_stri_replace_all_coll");
     ^
stringi-imports.h:9:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     fun = (SEXP(*)(SEXP, SEXP, SEXP, SEXP, SEXP))
           ^
list-utils.c: In function ‘C_int_mat_nth_col’:
list-utils.c:191:5: warning: implicit declaration of function ‘INTEGER_GET_REGION’ [-Wimplicit-function-declaration]
     INTEGER_GET_REGION(int_mat, (n - 1) * nr, nr, out_int);
     ^
pairlist-utils.c: In function ‘C_int_prlst_cbind’:
pairlist-utils.c:9:5: warning: implicit declaration of function ‘INTEGER_GET_REGION’ [-Wimplicit-function-declaration]
     INTEGER_GET_REGION(int_prlst_i_car, 0, nr, out_int + i * nr);

Which leads me to the following error

** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/.../lib/x86_64-koji-linux-gnu/3.3.1/strex/libs/strex.so':
  /home/.../lib/x86_64-koji-linux-gnu/3.3.1/strex/libs/strex.so: undefined symbol: INTEGER_GET_REGION
Error: loading failed
Execution halted
@rorynolan
Copy link
Owner

It seems that your version of R is too old. I wasn't aware of this, but it seems that a C function that I was using INTEGER_GET_REGION() came with the ALTREP framework which is from R 3.5. Can you update your R to 3.5 or later?

@JordaneGourlay
Copy link
Author

Thanks for your fast answer. We are currently having to POC to enhance our version of GCC so we can upgrade our R version but can't do it for now. I think you should update dependencies of your package on CRAN (currently they are written as R (≥ 3.1), stringr (≥ 1.4)).

@rorynolan
Copy link
Owner

Yes you are right. I will do that today thank you 😊

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