-
Notifications
You must be signed in to change notification settings - Fork 18
Compilation fails with current compiler #12
Comments
I have openSUSE Tumbleweed 64 bit Please help us to fix it All the best... |
For me using c++98 worked (tested with R 3.3.3 and g++ 6.3.0 on debian 9.4). sed -i '/^CXX *=/ s/g++/g++ -std=gnu++98/' /etc/R/Makeconf Maybe you have to change the path to your |
I'm having the same problem as @kk-1 . I'm sorry @bbaumgartl but I don't quite get your solution, I'm quite new to all this. Could you give me a step by step on how to get from sudo R CMD INSTALL /home/username/Downloads/omnetpp_0.6-1.tar.gz (which is failing) Failing that @kk-1 could you detail how you fixed the issue? |
No problem. |
@bbaumgartl Thanks a lot for the description, I managed to get the compiler running with gnu++98 as you suggested. I'm new to linux, its cool you can do all that in one line! I think it would take at least 10 clicks in windows! Unfortunately I am still running into the same error. It is however giving me more information on the error now, which is good. As @kk-1 mentioned above there seems to be an issue in compiling BigDecimal.cc Here is the appropriate section of the stack:
Do you know how to resolve the issue? I have also tried installing on a different computer entirely (linux based) and am running into the same issue there as well so I'm fairly sure its not something to do with my machine specifically. |
I am not sure if i can help you any further, since i don't have access to my original development environment anymore. uname -a
g++ --version
cat /etc/*-release
# If the one above does not work
hostnamectl | grep 'System\|Kernel\|Architecture' PS: If you are pasting commandline output or source code try to use code formatting so it is easier to read. You can find examples here https://guides.github.com/features/mastering-markdown/. ;) |
Thanks for your help here is the info:
I initially installed this on a clean copy of Ubuntu, so I'm hoping it should be reasonably easy to reproduce... but you never know with these things! |
This is no longer necessary, noticed that Michele Segata did a commit last year (20th September) that fixed this issue, it has not yet been incorporated into the official release which is why I couldn't compile. In the end it was just a matter of copying their change to BigDecimal.cc over and then it worked. This issue can probably be marked as closed now? Thanks for your help nonetheless, I've learnt a few things from the experience which is good! |
Before closing the issue, we should make sure that the segata changes are actually included in the next release |
The text was updated successfully, but these errors were encountered: