Project

General

Profile

Actions

Bug #4134

closed

libobjc.so for illumos-gcc seems to be missing runpath

Added by Richard PALO about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-09-14
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

just a heads up, it appears that recent libobjc.so (both 32 and 64 bit) seems to be missing RUNPATH... used elfedit to add a 'dyn:runpath'

this is on a8

Actions #1

Updated by Richard PALO about 8 years ago

perhaps the Makefile should be updated to take this into consideration:

COMPONENT_POST_INSTALL_ACTION= ( \\
    elfedit -e 'dyn:rpath /opt/gcc/4.4.4/lib' $(PROTO_DIR)/opt/gcc/4.4.4/lib/libgomp.so.1 ; \\
    elfedit -e 'dyn:rpath /opt/gcc/4.4.4/lib/amd64' $(PROTO_DIR)/opt/gcc/4.4.4/lib/amd64/libgomp.so.1 ; \\
    elfedit -e 'dyn:rpath /opt/gcc/4.4.4/lib' $(PROTO_DIR)/opt/gcc/4.4.4/lib/libssp.so.0 ; \\
    elfedit -e 'dyn:rpath /opt/gcc/4.4.4/lib/amd64' $(PROTO_DIR)/opt/gcc/4.4.4/lib/amd64/libssp.so.0 ; \\
    elfedit -e 'dyn:rpath /opt/gcc/4.4.4/lib' $(PROTO_DIR)/opt/gcc/4.4.4/lib/libstdc++.so.6 ; \\
    elfedit -e 'dyn:rpath /opt/gcc/4.4.4/lib/amd64' $(PROTO_DIR)/opt/gcc/4.4.4/lib/amd64/libstdc++.so.6 )

Actions #2

Updated by Adam Števko about 8 years ago

Are you using illumos-gcc for compiling regular software? If so, illumos-gcc is not intended to be used for it. It is used only for building the illumos-gate.

Actions #3

Updated by Richard PALO about 8 years ago

Adam Števko wrote:

Are you using illumos-gcc for compiling regular software? If so, illumos-gcc is not intended to be used for it. It is used only for building the illumos-gate.

Don't forget that illumos-gcc is also a bootstrap compiler for, as an example, gcc4x.

BTW, is there any particular reason elfedit is used as a fixup rather than passing in a RUNPATH at build time?

Actions #4

Updated by Adam Števko about 8 years ago

  • Status changed from New to Closed

The elfedits were added after discussion with Rich. illumos-gcc is not intended to be used as a compiler for general software. It is used for illumos-gate related builds (kernel itself, drivers or any other kernel-related things).

If you need to boostrap a compiler then use gcc3 in /dev (or studio if you can compile gcc with it). If using /hipster, you can use gcc47.

There is nothing to fix, so I am closing this.

Actions

Also available in: Atom PDF