Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7942 Discussions

Install 12.0.2 on MAC OSX: No enough memory when malloc -1 bytes at shared/flexlm/api/flexlm.c:6788

EAnde4
Beginner
239 Views
Hi

When I run icc 12.0.2 on my MAC OSX then I get


eda@gentofte:~$ icc
No enough memory when malloc -1 bytes at shared/flexlm/api/flexlm.c:6788
Abort trap


Things works fine if I am root but not if I am ordinary user.

Any suggestions.

Erling
0 Kudos
1 Reply
Om_S_Intel
Employee
239 Views

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 12.0.2.142 Build 20110112

Copyright (C) 1985-2011 Intel Corporation. All rights reserved.


I have used the following to try out the compiler:

$ cat tstcase.cpp

#include

int main()

{

printf("Hello world.\n");

return 0;

}

$ icc tstcase.cpp

ld: warning: -macosx_version_min not specificed, assuming 10.6

$ ./a.out

Hello world.

0 Kudos
Reply