Repository navigation
print gcc version during install, towards #3291 - #4162
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4162 +/- ##
=======================================
Coverage 99.54% 99.54%
=======================================
Files 72 72
Lines 13915 13915
=======================================
Hits 13851 13851
Misses 64 64Continue to review full report at Codecov.
|
| # compiler info to output #3291 | ||
| if [ "$CC"=~"gcc" ]; then | ||
| GCCV=`${CC} -dumpfullversion -dumpversion` | ||
| echo "$CC $GCCV" | ||
| fi |
There was a problem hiding this comment.
@MichaelChirico any idea if it works in macosx bash?
there is a report #4410 (comment)
which seems to not print gcc version (see in link). I double checked that /usr/local/gfortran/bin/gcc satisfies "$CC"=~"gcc" condition on my ubuntu.
There was a problem hiding this comment.
What am I looking for? here is my output on OSX before the clang ... -c -o commands
R CMD INSTALL . --preclean
* installing to library ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library’
* installing *source* package ‘data.table’ ...
** using staged installation
zlib 1.2.11 is available ok
OpenMP supported
/usr/local/opt/llvm/bin/clang -fopenmp 4.2.1
** libs
I guess that second-last line is the $CC printout
There was a problem hiding this comment.
we don't detect clang, user is using gcc but for some reason it is still not being printed to output
There was a problem hiding this comment.
I also tried using /usr/local/gfortran/bin/gcc instead, here's my ~/.R/Makevars after:
GCC_LOC=/usr/local/gfortran
CC=$(GCC_LOC)/bin/gcc -fopenmp
CXX=$(GCC_LOC)/bin/g++ -fopenmp
CFLAGS=-g -O3 -Wall -pedantic -std=gnu99 -mtune=native -pipe
CXXFLAGS=-g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe
LDFLAGS=-L/usr/local/opt/gettext/lib -L$(GCC_LOC)/lib -Wl,-rpath,$(GCC_LOC)/lib
CPPFLAGS=-I/usr/local/opt/gettext/include -I$(GCC_LOC)/include
and then the same preamble output from R CMD INSTALL . --preclean:
* installing to library ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library’
* installing *source* package ‘data.table’ ...
** using staged installation
zlib 1.2.11 is available ok
OpenMP supported
/usr/local/gfortran/bin/gcc -fopenmp 6.3.0
** libs
There was a problem hiding this comment.
OK, it is casued by early exit
if [ $msg -ne 0 ]; then
...
exit 0
thanks
towards #3291