0

I also tried make -icpc="CXX"
make -icc="cc" gives the error.

make: invalid option -- 'c'
make: invalid option -- 'c'
make: invalid option -- '='
make: invalid option -- 'c'
make: invalid option -- 'c'

Currently Loaded Module files:

gcc
make
python/2.7.11
openmpi/1.10.1-gnu
hdf5/1.8.10-intel
boost/1.60.0-gnu5
mkl/2013.5.192
mpich/3.1.2-gnu

MadHatter
  • 321
  • 7
  • 17
  • Can you add more explanations ? At least post (part of) your `Makefile`. – jmlemetayer Apr 20 '17 at 20:26
  • -include ../makefile.init RM := rm -rf # All of the sources participating in the build are defined here -include sources.mk -include oed/subdir.mk -include objects/subdir.mk -include subdir.mk -include objects.mk ifneq ($(MAKECMDGOALS),clean) ifneq ($(strip $(CC_DEPS)),) -include $(CC_DEPS) .. .. I added parts of the makefile. Thx! – MadHatter Apr 20 '17 at 21:25
  • What compiler flag are you trying to pass to the compiler? Are you trying to use a Make variable? – Beta Apr 21 '17 at 00:35
  • Nobody can respond to your questions this way! Please create a [Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve) – jmlemetayer Apr 21 '17 at 07:36
  • @beta: I want it to use cc and CXX instead of icpc and icc – MadHatter Apr 21 '17 at 16:49
  • yes, as a make variable. – MadHatter Apr 21 '17 at 18:58
  • You want *what* to use them? Are those variable names, or variable values? I think you are laboring under a deep misunderstanding of how makefiles work. Could you post your makefile, or at least the rule that would use these... things? – Beta Apr 21 '17 at 22:14
  • Did you already see that: http://stackoverflow.com/a/2969244/4872413 ? – devopsfun Apr 22 '17 at 21:03

0 Answers0