[ofw] Workaround to the __ptr64 compiler crash building the IB stack under the WDK

Jan Bottorff jbottorff at xsigo.com
Thu Jul 26 14:32:38 PDT 2007


The folks at Microsoft have a viable workaround to the compiler crash
seen when building the IB stack under the Vista/W2k8 WDK. There is a
problem in the WDK compiler when processing function pointers that have
the __ptr64 attribute that are in a structure. When doing a 32-bit
checked build, the compiler would crash with a C1001 error on some of
the IB stack source files.

 

The workaround seems to be setting the /Os compiler option. This enables
one of the optimizations on the checked build. An easy way to enable
this is to set the environment variable MSC_OPTIMIZATION=/Os when
building the IB stack. Adding the MSC_OPTIMIZATION setting in the
SOURCES files, controlled by an !if for only checked builds, for only
those projects that have this compiler problem would be the minimal
impact. The free build does crash the compiler, neither does do the
64-bit builds.

 

This compiler problem happens on the released Vista 6000 WDK and the
latest 6001 W2K8 WDK. Long term, Microsoft may fix the compiler, but for
the immediate future, we will have to use this workaround.

 

There are a few other issues in the source tree under the WDK but they
all seem solvable with some minor fixes.

 

Jan Bottorff

Windows Systems Architect

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20070726/9b45586d/attachment.html>


More information about the ofw mailing list