public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Martin Jambor <mjambor@suse.cz>
To: Iain Sandoe <iains.gcc@gmail.com>
Cc: FX Coudert <fxcoudert@gmail.com>, gcc-patches@gcc.gnu.org
Subject: Re: Darwin: Replace environment runpath with embedded [PR88590]
Date: Mon, 30 Oct 2023 17:17:39 +0100	[thread overview]
Message-ID: <ri68r7k2ifw.fsf@> (raw)
In-Reply-To: <FA6935A5-6AC9-469C-969E-461E9151B5D3@gmail.com>

Hello Iain,

On Tue, Aug 15 2023, FX Coudert via Gcc-patches wrote:
>

[...]

> From e1cf04cadb9fa065fb3f7d6bccf9ed6f1e9e3fc1 Mon Sep 17 00:00:00 2001
> From: Iain Sandoe <iain@sandoe.co.uk>
> Date: Sun, 28 Mar 2021 14:48:17 +0100
> Subject: [PATCH 2/4] Darwin: Allow for configuring Darwin to use embedded
>  runpath.

our buildbot checker found that after this patch, there is an
uncommitted auto(re)conf generated hunk in fixincludes/configure:

diff --git a/fixincludes/configure b/fixincludes/configure
index b9770489adc..1bb547a1724 100755
--- a/fixincludes/configure
+++ b/fixincludes/configure
@@ -3027,6 +3027,7 @@ ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 # ---------------------------
 # _LT_COMPILER_PIC
 
+enable_darwin_at_rpath_$1=no
 
 # _LT_LINKER_SHLIBS([TAGNAME])
 # ----------------------------
@@ -3049,7 +3050,6 @@ ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 # the compiler configuration to `libtool'.
 # _LT_LANG_CXX_CONFIG
 
-
 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
 # ---------------------------------
 # Figure out "hidden" library dependencies from verbose


Can I commit it (with an appropriate ChangeLog message) or do you want
to take care of it yourself?

Thanks,

Martin


