]> git.openfabrics.org - compat-rdma/docs.git/commitdiff
Add ofa_kernel compilation WA for PPC64
authorVladimir Sokolovsky <vlad@mellanox.co.il>
Thu, 16 Dec 2010 09:26:12 +0000 (11:26 +0200)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Thu, 16 Dec 2010 09:26:12 +0000 (11:26 +0200)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
Troubleshooting.txt

index 3407c6562074d17a1a355e10f65d3f4c3067623d..d96ff647c4ecf98e6f851571266c3365b52d6429 100644 (file)
@@ -1,9 +1,12 @@
-=========================================================================================
+================================================================================
 MPI compilation fails with PGI compiler:
 PGC-F-0249-#error -- "Never use <bits/byteswap.h> directly; include <byteswap.h> 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:
+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 <bits/byteswap.h> directly; include <byteswap.h> instead."
@@ -15,3 +18,20 @@ Code:
 #endif
 you can work around the problem.
 
+================================================================================
+ofa_kernel compilation fails on PPC64 witj kernel >= 2.6.32
+================================================================================
+
+Compilation Error:
+In file included from /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/drivers/net/mlx4/main.c:41:
+include/linux/io-mapping.h:24:23: error: asm/iomap.h: No such file or directory
+make[3]: *** [/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/drivers/net/mlx4/main.o] Error 1
+make[2]: *** [/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/drivers/net/mlx4] Error 2
+make[1]: *** [_module_/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2] Error 2
+make[1]: Leaving directory `/usr/src/kernels/2.6.32-71.el6.ppc64'
+make: *** [kernel] Error 2
+
+Workaround:
+$ touch /lib/modules/`uname -r`/build/arch/powerpc/include/asm/iomap.h
+
+Then, rerun OFED installation