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

Compilation failing under Manjaro linux #71

Closed
karpfen opened this issue Oct 8, 2018 · 5 comments
Closed

Compilation failing under Manjaro linux #71

karpfen opened this issue Oct 8, 2018 · 5 comments

Comments

@karpfen
Copy link

karpfen commented Oct 8, 2018

Hi, I'm trying to install later from CRAN (I also tried the development version), but I keep running into an error when compiling the package. The failing call looks like this:

g++ -I"/usr/include/R/" -DNDEBUG -pthread -DTHREADS_H_SUPPORT=1 -I"/home/karpfen/R/lib/Rcpp/include" -I"/home/karpfen/R/lib/BH/include" -D_FORTIFY_SOURCE=2 -fopenmp -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c timestamp_win32.cpp -o timestamp_win32.o

Error message: make: *** No rule to make target '-fopenmp', needed by 'later.so'. Stop.

Relevant software info:

  • Linux version 4.14.74-1-MANJARO
  • Distribution: Manjaro Linux 18.0.0-rc
  • R: 3.5.1
  • g++: g++ (GCC) 8.2.1 20180831

Anything I could be doing wrong here?
Thanks for your help!

@wch
Copy link
Member

wch commented Oct 8, 2018

That's strange -- it looks like g++ is treating -fopenmp as a filename instead of a flag. If you're familiar with Docker, are you able to provide a Dockerfile that reproduces this? Are you able to install other packages that require compilation?

@karpfen
Copy link
Author

karpfen commented Oct 9, 2018

I didn't manage to get a docker image running, I'm not too familiar with it and don't have the time right now. But other compiled packages work as expected.

@karpfen
Copy link
Author

karpfen commented Nov 30, 2018

Update: I managed to install it with some help.

I had to remove $(SHLIB): @libs@ in src/Makevars.in. I don't understand what causes the error, though.

@wch
Copy link
Member

wch commented Jan 3, 2019

@karpfen I believe that PR #79 should fix this. Can you give that a try and let us know how it goes?

@karpfen
Copy link
Author

karpfen commented Jan 4, 2019

Thanks for the heads up! I just tried it and it works as expected now.

@karpfen karpfen closed this as completed Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants