lpsymphony using g++ on Mac OS X compilation of ._lp_symphony.cc failure
0
0
Entering edit mode
tohsumi • 0
@tohsumi-18510
Last seen 6.0 years ago

Dear all, I am trying to install lpsymphony on my Mac.   I have homebrew installed with g++-8.   R, by default, used clang++.

Backstory: I tried using the default setup, but got an Installing lpsymphony on Mac OS X.   I think it may be that there has to be two spaces after -TP, as I noticed other clang++ commands with -TP worked all right, but there was always two spaces after it.   I'm not sure, if it's that or something else.

Making no progress with that, having tried a variety of alterations, I am trying to use g++ by altering the ~/.R/Makevars to:

CC=gcc-8
CXX=g++-8
CFLAGS=-ggdb -O2
CXXFLAGS=-ggdb -O2

and trying to install lpsymphony that way.   Unfortunately, I am getting the error message:

make[3]: Nothing to be done for `install-data-am'.
touch SYMPHONY.ts
g++-8 -I"/usr/local/Cellar/r/3.5.1/lib/R/include" -DNDEBUG -ISYMPHONY/include  -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include   -fPIC  -ggdb -O2 -c ._lp_symphony.cc -o ._lp_symphony.o
._lp_symphony.cc:1:1: warning: null character(s) ignored
     Mac OS X                2   �      �                                      ATTR       �   �   <                  �   <  com.apple.quarantine q/0081; ....

and was wondering what is going on here.   It seems strange that it is compiling a hidden file.   One thing is that if I get out of R, download lpsymphony, and go into the symphony directory, I can do ./configure and make and all is well using the clang++ compiler.   I am guessing this is some sort of configuration problem, either in Makevars or I have to pass something correctly to install.packages("[filename]", repos = NULL, type = "source").

Any thoughts you have on either this error or perhaps getting it to work with the clang++ compiler would be much appreciated.   Many thanks.

lpsymphony • 876 views
ADD COMMENT

Login before adding your answer.

Traffic: 824 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6