Skip to content

Does not compile under OpenBSD #1478

@liar666

Description

@liar666

Hello,

I've just installed OpenBSD 7.9 (latest, fresh from yesterday)

When upgrading my R packages I get:

> install.packages("Rcpp", lib="~/.R/x86_64-unknown-openbsd7.9-library/4.5/")
trying URL 'https://pbil.univ-lyon1.fr/CRAN/src/contrib/Rcpp_1.1.1-1.1.tar.gz'
Content type 'application/x-gzip' length 1883279 bytes (1.8 MB)
==================================================
downloaded 1.8 MB

* installing *source* package ‘Rcpp’ ...
** this is package ‘Rcpp’ version ‘1.1.1-1.1’
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘OpenBSD clang version 19.1.7’
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I../inst/include/  -I/usr/local/include    -fpic  -O2 -pipe   -c api.cpp -o api.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I../inst/include/  -I/usr/local/include    -fpic  -O2 -pipe   -c attributes.cpp -o attributes.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I../inst/include/  -I/usr/local/include    -fpic  -O2 -pipe   -c barrier.cpp -o barrier.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I../inst/include/  -I/usr/local/include    -fpic  -O2 -pipe   -c date.cpp -o date.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I../inst/include/  -I/usr/local/include    -fpic  -O2 -pipe   -c module.cpp -o module.o
c++ -std=gnu++17 -I"/usr/local/lib/R/include" -DNDEBUG -I../inst/include/  -I/usr/local/include    -fpic  -O2 -pipe   -c rcpp_init.cpp -o rcpp_init.o
c++ -std=gnu++17 -shared -L/usr/local/lib/R/lib -L/usr/local/lib -Wl,-R/usr/local/lib/R/lib -o Rcpp.so api.o attributes.o barrier.o date.o module.o rcpp_init.o -L/usr/local/lib/R/lib -lR
installing to /home/guigui/.R/x86_64-unknown-openbsd7.9-library/4.5/00LOCK-Rcpp/00new/Rcpp/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
R:/home/guigui/.R/x86_64-unknown-openbsd7.9-library/4.5/00LOCK-Rcpp/00new/Rcpp/libs/Rcpp.so: undefined symbol 'backtrace'
R:/home/guigui/.R/x86_64-unknown-openbsd7.9-library/4.5/00LOCK-Rcpp/00new/Rcpp/libs/Rcpp.so: undefined symbol 'backtrace_symbols'
Error: package or namespace load failed for ‘Rcpp’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/guigui/.R/x86_64-unknown-openbsd7.9-library/4.5/00LOCK-Rcpp/00new/Rcpp/libs/Rcpp.so':
  Cannot load specified object
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/guigui/.R/x86_64-unknown-openbsd7.9-library/4.5/Rcpp’
* restoring previous ‘/home/guigui/.R/x86_64-unknown-openbsd7.9-library/4.5/Rcpp’

The downloaded source packages are in
	‘/tmp/RtmpoyUWPd/downloaded_packages’
Warning message:
In install.packages("Rcpp", lib = "~/.R/x86_64-unknown-openbsd7.9-library/4.5/") :
  installation of package ‘Rcpp’ had non-zero exit status

According to vlang/v#3500 , this might be because Linux and BSD libc are not the same. Under BSD one needs to add -lexecinfo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions