From: Maynard Johnson <maynardj@us...> - 2009-03-12 16:51:35
I've encountered a couple of problems trying to build the driver on a PPC970 PowerMac G5 running rawhide (Fedora 11 alpha release). I am using source code that I pulled down earlier this week. This source builds fine on a SLES 10 POWER5 system.
1. "gcc: -pg and -fomit-frame-pointer are incompatible"
This appears to be something that gcc 4.4 catches. I removed the -fomit-frame-pointer from the EXTRA_CFLAGS in the driver Makefile to get around this problem.
2. "pi_init_mm_address undeclared"
I get this error on Fedora 11 because the kernel is 2.6.29, so we end up trying to use that symbol at line 329 of pi_btrace.c:
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,99)
struct mm_struct * p_init_mm = (struct mm_struct *)pi_init_mm_address;
struct mm_struct * p_init_mm = &init_mm;
The driver Makefile generates pi_init_mm_address into the hooks.h file, but only on x86. How should this be fixed for other arch's?