Skip to contentSkip to conversation

linux-next: build failure after merge of the staging tree

DISCUSSION Stephen Rothwell 3 participants 5 messages Oct 15, 2024 – Dec 4, 2024 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the staging tree, today's linux-next build (powerpc allyesconfig) failed like this:

ld: warning: discarding dynamic section .glink
ld: warning: discarding dynamic section .plt
ld: linkage table error against `nec7210_board_online'
ld: stubs don't match calculated size
ld: can not build stubs: bad value
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_t1_delay':
fmh_gpib.c:(.text+0x5e8): undefined reference to `nec7210_t1_delay'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_serial_poll_status':
fmh_gpib.c:(.text+0x70c): undefined reference to `nec7210_serial_poll_status'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_secondary_address':
fmh_gpib.c:(.text+0x7e4): undefined reference to `nec7210_secondary_address'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_primary_address':
fmh_gpib.c:(.text+0x898): undefined reference to `nec7210_primary_address'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_update_status':
fmh_gpib.c:(.text+0x958): undefined reference to `nec7210_update_status'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_parallel_poll_response':
fmh_gpib.c:(.text+0xa18): undefined reference to `nec7210_parallel_poll_response'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_parallel_poll':
fmh_gpib.c:(.text+0xad8): undefined reference to `nec7210_parallel_poll'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_parallel_poll_configure':
fmh_gpib.c:(.text+0xb98): undefined reference to `nec7210_parallel_poll_configure'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_disable_eos':
fmh_gpib.c:(.text+0xc4c): undefined reference to `nec7210_disable_eos'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_enable_eos':
fmh_gpib.c:(.text+0xce4): undefined reference to `nec7210_enable_eos'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_remote_enable':
fmh_gpib.c:(.text+0xd98): undefined reference to `nec7210_remote_enable'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_interface_clear':
fmh_gpib.c:(.text+0xe58): undefined reference to `nec7210_interface_clear'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_request_system_control':
fmh_gpib.c:(.text+0xf18): undefined reference to `nec7210_request_system_control'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_go_to_standby':
fmh_gpib.c:(.text+0xfcc): undefined reference to `nec7210_go_to_standby'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_take_control':
fmh_gpib.c:(.text+0x1098): undefined reference to `nec7210_take_control'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_command':
fmh_gpib.c:(.text+0x1170): undefined reference to `nec7210_command'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_write':
fmh_gpib.c:(.text+0x123c): undefined reference to `nec7210_write'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_read':
fmh_gpib.c:(.text+0x133c): undefined reference to `nec7210_read'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_device_match':
fmh_gpib.c:(.text+0x15d0): undefined reference to `gpib_match_device_path'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_init.isra.0':
fmh_gpib.c:(.text+0x3164): undefined reference to `nec7210_board_reset'
ld: fmh_gpib.c:(.text+0x31a4): undefined reference to `nec7210_set_handshake_mode'
ld: fmh_gpib.c:(.text+0x335c): undefined reference to `nec7210_board_online'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_pci_attach_impl':
fmh_gpib.c:(.text+0x35a0): undefined reference to `gpib_pci_get_device'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_pci_detach':
fmh_gpib.c:(.text+0x5018): undefined reference to `nec7210_board_reset'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_detach':
fmh_gpib.c:(.text+0x5508): undefined reference to `nec7210_board_reset'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_fifo_read_countable':
fmh_gpib.c:(.text+0x6168): undefined reference to `nec7210_set_reg_bits'
ld: fmh_gpib.c:(.text+0x6180): undefined reference to `nec7210_set_reg_bits'
ld: fmh_gpib.c:(.text+0x6634): undefined reference to `nec7210_set_reg_bits'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_fifo_write_countable':
fmh_gpib.c:(.text+0x6f1c): undefined reference to `nec7210_set_reg_bits'
ld: fmh_gpib.c:(.text+0x6f34): undefined reference to `nec7210_set_reg_bits'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o:fmh_gpib.c:(.text+0x6f98): more undefined references to `nec7210_set_reg_bits' follow
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_internal_interrupt':
fmh_gpib.c:(.text+0x80a4): undefined reference to `push_gpib_event'
ld: fmh_gpib.c:(.text+0x80c4): undefined reference to `nec7210_interrupt_have_status'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_dma_callback':
fmh_gpib.c:(.text+0x887c): undefined reference to `nec7210_set_reg_bits'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_fifo_read':
fmh_gpib.c:(.text+0x8a84): undefined reference to `nec7210_set_reg_bits'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_dma_write':
fmh_gpib.c:(.text+0x95d8): undefined reference to `nec7210_set_reg_bits'
ld: fmh_gpib.c:(.text+0x95f0): undefined reference to `nec7210_set_reg_bits'
ld: fmh_gpib.c:(.text+0x9a88): undefined reference to `nec7210_set_reg_bits'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o:fmh_gpib.c:(.text+0xac38): more undefined references to `nec7210_set_reg_bits' follow
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_exit_module':
fmh_gpib.c:(.exit.text+0x38): undefined reference to `gpib_unregister_driver'
ld: fmh_gpib.c:(.exit.text+0x44): undefined reference to `gpib_unregister_driver'
ld: fmh_gpib.c:(.exit.text+0x50): undefined reference to `gpib_unregister_driver'
ld: fmh_gpib.c:(.exit.text+0x5c): undefined reference to `gpib_unregister_driver'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_init_module':
fmh_gpib.c:(.init.text+0x100): undefined reference to `gpib_register_driver'
ld: fmh_gpib.c:(.init.text+0x110): undefined reference to `gpib_register_driver'
ld: fmh_gpib.c:(.init.text+0x120): undefined reference to `gpib_register_driver'
ld: fmh_gpib.c:(.init.text+0x130): undefined reference to `gpib_register_driver'

Caused by commit

8e4841a0888c ("staging: gpib: Add Frank Mori Hess FPGA PCI GPIB driver")

I have marked that driver as BROKEN for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 89 lines · Stephen Rothwell

Hi all,

After merging the staging tree, today's linux-next build (powerpc allyesconfig) failed like this:

ld: warning: discarding dynamic section .glink
ld: warning: discarding dynamic section .plt
ld: linkage table error against `nec7210_board_online'
ld: stubs don't match calculated size
ld: can not build stubs: bad value
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_t1_delay':
fmh_gpib.c:(.text+0x5e8): undefined reference to `nec7210_t1_delay'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_serial_poll_status':
fmh_gpib.c:(.text+0x70c): undefined reference to `nec7210_serial_poll_status'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_secondary_address':
fmh_gpib.c:(.text+0x7e4): undefined reference to `nec7210_secondary_address'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_primary_address':
fmh_gpib.c:(.text+0x898): undefined reference to `nec7210_primary_address'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_update_status':
fmh_gpib.c:(.text+0x958): undefined reference to `nec7210_update_status'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_parallel_poll_response':
fmh_gpib.c:(.text+0xa18): undefined reference to `nec7210_parallel_poll_response'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_parallel_poll':
fmh_gpib.c:(.text+0xad8): undefined reference to `nec7210_parallel_poll'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_parallel_poll_configure':
fmh_gpib.c:(.text+0xb98): undefined reference to `nec7210_parallel_poll_configure'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_disable_eos':
fmh_gpib.c:(.text+0xc4c): undefined reference to `nec7210_disable_eos'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_enable_eos':
fmh_gpib.c:(.text+0xce4): undefined reference to `nec7210_enable_eos'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_remote_enable':
fmh_gpib.c:(.text+0xd98): undefined reference to `nec7210_remote_enable'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_interface_clear':
fmh_gpib.c:(.text+0xe58): undefined reference to `nec7210_interface_clear'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_request_system_control':
fmh_gpib.c:(.text+0xf18): undefined reference to `nec7210_request_system_control'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_go_to_standby':
fmh_gpib.c:(.text+0xfcc): undefined reference to `nec7210_go_to_standby'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_take_control':
fmh_gpib.c:(.text+0x1098): undefined reference to `nec7210_take_control'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_command':
fmh_gpib.c:(.text+0x1170): undefined reference to `nec7210_command'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_write':
fmh_gpib.c:(.text+0x123c): undefined reference to `nec7210_write'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_read':
fmh_gpib.c:(.text+0x133c): undefined reference to `nec7210_read'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_device_match':
fmh_gpib.c:(.text+0x15d0): undefined reference to `gpib_match_device_path'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_init.isra.0':
fmh_gpib.c:(.text+0x3164): undefined reference to `nec7210_board_reset'
ld: fmh_gpib.c:(.text+0x31a4): undefined reference to `nec7210_set_handshake_mode'
ld: fmh_gpib.c:(.text+0x335c): undefined reference to `nec7210_board_online'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_pci_attach_impl':
fmh_gpib.c:(.text+0x35a0): undefined reference to `gpib_pci_get_device'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_pci_detach':
fmh_gpib.c:(.text+0x5018): undefined reference to `nec7210_board_reset'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_detach':
fmh_gpib.c:(.text+0x5508): undefined reference to `nec7210_board_reset'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_fifo_read_countable':
fmh_gpib.c:(.text+0x6168): undefined reference to `nec7210_set_reg_bits'
ld: fmh_gpib.c:(.text+0x6180): undefined reference to `nec7210_set_reg_bits'
ld: fmh_gpib.c:(.text+0x6634): undefined reference to `nec7210_set_reg_bits'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_fifo_write_countable':
fmh_gpib.c:(.text+0x6f1c): undefined reference to `nec7210_set_reg_bits'
ld: fmh_gpib.c:(.text+0x6f34): undefined reference to `nec7210_set_reg_bits'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o:fmh_gpib.c:(.text+0x6f98): more undefined references to `nec7210_set_reg_bits' follow
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_internal_interrupt':
fmh_gpib.c:(.text+0x80a4): undefined reference to `push_gpib_event'
ld: fmh_gpib.c:(.text+0x80c4): undefined reference to `nec7210_interrupt_have_status'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_dma_callback':
fmh_gpib.c:(.text+0x887c): undefined reference to `nec7210_set_reg_bits'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_fifo_read':
fmh_gpib.c:(.text+0x8a84): undefined reference to `nec7210_set_reg_bits'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_dma_write':
fmh_gpib.c:(.text+0x95d8): undefined reference to `nec7210_set_reg_bits'
ld: fmh_gpib.c:(.text+0x95f0): undefined reference to `nec7210_set_reg_bits'
ld: fmh_gpib.c:(.text+0x9a88): undefined reference to `nec7210_set_reg_bits'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o:fmh_gpib.c:(.text+0xac38): more undefined references to `nec7210_set_reg_bits' follow
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_exit_module':
fmh_gpib.c:(.exit.text+0x38): undefined reference to `gpib_unregister_driver'
ld: fmh_gpib.c:(.exit.text+0x44): undefined reference to `gpib_unregister_driver'
ld: fmh_gpib.c:(.exit.text+0x50): undefined reference to `gpib_unregister_driver'
ld: fmh_gpib.c:(.exit.text+0x5c): undefined reference to `gpib_unregister_driver'
ld: drivers/staging/gpib/fmh_gpib/fmh_gpib.o: in function `fmh_gpib_init_module':
fmh_gpib.c:(.init.text+0x100): undefined reference to `gpib_register_driver'
ld: fmh_gpib.c:(.init.text+0x110): undefined reference to `gpib_register_driver'
ld: fmh_gpib.c:(.init.text+0x120): undefined reference to `gpib_register_driver'
ld: fmh_gpib.c:(.init.text+0x130): undefined reference to `gpib_register_driver'

Quoted 5 lines

Caused by commit

8e4841a0888c ("staging: gpib: Add Frank Mori Hess FPGA PCI GPIB driver")

I have marked that driver as BROKEN for today.

Thanks, I'll go take your patch from next and add it to my tree for this, sorry about the build issues.

greg k-h

#2 lore raw
Quoted 11 lines · Greg KH
Quoted 10 lines · Stephen Rothwell

Hi all,

After merging the staging tree, today's linux-next build (powerpc allyesconfig) failed like this:

ld: warning: discarding dynamic section .glink
ld: warning: discarding dynamic section .plt
ld: linkage table error against `nec7210_board_online'
ld: stubs don't match calculated size
ld: can not build stubs: bad value

[skip]

Quoted 11 lines
Quoted 6 lines

Caused by commit

8e4841a0888c ("staging: gpib: Add Frank Mori Hess FPGA PCI GPIB driver")

I have marked that driver as BROKEN for today.

Thanks, I'll go take your patch from next and add it to my tree for this, sorry about the build issues.

greg k-h

Hi,
All declarations and uses of `nec7210_board_online' match.

Could this be a ppc linker problem ?
-Dave

#3 lore raw
Quoted 23 lines · Dave Penkler
Quoted 11 lines · Greg KH
Quoted 10 lines · Stephen Rothwell

Hi all,

After merging the staging tree, today's linux-next build (powerpc allyesconfig) failed like this:

ld: warning: discarding dynamic section .glink
ld: warning: discarding dynamic section .plt
ld: linkage table error against `nec7210_board_online'
ld: stubs don't match calculated size
ld: can not build stubs: bad value

[skip]

Quoted 10 lines
Quoted 6 lines

Caused by commit

8e4841a0888c ("staging: gpib: Add Frank Mori Hess FPGA PCI GPIB driver")

I have marked that driver as BROKEN for today.

Thanks, I'll go take your patch from next and add it to my tree for this, sorry about the build issues.

Quoted 6 lines
Quoted 1 line

greg k-h

