From: Vladimir Sokolovsky Date: Wed, 15 Dec 2010 09:11:11 +0000 (+0200) Subject: Added Troubleshooting.txt X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=ec9005440d347eb02f1bdb22555454d8291c21d9;p=~ardavis%2Fofed_docs%2F.git Added Troubleshooting.txt Signed-off-by: Vladimir Sokolovsky --- diff --git a/Troubleshooting.txt b/Troubleshooting.txt new file mode 100644 index 0000000..3407c65 --- /dev/null +++ b/Troubleshooting.txt @@ -0,0 +1,17 @@ +========================================================================================= +MPI compilation fails with PGI compiler: +PGC-F-0249-#error -- "Never use directly; include instead." (/opt/pgi/linux86/8.0-1/include/bits/byteswap.h: 21) +========================================================================================= + +The issue caused by the system "endian.h" file that directly include "bits/byteswap.h". This means in PGI version of "bits/byteswap.h, "endian.h" needs to be added to the list of header files that are allowed to call it directly. So by changing line 20 of "/opt/pgi/linux86/8.0-1/include/bits/byteswap.h" from: +Code: +#if !defined _BYTESWAP_H && !defined _NETINET_IN_H +# error "Never use directly; include instead." +#endif +to +Code: +#if !defined _BYTESWAP_H && !defined _NETINET_IN_H && !defined _ENDIAN_H +# error "Never use directly; include instead." +#endif +you can work around the problem. +