Skip to content

Error installing from source in R under Termux #358

@rrodrigueznt

Description

@rrodrigueznt

Hi! Installation in this environment:

~ $ radian --version
radian version: 0.5.12
r executable: /data/data/com.termux/files/usr/lib/R/bin/R
r version: 4.1.0
python executable: /data/data/com.termux/files/usr/bin/python3
python version: 3.9.7
~ $

Fails with the error:

* installing *source* package ‘cli’ ...
** package ‘cli’ successfully unpacked and MD5 sums checked                                                     ** using staged installation
** libs                                                 
gcc -I"/data/data/com.termux/files/usr/lib/R/include" -DNDEBUG   -I/data/data/com.termux/files/usr/include   -fpic  -g -O2  -c cleancall.c -o cleancall.o               
gcc -I"/data/data/com.termux/files/usr/lib/R/include" -DNDEBUG   -I/data/data/com.termux/files/usr/include   -fpic  -g -O2  -c errors.c -o errors.o                     
gcc -I"/data/data/com.termux/files/usr/lib/R/include" -DNDEBUG   -I/data/data/com.termux/files/usr/include   -fpic  -g -O2  -c init.c -o init.o                         
gcc -I"/data/data/com.termux/files/usr/lib/R/include" -DNDEBUG   -I/data/data/com.termux/files/usr/include   -fpic  -g -O2  -c progress-altrep.c -o progress-altrep.o   
gcc -I"/data/data/com.termux/files/usr/lib/R/include" -DNDEBUG   -I/data/data/com.termux/files/usr/include   -fpic  -g -O2  -c progress.c -o progress.o                 
gcc -I"/data/data/com.termux/files/usr/lib/R/include" -DNDEBUG   -I/data/data/com.termux/files/usr/include   -fpic  -g -O2  -c thread.c -o thread.o                     
thread.c:29:3: warning: implicit declaration of function 'pthread_setcanceltype' is invalid in C99 [-Wimplicit-function-declaration]                                      pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &old);                                                       ^                                                     
thread.c:29:25: error: use of undeclared identifier 'PTHREAD_CANCEL_ASYNCHRONOUS'                                 pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &old);                                                                             ^                               
thread.c:80:11: warning: implicit declaration of function 'pthread_cancel' is invalid in C99 [-Wimplicit-function-declaration]                                              
ret = pthread_cancel(tick_thread);                            ^                                             2 warnings and 1 error generated.                       
make: *** 
[/data/data/com.termux/files/usr/lib/R/etc/Makeconf:168: thread.o] Error 1                            
make: *** Waiting for unfinished jobs....               
ERROR: compilation failed for package ‘cli’             
* removing ‘/data/data/com.termux/files/usr/lib/R/library/cli’                                                  
ERROR: dependency ‘cli’ is not available for package ‘pillar’                                                   
* removing ‘/data/data/com.termux/files/usr/lib/R/library/pillar’                                               
ERROR: dependency ‘pillar’ is not available for package ‘tibble’                                                
* removing ‘/data/data/com.termux/files/usr/lib/R/library/tibble’                                                                                                       
The downloaded source packages are in                           ‘/data/data/com.termux/files/usr/tmp/RtmpX0GyDU/downloaded_packages’                                    
Updating HTML index of packages in '.Library'           
Making 'packages.html' ... done                         
Warning messages:                                       
1: In install.packages("tibble") :                        
installation of package ‘cli’ had non-zero exit status
2: In install.packages("tibble") :                        
installation of package ‘pillar’ had non-zero exit status                                                     3: In install.packages("tibble") :                        
installation of package ‘tibble’ had non-zero exit status                                                                                                             r$>

Same error when I use R console.

Please, any clue? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions