Skip to content
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

recipe for target 'FastStore.o' failed ubuntu 14.04 #51

Closed
kuzmenkov111 opened this issue Apr 16, 2017 · 4 comments
Closed

recipe for target 'FastStore.o' failed ubuntu 14.04 #51

kuzmenkov111 opened this issue Apr 16, 2017 · 4 comments
Assignees
Labels

Comments

@kuzmenkov111
Copy link

Hi! Thank you for great package!

I have some broblem: when I try to install it on UBUNTU 14.04 on Microsoft R Open 3.3.1
from github or cran it fails (recipe for target 'FastStore.o' failed).

@MarcusKlik
Copy link
Collaborator

MarcusKlik commented Apr 16, 2017

Hi @kuzmenkov111 , thanks for the report on this issue. Apparently, Microsoft R Open does not work well with the Makevars setting CXX_STD = CXX11 (see this issue on the Microsoft-R-Open repository. I checked and the issue is still there with R Open version 3.3.3. To work around the problem, one option is to manually change the Makevars file in the src directory and remove CXX_STD = CXX11 and add -std=c++11 to the PKG_CPPFLAGS line (you can clone the fst repo using git). After the Makevars change, fst builds correctly using R CMD INSTALL fst (running one level above the fst repository).

The first 2 lines of Makevars should read (latest of branch develop):

PKG_CPPFLAGS =  -std=c++11 -I. -Ifstcore -ILZ4 -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -Ifstcore/logical -Ifstcore/integer -Ifstcore/double -Icharacter -Ifactor -Ifstcore/interface
PKG_LIBS     = -L. -lLZ4 -lZSTD -lFRAME -lTYPES

Hope this works for you, it would be nice if Microsoft would solve this issue to be more compatible with the R toolchain (and update their compilers while they are at it :-))

@kuzmenkov111
Copy link
Author

Thank you!!!! It works!

@MarcusKlik
Copy link
Collaborator

Great, thanks for reporting the issue!

@MarcusKlik MarcusKlik self-assigned this Apr 18, 2017
@MarcusKlik
Copy link
Collaborator

Closing, as this is a confirmed bug in Microsoft R Open (see also eddelbuettel/rcppbdt#3 (comment) and the remarks from @eddelbuettel)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants