Hello!
I unintentionally upgraded my kernel from 4.19.118 to 5.4.51 (apt upgrade -- oops). On the previous kernel version, I had a successful working build of linux-gpib. I realize that the latest tested kernel is 5.4.39 however, since I'm in this boat now, I attempted to rebuild and install linux-gpib on the new kernel version. However, this time I am getting build errors! If more info is needed, I can provide. Any thoughts/ideas/help are greatly appreciated!
Here is my setup:
Raspberry Pi 4, 5.4.51-v7l+
linux-gpib-4.3.3, revision 1916
I got the following errors when running sudo make inside of /home/pi/linux-gpib-code/linux-gpib-kernel/:
fatal: [raspberrypi]: FAILED! => changed=false
cmd: /usr/bin/make
msg: |-
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cb7210/cb7210_init.c: In function cb_pci_attach:
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cb7210/cb7210_init.c:452:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nec_priv->iobase = (void*)(pci_resource_start(cb_priv->pci_device, 1));
^
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cb7210/cb7210_init.c:456:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nec_priv->iobase = (void*)(pci_resource_start(cb_priv->pci_device, 0));
^
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cec/init.c: In function cec_pci_attach:
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cec/init.c:260:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nec_priv->iobase = (void*)(pci_resource_start(cec_priv->pci_device, 3));
^
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/hp_82341/hp_82341_init.c: In function hp_82341_attach:
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/hp_82341/hp_82341_init.c:468:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
iobase = (void*)(pnp_port_start(dev, 0));
^
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/ines/ines_init.c: In function ines_common_pci_attach:
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/ines/ines_init.c:481:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nec_priv->iobase = (void*)(pci_resource_start(ines_priv->pci_device, found_id.gpib_region));
^
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tnt4882/tnt4882_init.c: In function ni_isa_attach_common:
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tnt4882/tnt4882_init.c:715:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
iobase = (void*)(pnp_port_start(dev, 0));
^
FATAL: parse error in symbol dump file
make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[1]: *** [Makefile:1622: modules] Error 2
make: *** [Makefile:10: all] Error 2
rc: 2
stderr: |-
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cb7210/cb7210_init.c: In function cb_pci_attach:
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cb7210/cb7210_init.c:452:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nec_priv->iobase = (void*)(pci_resource_start(cb_priv->pci_device, 1));
^
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cb7210/cb7210_init.c:456:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nec_priv->iobase = (void*)(pci_resource_start(cb_priv->pci_device, 0));
^
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cec/init.c: In function cec_pci_attach:
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cec/init.c:260:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nec_priv->iobase = (void*)(pci_resource_start(cec_priv->pci_device, 3));
^
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/hp_82341/hp_82341_init.c: In function hp_82341_attach:
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/hp_82341/hp_82341_init.c:468:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
iobase = (void*)(pnp_port_start(dev, 0));
^
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/ines/ines_init.c: In function ines_common_pci_attach:
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/ines/ines_init.c:481:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nec_priv->iobase = (void*)(pci_resource_start(ines_priv->pci_device, found_id.gpib_region));
^
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tnt4882/tnt4882_init.c: In function ni_isa_attach_common:
/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tnt4882/tnt4882_init.c:715:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
iobase = (void*)(pnp_port_start(dev, 0));
^
FATAL: parse error in symbol dump file
make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[1]: *** [Makefile:1622: modules] Error 2
make: *** [Makefile:10: all] Error 2
stderr_lines: <omitted>
stdout: |-
/usr/bin/make -C /lib/modules/`uname -r`/build V=0 modules \
M="/home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib" \
GPIB_TOP_DIR=/home/pi/linux-gpib-code/linux-gpib-kernel \
CONFIG_GPIB_ISA="" \
GPIB_CONFIG_PCMCIA="0" \
HAVE_DEV_OF_NODE= \
GPIB_CONFIG_KERNEL_DEBUG=0
make[1]: Entering directory '/usr/src/linux-headers-5.4.51-v7l+'
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/agilent_82350b/agilent_82350b_init.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/agilent_82350b/agilent_82350b_read.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/agilent_82350b/agilent_82350b_write.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/agilent_82350b/agilent_82350b_interrupt.o
LD [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/agilent_82350b/agilent_82350b.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/agilent_82357a/agilent_82357a.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cb7210/cb7210_init.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cb7210/cb7210_cs.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cb7210/interrupt.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cb7210/cb7210_aux.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cb7210/cb7210_read.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cb7210/cb7210_write.o
LD [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cb7210/cb7210.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cec/init.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cec/interrupt.o
LD [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/cec/cec_gpib.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/eastwood/fluke_gpib.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/fmh_gpib/fmh_gpib.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/hp_82335/hp82335_init.o
LD [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/hp_82335/hp82335.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/hp_82341/hp_82341_init.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/hp_82341/hp_82341_read.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/hp_82341/hp_82341_write.o
LD [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/hp_82341/hp_82341.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/ines/ines_init.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/ines/ines_cs.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/ines/interrupt.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/ines/ines_util.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/ines/ines_read.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/ines/ines_write.o
LD [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/ines/ines_gpib.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/nec7210/cmd.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/nec7210/init.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/nec7210/read.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/nec7210/util.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/nec7210/write.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/nec7210/nec7210_aux.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/nec7210/interrupt.o
LD [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/nec7210/nec7210.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/ni_usb/ni_usb_gpib.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/osfuncs.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/osinit.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/ostimer.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/osutil.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/autopoll.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/ibcac.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/ibcmd.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/ibgts.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/ibinit.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/iblines.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/ibread.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/ibrpp.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/ibrsv.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/ibsic.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/ibsre.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/ibutil.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/ibwait.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/ibwrite.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/device.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/event.o
LD [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/sys/gpib_common.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tms9914/cmd.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tms9914/init.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tms9914/read.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tms9914/util.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tms9914/write.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tms9914/tms9914_aux.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tms9914/interrupt.o
LD [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tms9914/tms9914.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tnt4882/tnt4882_init.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tnt4882/mite.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tnt4882/interrupt.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tnt4882/tnt4882_cs.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tnt4882/tnt4882_aux.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tnt4882/tnt4882_write.o
CC [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tnt4882/tnt4882_read.o
LD [M] /home/pi/linux-gpib-code/linux-gpib-kernel/drivers/gpib/tnt4882/tnt4882.o
Building modules, stage 2.
MODPOST 15 modules
make[1]: Leaving directory '/usr/src/linux-headers-5.4.51-v7l+'
UPDATE: I removed the linux-gpib source files and redownloaded via SVN. I think the issue was due to using the same build folder as was used when building the previous kernel. Good news: linux-gpib works on 5.4.51!