Greetings all, had to make an account just for this but thought it only fair to post my fix for this after getting a substantial amount of help from reading this thread (and several others online).

Nothing particularly special about my setup - an ~amd64 flavoured gentoo instance in a Virtualbox VM showing exactly the same problems as listed by yourselves. As I am unusually lazy I typically build my kernels with the very basic "sudo genkernel --bootloader=grub all" stanza and I do very little special configuration (this is just a test VM after all). However, little things like this annoy me so I set to work on it.

The key was step 2, where I changed "CONFIG_SCSI_LPFC=m" to "CONFIG_SCSI_LPFC=n": genkernel then immediately built me a functional kernel, as per usual. This seemed the obvious thing to do as the module build was obviously failing on this specific unit and popsUlfr had already suggested "sed -i 's/CONFIG_SCSI_LPFC=.*$/CONFIG_SCSI_LPFC=n/' .config" (and I doubt any of us actually want/need the "Emulex Linux Device Driver for Fibre Channel Host Bus Adapters"...)

Obviously I'm lazy and am happy with the generic kernel-config - the rest of you would have to disable CONFIG_SCSI_LPFC in whichever .config you're building with, presumably.

Hope this may help any of you still struggling with 3.4.0 and other poor souls who may find their way to this via google.

The key was step 2, where I changed "CONFIG_SCSI_LPFC=m" to "CONFIG_SCSI_LPFC=n": genkernel then immediately built me a functional kernel, as per usual. This seemed the obvious thing to do as the module build was obviously failing on this specific unit and popsUlfr had already suggested "sed -i 's/CONFIG_SCSI_LPFC=.*$/CONFIG_SCSI_LPFC=n/' .config" (and I doubt any of us actually want/need the "Emulex Linux Device Driver for Fibre Channel Host Bus Adapters"...)

You also had the higher version gcc (gcc 4.6.3) installed.
As ,emtioned earlier, for me (but I messed up completely at first by mixing them) it only worked after recompiling all relevant system tools using the same gcc version 4.5.3-r2 ( Recompiled glibc, genkernel en gentoolkitgentookit etc, ),

This is a bug in the kernel. Open /usr/src/linux-3.4.0/drivers/scsi/lpfc/lpfc_scsi.c in your favorite text editor and delete lines 2386, 2256, 2037 and 1900 in that order. Save the file and recompile. This issue should disappear.

This is a bug in the kernel. Open /usr/src/linux-3.4.0/drivers/scsi/lpfc/lpfc_scsi.c in your favorite text editor and delete lines 2386, 2256, 2037 and 1900 in that order. Save the file and recompile. This issue should disappear.