[zeromq-dev] Intel Compiler 11.1 build script for OpenPGM 2

Steven McCoy steven.mccoy at miru.hk
Thu Jan 21 07:01:52 CET 2010


Tested on Ubuntu 8.04 works fine, even though compiler only lists 9.04 as
the supported platform.  Scons has not be updated for ICC 11.1 on Linux and
needs a small patch for the new directory structure,

--- /usr/lib/scons/SCons/Tool/intelc.py 2007-12-04 04:20:54.000000000 +0800
+++ /tmp/intelc.py 2010-01-21 13:50:46.000000000 +0800
@@ -210,6 +210,10 @@
             # Typical dir here is /opt/intel/cc/9.0 for IA32,
             # /opt/intel/cce/9.0 for EMT64 (AMD64)
             versions.append(re.search(r'([0-9.]+)$', d).group(1))
+        for d in glob.glob('/opt/intel/Compiler/*'):
+            # Typical dir here is /opt/intel/cc/9.0 for IA32,
+            # /opt/intel/cce/9.0 for EMT64 (AMD64)
+            versions.append(re.search(r'([0-9.]+)$', d).group(1))
     versions = uniquify(versions)       # remove dups
     versions.sort(vercmp)
     return versions

I removed unsupported warnings, removed some of the default overly chatty
warnings, and set suitable compatibility flags.

Unsupported warnings:

<  '-Wextra',
<  '-Wfloat-equal',
<  '-Wunsafe-loop-optimizations',
<  '-Wbad-function-cast',
<  '-Wcast-qual',
<  '-Wcast-align',
<  '-Waggregate-return',
<  '-Wold-style-definition',
<  '-Wmissing-noreturn',
<  '-Wmissing-format-attribute',
<  '-Wredundant-decls',
<  '-Wnested-externs',
<  '-pedantic',

Removed warnings not raised in GCC:

> #  981: operands are evaluated in unspecified order
>  '-wd981',
> # 2259: non-pointer conversion from "*" to "*" may lose significant bits
>  '-wd2259',

Compatibility options for C99 standard with GNU extensions:

<  '-std=gnu99',
>  '-std=c99',
>  '-gcc-version=420',

Removed a conflict with the Intel Math library:

<  '-lm'

Updated unknown GDB debugging flag specifier:

< debug.Append(CCFLAGS = '-ggdb', LINKFLAGS = '-gdb')
> debug.Append(CCFLAGS = '-g', LINKFLAGS = '-g')

Found a bug with the ICC headers needing to temporarily disabled RTC
support:

<  '-DCONFIG_HAVE_RTC',
> # defect with ICC headers: __invalid_size_argument_for_IOC
> # '-DCONFIG_HAVE_RTC',

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100121/da04d2ae/attachment.htm>


More information about the zeromq-dev mailing list