Hi,
All declarations and uses of `nec7210_board_online' match.

Could this be a ppc linker problem ?
-Dave

This bug report from Red Hat would indicate that there could be a problem with the ppc linker:
Bug 1523457 - ghc-8.2.2 build linking error on rawhide ppc64le with binutils-2.29.1
https://bugzilla.redhat.com/show_bug.cgi?id=1523457

Quoting from the bug report:
The problem appears to be an instability in the code in the PowerPC linker's backend that computes the call stubs needed to access the PLT. As the linker moves sections around in memory one stub switches from containing a backwards branch to containing a forwards branch, altering its size and confusing the code which had previously allocated space for the stub.

This seems to be the same issue we are having:
ld: stubs don't match calculated size

It is reported to be fixed in the 2.30 FSF binutils sources.

Could we rather make GPIB_FMH depend on !PPC rather than BROKEN for now ? -Dave

#4 lore raw
Quoted 43 lines · Dave Penkler
Quoted 23 lines · Dave Penkler
Quoted 11 lines · Greg KH
Quoted 10 lines · Stephen Rothwell

Hi all,

After merging the staging tree, today's linux-next build (powerpc allyesconfig) failed like this:

ld: warning: discarding dynamic section .glink
ld: warning: discarding dynamic section .plt
ld: linkage table error against `nec7210_board_online'
ld: stubs don't match calculated size
ld: can not build stubs: bad value

[skip]

Quoted 10 lines
Quoted 6 lines

Caused by commit

8e4841a0888c ("staging: gpib: Add Frank Mori Hess FPGA PCI GPIB driver")

I have marked that driver as BROKEN for today.

Thanks, I'll go take your patch from next and add it to my tree for this, sorry about the build issues.

Quoted 6 lines
Quoted 1 line

greg k-h

Hi,
All declarations and uses of `nec7210_board_online' match.

Could this be a ppc linker problem ?
-Dave

This bug report from Red Hat would indicate that there could be a problem with the ppc linker:
Bug 1523457 - ghc-8.2.2 build linking error on rawhide ppc64le with binutils-2.29.1
https://bugzilla.redhat.com/show_bug.cgi?id=1523457

Quoting from the bug report:
The problem appears to be an instability in the code in the PowerPC linker's backend that computes the call stubs needed to access the PLT. As the linker moves sections around in memory one stub switches from containing a backwards branch to containing a forwards branch, altering its size and confusing the code which had previously allocated space for the stub.

Quoted 6 lines

This seems to be the same issue we are having:
ld: stubs don't match calculated size

It is reported to be fixed in the 2.30 FSF binutils sources.

Could we rather make GPIB_FMH depend on !PPC rather than BROKEN for now ?

Sure, please send a patch for that!

thanks,

greg k-h