Project

General

Profile

Bug #1307

Linking problem

Added by John Abbott over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Portability
Target version:
Start date:
05 Sep 2019
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

I have recently tried to compile CoCoAInterpreter with (several) external libraries selected.
The compilation failed with many messages like this one:

...(frobby.o): relocation R_X86_64_32S against symbol `_ZTV11IdealFacade' can not be used when making a PIE object; recompile with -fPIC

This never happened before. I am not entirely sure what the problem is, nor what the correct solution is.

History

#1 Updated by John Abbott over 4 years ago

My platform is Ubuntu 18.04, and the compiler is gcc version 7.4.0.

The compiler says it was configured with the option --enable-default-pie.

A temporary solution is to get make to print out the final linking line for making CoCoAInterpreter, and then edit that line to insert the flag -no-pie.

#2 Updated by John Abbott over 4 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

The problem was that I was trying to link against libraries which I had compiled before installing the new OS.
Recompiling the external libraries has resolved this problem.

Also available in: Atom PDF