Subject: Strange error under the linux emulation (was : Intel C++ compiler)
To: None <tech-kern@netbsd.org>
From: Vincent <10.50@free.fr>
List: current-users
Date: 12/29/2003 19:30:38
Hi,

continuing my Intel C++ compiler exploration, I just tried to compiled a
simple source, and got that error message :

/emul/linux/opt/intel_cc_80/bin/icc -c -I/usr/pkg/include
-I/usr/pkg/qt3/include -g -Wall -o main.o main.cpp 

mcpcom: Cannot allocate memory 
compilation aborted for main.cpp (code 100)

mcpcom seems to be the back-end of the compiler.

Running mcpcom at the prompt gives this :

/emul/linux/opt/intel_cc_80/bin/mcpcom: Plus de mémoire. (No more
memory)

Finally, a ktrace gives this :

16741 ktrace   EMUL  "netbsd"
[...]
16741 ktrace   CALL  execve(-1077940560,-1077939312,-1077939304)
16741 ktrace   NAMI  "/emul/linux/opt/intel_cc_80/bin/mcpcom"
16741 ktrace   NAMI  "/emul/linux/lib/ld-linux.so.2"
16741 ktrace   NAMI  "/emul/linux"
16741 ktrace   NAMI  "/emul/linux/lib/ld-linux.so.2"
16741 ktrace   RET   execve -1 errno 12 Cannot allocate memory

Which seems rather strange. Could it be that the binary claims to much
memory to be loaded ?

Vincent