[Bug 697229] Re: openmpi link failure with ld --as-needed

Kate Stewart 697229 at bugs.launchpad.net
Sun Oct 9 23:07:59 UTC 2011


Rather worried about this change going into Oneiric,  esp. at this late in the cycle since it impacts central code. 
The risk is too high,  definitely NOT for the release,  and update needs much more discussion and exploration. 

Would rather it go out in Precise,  and a discussion happen at UDS
whether its a candidate for Oneiric updates or not.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to binutils in Ubuntu.
https://bugs.launchpad.net/bugs/697229

Title:
  openmpi link failure with ld --as-needed

Status in binutils:
  Confirmed
Status in “binutils” package in Ubuntu:
  Confirmed
Status in “openmpi” package in Ubuntu:
  Invalid
Status in “binutils” source package in Oneiric:
  Confirmed
Status in “openmpi” source package in Oneiric:
  Invalid
Status in “binutils” source package in Precise:
  Confirmed
Status in “openmpi” source package in Precise:
  Invalid
Status in “openmpi” package in Debian:
  New

Bug description:
  $ cat test.F
        program main
         include 'mpif.h'
         integer ierr
         call mpi_init(ierr)
        end
  $ mpif90 test.F -Wl,--as-needed -Wall -Wno-unused-variable -g   -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -L/usr/lib/openmpi/lib -L/usr/lib/gcc/i686-linux-gnu/4.5.2 -ldl -lmpi -lopen-rte -lopen-pal -lnsl -lutil -lgcc_s -lpthread -ldl        /usr/bin/ld: /tmp/cccq3IWF.o(.debug_info+0x48d): unresolvable R_X86_64_64 relocation against symbol `mpi_fortran_argv_null_'
  /usr/bin/ld: /tmp/cccq3IWF.o(.debug_info+0x4a7): unresolvable R_X86_64_64 relocation against symbol `mpi_fortran_argv_null_'
  /usr/bin/ld: /tmp/cccq3IWF.o(.debug_info+0x511): unresolvable R_X86_64_64 relocation against symbol `mpi_fortran_errcodes_ignore_'
  /usr/bin/ld: /tmp/cccq3IWF.o(.debug_info+0x52b): unresolvable R_X86_64_64 relocation against symbol `mpi_fortran_errcodes_ignore_'

  works with --no-as-needed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/binutils/+bug/697229/+subscriptions




More information about the foundations-bugs mailing list