Comments (11)
I was wrong this is not related to g++
/ gcc
since with version 12 compilation fails as well on aarch64. Now I think it is related to the TOML++ version used as per this GH issue
from rcpptoml.
Please try the main branch now. I also heard from the fellow Debian maintainer looking after this package there, and saw it failing on CRAN for e.g. i386. After discussing with upstream it became clear I should just set TOML_ENABLE_FLOAT16=0
(which the previous code / code in the 2.0 release tried to determine heuristically).
from rcpptoml.
Compilation works now! Tested on Raspbian OS and Ubuntu 22.04 LTS.
Any estimate for availability on CRAN?
from rcpptoml.
My apologies for sleeping on this when you first reported it. Should be fixed on CRAN by tomorrow.
from rcpptoml.
Hm, I am on Ubuntu 22.10 here which I upgrade every six months, and I still have g++-10
here -- it comes up as 10.4.0.
With that I install the package just fine:
edd@rob:~/git/rcpptoml(master)$ install.r
* installing *source* package found in current working directory ...
* installing *source* package ‘RcppTOML’ ...
** using staged installation
** libs
g++-10 -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/local/lib/R/site-library/Rcpp/include' -fpic -g -O3 -Wall -pipe -pedantic -Wno-ignored-attributes -c RcppExports.cpp -o RcppExports.o
g++-10 -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/local/lib/R/site-library/Rcpp/include' -fpic -g -O3 -Wall -pipe -pedantic -Wno-ignored-attributes -c parse.cpp -o parse.o
g++-10 -std=gnu++17 -Wl,-S -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -o RcppTOML.so RcppExports.o parse.o -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/00LOCK-rcpptoml/00new/RcppTOML/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (RcppTOML)
edd@rob:~/git/rcpptoml(master)$
So this would point so something local to your Raspberry Pi. One thing you should be able to do too is to stick with the previous version that was using another (older) TOML C++ library,
from rcpptoml.
May be specific to Raspberry Pi OS but not to my single Pi since other people are experiencing the same problem. I can personally stick to the previous version as long as no other packages depend on the new one but this brings problems in other scenarios. For example, the R4Pi project provides precompiled binaries for Raspberry Pi OS and a package repository that can't update certain packages is not that useful.
@sellorm do you have any additional details to contribute to this issue report?
from rcpptoml.
Well yes while it sucks when confronted with it (I too was once forced to survive on an old CentOS ...) and I can say here is that "that's life". C++17 is permitted at CRAN, and other packages use it / more oackages will use it going forward.
My $atwork package will switch to C++20 in the spring. These things do require toolchain updates every now and then.
from rcpptoml.
That's what I get for switching libraries: "new bugs". Sorry about that. I hope it gets sorted out. It is a more powerful library but as the saying goes, "nothing in life is free".
from rcpptoml.
FWIW, I have confirmed this is not specific to Raspberry Pi but to the aarch64 architecture in general. Compilation also fails on Ubuntu 22.04 LTS aarch64 on an Ampere Altra machine
from rcpptoml.
You were early. I now have a failure on arm at CRAN, a failure on i386 at CRAN (care less but still matters) and Debian has build woes too. I'll follow up with upstream.
from rcpptoml.
RcppTOML 0.2.1 is now on CRAN, so we can close this.
from rcpptoml.
Related Issues (20)
- Does UTF encoding work? HOT 4
- Odd interaction with plumber HOT 6
- Handling of special characters (line breaks etc..) HOT 28
- Problems with encoding (with non-ASCII chars) HOT 12
- can't install on R 3.5.2 ubuntu 14.04 HOT 6
- Support TOML v0.5.0? HOT 1
- thoughts some custom parsers which can wrap around rcpptoml HOT 2
- Switch to tinytest HOT 1
- error when installing HOT 4
- Cannot install the RcppTOML packages in a CentOS 7.x system HOT 12
- Consider newer C++ libraries to get TOML 1.0 compliance HOT 6
- compilation failed for package ‘RcppTOML’ HOT 4
- parse.o Error 1 compilation failed for package 'RcppTOML' when attempting package install. HOT 1
- Install problems with rcpptoml HOT 8
- Install problems with RcppTOML - headers not found HOT 5
- installation problems HOT 1
- compilation aborted for parse.cpp HOT 2
- RcppTOML requires newer version of Rcpp HOT 1
- Add support for writing toml
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rcpptoml.