Description of problem:
several packages fail to build on ppc with this error:
stubs don't match calculated size
/usr/bin/ld: can not build stubs: Invalid operation
collect2: ld returned 1 exit status
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. ppc-koji build --scratch f16 llvm-2.9-2.fc16.src.rpm
This is blocking builds of many other packages ;-(
Perhaps http://sources.redhat.com/ml/binutils/2011-08/msg00011.html ?
And/or it might be related to the local ppc64 change in our gcc (for many years now):
+/* If the linker supports overlapping .opd entries and we know this function
+ doesn't ever use r11 passed to it, we can overlap the fd_aux function
+ descriptor field with next function descriptor's fd_func field. */
+# define OVERLAPPING_OPD (cfun->static_chain_decl == NULL)
+# define OVERLAPPING_OPD 0
@@ -25938,7 +25925,8 @@ rs6000_elf_declare_function_name (FILE *
ASM_OUTPUT_LABEL (file, name);
fputs (DOUBLE_INT_ASM_OP, file);
rs6000_output_function_entry (file, name);
- fputs (",.TOC.@tocbase,0\n\t.previous\n", file);
+ fprintf (file, ",.TOC.@tocbase%s\n\t.previous\n",
+ OVERLAPPING_OPD ? "" : ",0");
fputs ("\t.size\t", file);
where we emit just 16 byte .opd entries instead of 24 bytes if we can ignore the r11 value in the function.
Alan, do you have any ideas what might be wrong here?
Peter, Jakub quizzed me earlier today on this bug. I replied that the opd squashing won't affect stub sizing as far as I can see. I'm guessing that binutils-220.127.116.11.1-1.fc16 has my 2011-07-14 change included, which had a bug in stub sizing, fixed here:
2011-08-02 Alan Modra <email@example.com>
* elf64-ppc.c (build_plt_stub): Correct emitted relocs when no
(ppc_build_one_stub): Adjust get_relocs call to suit..
(ppc_size_one_stub): ..and reloc sizing. Correct plt size corner case.
Ah, I guess I misunderstood what Jakub was saying. I thought Jakub was pointing at your patch as the culprit and not as a potential fix. Ok, so it seems fedora just needs to grab your latest fix and we should be good. Thanks.
binutils-18.104.22.168.1-6.fc16 has been submitted as an update for Fedora 16.
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing binutils-22.214.171.124.1-6.fc16'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
binutils-126.96.36.199.1-6.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.