>
> Recent Darwin versions place contraints on the use of run paths
> specified in environment variables.  This breaks some assumptions
> in the GCC build.
>
> This change allows the user to configure a Darwin build to use
> '@rpath/libraryname.dylib' in library names and then to add an
> embedded runpath to executables (and libraries with dependents).
>
> The embedded runpath is added by default unless the user adds
> '-nodefaultrpaths' to the link line.
>
> For an installed compiler, it means that any executable built with
> that compiler will reference the runtimes installed with the
> compiler (equivalent to hard-coding the library path into the name
> of the library).
>
> During build-time configurations  any "-B" entries will be added to
> the runpath thus the newly-built libraries will be found by exes.
>
> Since the install name is set in libtool, that decision needs to be
> available here (but might also cause dependent ones in Makefiles,
> so we need to export a conditional).
>
> This facility is not available for Darwin 8 or earlier, however the
> existing environment variable runpath does work there.
>
> We default this on for systems where the external DYLD_LIBRARY_PATH
> does not work and off for Darwin 8 or earlier.  For systems that can
> use either method, if the value is unset, we use the default (which
> is currently DYLD_LIBRARY_PATH).
>
> ----
>
> Ada changes:
>  add paths relative to @loader-path
>
> JIT changes:
>
> This patch expects DARWIN_RPATH to be computed and available; which
> means that we will use @rpath or ${libdir} as the name prefix
> depending on the system version and the setting of
> --enable-darwin-at-rpath.  For branches that do not have this
> available, the value should be set to ${libdir}.
>
> added m2 library changes.
>
> ChangeLog:
>
> 	* configure: Regenerate.
> 	* configure.ac: Do not add default runpaths to GCC exes
> 	when we are building -static-libstdc++/-static-libgcc (the
> 	default).
> 	* libtool.m4: Add 'enable-darwin-at-runpath'.  Act  on the
> 	enable flag to alter Darwin libraries to use @rpath names.
>
> fixincludes/ChangeLog:
>
> 	* configure: Regenerate.
>
> gcc/ChangeLog:
>
> 	* aclocal.m4: Regenerate.
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths.
> 	* config/darwin-driver.cc: Handle Darwin rpaths.
> 	* config/darwin.h: Handle Darwin rpaths.
> 	* config/darwin.opt: Handle Darwin rpaths.
> 	* Makefile.in:  Handle Darwin rpaths.
>
> gcc/ada/ChangeLog:
>
> 	* gcc-interface/Makefile.in: Handle Darwin rpaths.
>
> gcc/jit/ChangeLog:
> 	* Make-lang.in: Handle Darwin rpaths.
>
> libatomic/ChangeLog:
>
> 	* Makefile.am: Handle Darwin rpaths.
> 	* Makefile.in: Regenerate.
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths.
>
> libbacktrace/ChangeLog:
>
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths.
>
> libcc1/ChangeLog:
>
> 	* configure: Regenerate.
>
> libffi/ChangeLog:
>
> 	* Makefile.am: Handle Darwin rpaths.
> 	* Makefile.in: Regenerate.
> 	* configure: Regenerate.
>
> libgcc/ChangeLog:
>
> 	* config/t-slibgcc-darwin: Generate libgcc_s
> 	with an @rpath name.
> 	* config.host: Handle Darwin rpaths.
>
> libgfortran/ChangeLog:
>
> 	* Makefile.am: Handle Darwin rpaths.
> 	* Makefile.in: Regenerate.
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths
>
> libgm2/ChangeLog:
>
> 	* Makefile.am: Handle Darwin rpaths.
> 	* Makefile.in: Regenerate.
> 	* aclocal.m4: Regenerate.
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths.
> 	* libm2cor/Makefile.am: Handle Darwin rpaths.
> 	* libm2cor/Makefile.in: Regenerate.
> 	* libm2iso/Makefile.am: Handle Darwin rpaths.
> 	* libm2iso/Makefile.in: Regenerate.
> 	* libm2log/Makefile.am: Handle Darwin rpaths.
> 	* libm2log/Makefile.in: Regenerate.
> 	* libm2min/Makefile.am: Handle Darwin rpaths.
> 	* libm2min/Makefile.in: Regenerate.
> 	* libm2pim/Makefile.am: Handle Darwin rpaths.
> 	* libm2pim/Makefile.in: Regenerate.
>
> libgomp/ChangeLog:
>
> 	* Makefile.am: Handle Darwin rpaths.
> 	* Makefile.in: Regenerate.
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths
>
> libitm/ChangeLog:
>
> 	* Makefile.am: Handle Darwin rpaths.
> 	* Makefile.in: Regenerate.
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths.
>
> libobjc/ChangeLog:
>
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths.
>
> libphobos/ChangeLog:
>
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths.
> 	* libdruntime/Makefile.am: Handle Darwin rpaths.
> 	* libdruntime/Makefile.in: Regenerate.
> 	* src/Makefile.am: Handle Darwin rpaths.
> 	* src/Makefile.in: Regenerate.
>
> libquadmath/ChangeLog:
>
> 	* Makefile.am: Handle Darwin rpaths.
> 	* Makefile.in: Regenerate.
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths.
>
> libsanitizer/ChangeLog:
>
> 	* asan/Makefile.am: Handle Darwin rpaths.
> 	* asan/Makefile.in: Regenerate.
> 	* configure: Regenerate.
> 	* hwasan/Makefile.am: Handle Darwin rpaths.
> 	* hwasan/Makefile.in: Regenerate.
> 	* lsan/Makefile.am: Handle Darwin rpaths.
> 	* lsan/Makefile.in: Regenerate.
> 	* tsan/Makefile.am: Handle Darwin rpaths.
> 	* tsan/Makefile.in: Regenerate.
> 	* ubsan/Makefile.am: Handle Darwin rpaths.
> 	* ubsan/Makefile.in: Regenerate.
>
> libssp/ChangeLog:
>
> 	* Makefile.am: Handle Darwin rpaths.
> 	* Makefile.in: Regenerate.
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths.
>
> libstdc++-v3/ChangeLog:
>
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths.
> 	* src/Makefile.am: Handle Darwin rpaths.
> 	* src/Makefile.in: Regenerate.
>
> libvtv/ChangeLog:
>
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths.
>
> lto-plugin/ChangeLog:
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths.
>
> zlib/ChangeLog:
> 	* configure: Regenerate.
> 	* configure.ac: Handle Darwin rpaths.

  parent reply	other threads:[~2023-10-30 16:17 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-15 16:58 FX Coudert
2023-08-18 20:17 ` Joseph Myers
2023-08-18 22:31   ` Iain Sandoe
2023-08-18 22:59     ` Joseph Myers
2023-08-18 23:05       ` Iain Sandoe
2023-08-25  7:50   ` FX Coudert
2023-08-25 16:28     ` Joseph Myers
2023-08-29 16:06       ` FX Coudert
2023-08-29 19:55         ` Joseph Myers
2023-08-29 20:17           ` FX Coudert
2023-09-12 17:52             ` FX Coudert
2023-09-20 13:52               ` FX Coudert
2023-10-08 13:07                 ` Nathanael Nerode
2023-10-08 22:14                   ` Iain Sandoe
2023-10-21 18:05                     ` Jeff Law
2023-10-21 18:26                       ` Iain Sandoe
2023-10-21  5:27             ` Alexandre Oliva
2023-10-22 21:18               ` FX Coudert
2023-11-30 19:43                 ` Ian Lance Taylor
2023-11-30 19:56                   ` Iain Sandoe
2023-11-30 19:58                     ` Ian Lance Taylor
2023-11-30 21:25                       ` Ian Lance Taylor
2023-10-30 16:17 ` Martin Jambor [this message]
     [not found] ` <653fd72a.050a0220.a6a20.de86SMTPIN_ADDED_BROKEN@mx.google.com>
2023-10-30 16:19   ` Iain Sandoe
2023-10-30 16:31   ` FX Coudert
2023-10-30 19:08     ` Iain Sandoe
2023-11-15 20:11       ` Thomas Schwinge
2023-11-15 20:34         ` FX Coudert
2023-11-17 11:56           ` FX Coudert
2023-11-17 12:13             ` Thomas Schwinge
2023-11-17 14:20               ` FX Coudert
2023-11-22 10:52                 ` Iain Sandoe
2023-11-22 10:55                   ` FX Coudert
2023-11-13 15:27 ` gfortran.dg/dg.exp debug messages pollute test output Rainer Orth
2023-11-13 16:19   ` Iain Sandoe
2023-11-15 10:29     ` FX Coudert
2023-11-15 12:04       ` Rainer Orth
2023-11-17 12:36       ` Thomas Schwinge
2023-11-18  9:03         ` FX Coudert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ri68r7k2ifw.fsf@ \
    --to=mjambor@suse.cz \
    --cc=fxcoudert@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=iains.gcc@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).