Community
cancel
Showing results for 
Search instead for 
Did you mean: 
mericmeydan
Beginner
118 Views

internal error: 0_7940

Hi,

whatever .c file I try, I get the same error, even with a simplest "hello world" code. As seen below...

-----------------------------
~$ icc -std=c99 hello.c
(0): internal error: 0_7940

compilation aborted for hello.c (code 4)
-----------------------------

when I looked for internal error 0_7940 unfortunately I couldn't find anything. Any suggestions?

PS: this is the hello.c code:

#include

int main (void)
{
printf("Hello world\\n");
return 0;
}

as I mentioned above, it does not bother which code it is. :(
0 Kudos
5 Replies
Mark_S_Intel1
Employee
118 Views

Could you please let us know what version of the compiler you are using (e.g. icc -V), and the Linux* distribution, glibc & kernel versions, etc ?

Thanks,
--mark
bernaske
New Contributor I
118 Views

Hi,

i can't verify this error, i have compile Your test program hello.c on my workstation
with the composer XE compiler 12.0 and the same options -std=c99

my system: openSUSE 11.4 M3 64 Bit release,
kernel: 2.6.37-rc2-1-desktop
glibc: 2.11.2-8.1

no compile , build normal execute file, run with ./hello no problems

mericmeydan
Beginner
118 Views

Hi Mark,

the information you demanded is below. thanks for your interest.


~$ icc -v
Version 12.0.0

~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"

~$ /lib/libc.so.6
GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7.5) stable release version 2.11.1, by Roland McGrath et al.
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.4.3.
Compiled on a Linux >>2.6.24-28-server<< system on 2010-10-22.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B

~$ uname -r
2.6.32-25-generic

~$ sudo lshw -C CPU
*-cpu
description: CPU
product: Intel Atom CPU N475 @ 1.83GHz
vendor: Intel Corp.
physical id: e
bus info: cpu@0
version: Intel Atom CPU N475 @ 1.83GHz
slot: CPU
size: 1833MHz
capacity: 1833MHz
width: 64 bits
clock: 667MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx x86-64 constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm cpufreq


Mark_S_Intel1
Employee
118 Views

If you use capital "V" as in "icc -V" you will get the architecture, and build version of the compiler than just the version number:

$ icc -V
Intel C Intel 64 Compiler XE for applications running on Intel 64, Version 12.0.0.084 Build 20101006
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.

Did the Intel compiler install correctly on your Ubuntu system without any errors or warnings?
Please see the article at http://software.intel.com/en-us/articles/using-intel-compilers-for-linux-with-ubuntu/?wapkw=%28ubunt... which discusses Intel compiler installation on Ubuntu. It is focused on icc 11.1 but the information also applies to icc 12.0.

--mark
mericmeydan
Beginner
118 Views

~$ icc -V
Intel C Intel 64 Compiler XE for applications running on Intel 64, Version 12.0.0.084 Build 20101006
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

While installation process I didn't get any warning or errors. At the end of installation I got the following screen...

*************************************************************************************

Step no: 6 of 6 | Complete
--------------------------------------------------------------------------------
Thank you for installing and for using the
Intel Composer XE 2011 for Linux*.

Support services start from the time you install or activate your product, so
please create your support account now in order to take full advantage of your
product purchase. Your Subscription Service support account provides access to
free product updates interactive issue management, technical support, sample
code, and documentation.

To create your support account, please visit the Subscription Services web site
https://registrationcenter.intel.com/RegCenter/registerexpress.aspx?clientsn=XXXX-XXXXXXXX

To get started using Intel Composer XE 2011 located in
/opt/intel/composerxe-2011.0.084:
- Set the environment variables for a terminal window using one of the following
(replace "intel64" with "ia32" if you are using a 32-bit platform).
For csh/tcsh:
$ source install-dir/bin/compilervars.csh intel64
For bash:
$ source install-dir/bin/compilervars.sh intel64
To invoke the installed compilers:
For C++: icpc
For C: icc
For Fortran: ifort
To get help, append the -help option or precede with the man command.
- To view a table of getting started documents:
install-dir/Documentation/en_US/documentation_c.htm.

Movies and additional training are available on our website at
www.intel.com/software/products.
--------------------------------------------------------------------------------
q. Quit [default]
--------------------------------------------------------------------------------
Please type a selection or press "Enter" to accept default choice :


*************************************************************************************

~$ icc
'icc' command not found but 24 similar present <--- translated this part into English, so may include errors
icc: command not found
~$ source /opt/intel/composerxe-2011.0.084/bin/compilervars.sh intel64
~$ icc hello.c
(0): internal error: 0_7940

compilation aborted for hello.c (code 4)


By the way, what does "internal error: 0_7940" includes? If I learn maybe I can try to find out what I did wrong while installation, or after...
Reply