[Colsa-premise-users] Rstan compilation error

Szewczyk, Timothy Timothy.Szewczyk at unh.edu
Mon Oct 23 16:47:13 EDT 2017


Hello everyone,


I'm trying to run a model written in stan through the R package rstan<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_stan-2Ddev_rstan_wiki_Installing-2DRStan-2Don-2DMac-2Dor-2DLinux&d=DwIFAw&c=c6MrceVCY5m5A_KAUkrdoA&r=8HYwVFqhnt1sFxxpNmhS3rDbt5VWyVyex3AUIRkGrP3ToENh47_e6npSnUj4m4_x&m=FxWjtdHmkEiiYO4jZZZ6RYx3iCLNulN4i6gsjHOvbGk&s=UgGADUmXdjizykzEAl_wIhzTGwCLryxGkMLAWOWW9nE&e=>?, but I'm getting a compilation error. This happens with all models I've tried, so it is not an error in the model itself. Also, I'm able to run models on the head node with no problems. When I send it through slurm, it fails with this message in the output:


/mnt/lustre/software/linuxbrew/colsa/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [file1deeb59393118.so] Error 1

ERROR(s) during compilation: source code errors or compiler configuration errors!


and then:

Error in compileCode(f, code, language = language, verbose = verbose) :
  Compilation ERROR, function(s)/method(s) not created! In file included from /mnt/lustre/software/linuxbrew/colsa/lib/R/3.4/site-library/BH/include/boost/config.hpp:39:0,
                 from /mnt/lustre/software/linuxbrew/colsa/lib/R/3.4/site-library/BH/include/boost/math/tools/config.hpp:13,
                 from /mnt/lustre/software/linuxbrew/colsa/lib/R/3.4/site-library/StanHeaders/include/stan/math/rev/core/var.hpp:7,
                 from /mnt/lustre/software/linuxbrew/colsa/lib/R/3.4/site-library/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5,
                 from /mnt/lustre/software/linuxbrew/colsa/lib/R/3.4/site-library/StanHeaders/include/stan/math/rev/core.hpp:12,
                 from /mnt/lustre/software/linuxbrew/colsa/lib/R/3.4/site-library/StanHeaders/include/stan/math/rev/mat.hpp:4,
                 from /mnt/lustre/software/linuxbrew/colsa/lib/R/3.4/site-library/StanHeaders/include/stan/math.hpp:4,
                 from /mnt/lustre/software/lin
Calls: stan ... stan_model -> cxxfunctionplus -> cxxfunction -> compileCode


My guess is that either I need to update the path in the .sh script or something similar. Does ??anyone have any ideas? I'm new to working on a cluster, so it might be something very basic...

I attached the full output as well -- the lines pasted above are 40-44 and 520-529. Thanks for any help,



Tim

------------------------------------------
Tim Szewczyk ('sev-check'), PhD
Postdoctoral Research Associate
University of New Hampshire
Department of Natural Resources & the Environment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sr.unh.edu/pipermail/colsa-premise-users/attachments/20171023/b95e27e5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.output
Type: application/octet-stream
Size: 24229 bytes
Desc: test.output
URL: <https://lists.sr.unh.edu/pipermail/colsa-premise-users/attachments/20171023/b95e27e5/test-0001.output>


More information about the Colsa-premise-users mailing list