When I run icc 12.0.2 on my MAC OSX then I get
No enough memory when malloc -1 bytes at shared/flexlm/api/flexlm.c:6788
Things works fine if I am root but not if I am ordinary user.
Your environment seems corrupted.
If you have booted 64bit version of OS and installed the Intel compiler in default location then you need to run the following:
$ source /opt/intel/composerxe/bin/compilervars.sh intel64
$ icc -V
Intel C Intel 64 Compiler XE for applications running on Intel 64, Version 22.214.171.124 Build 20110112
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.
I have used the following to try out the compiler:
$ cat tstcase.cpp
$ icc tstcase.cpp
ld: warning: -macosx_version_min not specificed, assuming 10.6