Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-6830

Mesos fails to link with gold when providing -pie without -fPIC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • build, libprocess, security, stout
    • None

    Description

      Gold linker complains about using -pie without -fPIC:

      /usr/bin/ld: local/mesos_local-main.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
      local/mesos_local-main.o: error adding symbols: Bad value
      collect2: error: ld returned 1 exit status
      /usr/bin/ld: cli/mesos-mesos.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
      cli/mesos-mesos.o: error adding symbols: Bad value
      collect2: error: ld returned 1 exit status
      Makefile:5208: recipe for target 'mesos-local' failed
      make[2]: *** [mesos-local] Error 1
      make[2]: *** Waiting for unfinished jobs....
      /Makefile:5131: recipe for target 'mesos' failed
      make[2]: *** [mesos] Error 1
      usr/bin/ld: log/mesos_log-main.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
      log/mesos_log-main.o: error adding symbols: Bad value
      collect2: error: ld returned 1 exit status

      https://reviews.apache.org/r/54953/

      Attachments

        Activity

          People

            aaron.wood Aaron Wood
            aaron.wood Aaron Wood
            Michael Park Michael Park
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: