It sounds like you need to change the C compiler, not for maven, but for cmake. 
 This FAQ entry addresses how to do so:
        
https://gitlab.kitware.com/cmake/community/wikis/FAQ#how-do-i-use-a-different-compiler

It gives three methods.  The third is marked “avoid”.  Why is explained in the 
following stackoverflow response:
        https://stackoverflow.com/a/13089688

It seems the first method (use of CC and CXX environment variables) is the best 
for your case.
Of course the Hadoop bits are only tested with the gcc compiler, so you’re 
kinda on your own if the compilers have a disagreement.  But if ‘icc’ means the 
Intel compiler, you’ll probably be fine.

Hope this helps,
—Matt


On Aug 24, 2019, at 9:27 PM, Bulldog20630405 <bulldog20630...@gmail.com> wrote:

i am trying to compile hadoop native libs with icc instead of gcc.

when running maven against the hadoop source it calls => cmake 

cmake is only version 2.x so the build fails; to fix this problem i removed 
cmake and make a symbolic link to of cmake to cmake3... which then works

however, it uses gcc; i am trying to compile with icc... how can i configure 
maven to use a different compiler?


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@hadoop.apache.org
For additional commands, e-mail: user-h...@hadoop.apache.org

Reply via email to