Skip to content

error in publishing a shiny app when load treeshap package #40

@HUI950319

Description

@HUI950319

[2024-05-16T03:21:53.790424017+0000] Building R package: treeshap (0.3.1.9000)
/mnt/packages/build /mnt
g++ -std=gnu++17 -I"/opt/R/4.3.1/lib/R/include" -DNDEBUG -I'/usr/lib/R/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c predict.cpp -o predict.o
g++ -std=gnu++17 -I"/opt/R/4.3.1/lib/R/include" -DNDEBUG -I'/usr/lib/R/Rcpp/include' -I/usr/local/include -fpic -g -O2 -c set_reference_dataset.cpp -o set_reference_dataset.o
g++ -std=gnu++17 -shared -L/opt/R/4.3.1/lib/R/lib -L/usr/local/lib -o treeshap.so RcppExports.o predict.o set_reference_dataset.o treeshap.o -L/opt/R/4.3.1/lib/R/lib -lR
Warning in untar2(tarfile, files, list, exdir, restore_times) :
skipping pax global extended headers

  • installing to library ‘/usr/lib/R’
  • installing source package ‘treeshap’ ...
    ** using staged installation
    ** libs
    using C++ compiler: ‘g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’
    RcppExports.o: file not recognized: file format not recognized
    collect2: error: ld returned 1 exit status
    make: *** [/opt/R/4.3.1/lib/R/share/make/shlib.mk:10: treeshap.so] Error 1
    ERROR: compilation failed for package ‘treeshap’
  • removing ‘/usr/lib/R/treeshap’## End Task Log ################################################################
    error Unhandled Exception: child_task=1416783889 child_task_status=failed: Error building image: Error building treeshap (0.3.1.9000). Build exited with non-zero status: 1
    stop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions