Opened 5 years ago

Closed 4 years ago

#60181 closed defect (fixed)

atk @2.34.1_1 does not build on PPC Tiger, Mac OS X 10.4.11, because of -rpath

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: tiger Cc:
Port: atk

Description

[44/52] Linking target tests/testrole.
FAILED: tests/testrole 
/opt/local/bin/gcc-apple-4.2  -o tests/testrole 'tests/59830eb@@testrole@exe/testrole.c.o' -L/opt/local/lib -Wl,-dead_strip_dylibs -Wl,-undefined,error -Wl,-headerpad_max_install_names -pipe -Os -arch ppc -Wl,-headerpad_max_install_names -arch ppc atk/libatk-1.0.0.dylib -Wl,-framework -Wl,CoreFoundation -L/opt/local/lib -lglib-2.0 -lintl -Wl,-framework -Wl,CoreFoundation -L/opt/local/lib -lgobject-2.0 -lglib-2.0 -lintl -Wl,-headerpad_max_install_names -Wl,-rpath,@loader_path/../atk
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
collect2: ld returned 1 exit status
[45/52] Compiling C object 'tests/59830eb@@testdocument@exe/testdocument.c.o'.
ninja: build stopped: subcommand failed.
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_atk/atk/work/build" && /opt/local/bin/ninja 
Exit code: 1
Error: Failed to build atk: command execution failed

Attachments (1)

main.log (18.3 KB) - added by ballapete (Peter "Pete" Dyballa) 5 years ago.
Main.log from PPC Tiger

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger

comment:1 Changed 5 years ago by kencu (Ken)

Keywords: tiger added; ppc tiger{{{ removed

comment:2 Changed 5 years ago by kencu (Ken)

there are (several?) other tickets about rpath failing on Tiger. We really should condense it all into one ticket.

There are a few options:

build system by build system fixes, port by port fixes are pretty tedious.

I have patched my ld64_97 to not error out when it sees rpaths; this actually works pretty well, because as a final step on install many build systems, like meson, use the full path. So not a breaking tweak, usually...

There is no easy way I know of to allow Tiger to actually support @rpaths in a proper fashion.

Several unix shell scripts are out there that wrap ld to change rpaths to best-guess full paths; these are most likely the best bet, I think.

All a bit hacky, but ...

Last edited 5 years ago by kencu (Ken) (previous) (diff)

comment:4 Changed 4 years ago by kencu (Ken)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.