-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nanodbc.cpp compile issue with codecvt header file #377
Comments
I have installed previous version 1.2.2 and works for me with below R command
|
I experience the same problem, when trying to install odbc 1.2.3 on our Corporate R-Studio Server running Suse Enterprise Linux.
|
I could resolve the problem by putting the following line in my $HOME/.R/Makevars file:
As I have only a very unclear idea, what exactly I am doing there, please use with caution. |
Even with this workaround I could not compile the CRAN version from source:
My environment is R on Windows:
IMHO this is a high prio bug since
|
Related to #375 See esp. the build error on r-oldrel-windows-ix86+x86_64: |
This error also occurs on the following System: R version 3.6.0 (2019-04-26) |
I am having the same issue with 1.2.3 installation of "odbc" |
Any updates yet on this issue? |
it worked ...thank you |
@krushnach80 Great news 👍 Could you please post some instructions here how you have installed the package so that it worked (I guess via At least the CRAN version 1.2.3 is still not installable (same error message) so new CRAN release may still be required... |
I did run this devtools::install_version('odbc', '1.2.2', repos="https://cran.rstudio.com/") and it worked |
@krushnach80 I think the bug is still there at CRAN. Version 1.2.2 never had a problem and the Windows binary version at CRAN is 1.2.2 but the source version is 1.2.3 (which is the one causing the build error). If I try to install from CRAN via I have also just tried to install via So I would say the bug is still open in the github as well as CRAN version... PS: Using version 1.2.2 is no good option for me since 1.2.3 has a few important bug fixes for me... |
Does following r-lib/cpp11#69 help?
I could install 1.2.3 when my g++ version was updated. |
@harrismcgehee what's your g++ version? I am asking because I got the same issue on the following system (g++ 4.8.5): R version 3.6.1 (2019-07-05) |
@dkjoluju I have just tried again to install the source pkg from CRAN and still get the same error.
Yes, it may be related to an old g++ version but this version was delivered together with rtools: During the installation a typical compiler call looks like:
My g++/gcc versions are newer (4.9.3) but not the newest:
devtools says:
SessionInfo is still the same:
|
How did you install a newer g++ version (on Windows)? Just via Rtools? According to the Rtools web site Rtools 3.5 is the correct version for my R version 3.6.1. If an old version of g++ in Rtools should be the reason for the problem it would mean that |
@dkjoluju
I use
@aryoda |
Fixed by a713d4e |
Try Lowering down the version of BH package to 1.78.0-0:
|
Issue Description and Expected Result
During the installation of odbc with R install function ( install.packages('odbc', type = 'source') ) nanodbc.cpp required codecvt header file.
Database
Reproducible Example
Session Info
The text was updated successfully, but these errors were encountered: