From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.2 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by inbox.vuxu.org (OpenSMTPD) with SMTP id f4afaa5f for ; Sat, 18 Jan 2020 19:28:24 +0000 (UTC) Received: (qmail 15405 invoked by uid 550); 18 Jan 2020 19:28:22 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 15384 invoked from network); 18 Jan 2020 19:28:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=34AEANmA6YC9Zl8sHpvOkYUdXINngX0hkSO4vqe57iY=; b=trhcPusrJXaoPWrj4ufpgmwy95l7aOhwcqw0XZ7RTkXwtalKOB0GBziHy1MkmHMGg+ BtFsclMLSXlT7CUUcEosuGJ/hk0v5XJ9CdEU387O2GsVXp39K8Jx6xlZmzBMjlbI/Yqn nZOPPqcPWlZV92Kq2VsTuNWR0Y88Gb429/ZTB4f6XGGxkE3xZnbX8eITGLgjW/3x+Nya KVsnOGoQvxuPfgzYr1B0DAvdqCAT9ltF2tOSiPw+IGOAteM8myiExkloGOAUmRwynHFp NgsLNNKtttavX3LjPl2uFd8MlAfsXR7NLAIZLGhRQweUdJVovLuuVVgQgGTA77xiJ7G/ qGYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=34AEANmA6YC9Zl8sHpvOkYUdXINngX0hkSO4vqe57iY=; b=P8RQql9vXARg6UUwnUv/REX9RoXTuEViHb8Jj/HL8Oq3koAl2bnet1qiU8tCPWh3K7 4qgL3IxLmtzgh3mZ6s2xjSqsAjCEKvH7sk+O0EoXvuRcYyGE6cneX4mAipq3m9dtgeON 8hczwkog6WjD2b+Cxtoxs3XqL4Icd/HY1J9fAgtLsYhRdzWOWQoRMTjMsVhBZDDldE2f Ejx1CyYd/uyOQytUfowWuoJg6lPDiJFpK4Kt60WLxzY/gr42iSm8co0M4PXJy+Y8UTfT 2ZwgZ1TtJFjF3sZ+wVaaQh8kgWdHpOX3pI7eCegVFHRll8oqgcdDhRDHBnaDnnTOveLh 7k8Q== X-Gm-Message-State: APjAAAXkCIysz7Q1HuQ8MFzFFpF1RDoBOrEvvratjDJs6yumryaBN2Jz TY8qXCisaLBMewXgYBdTWOvQSg3kkPqESL9MYztHDUjOS5A= X-Google-Smtp-Source: APXvYqzGnvaKOturu5D3l2wVJO7hG5JjXKxkxiKiUDbFknlrYUMXBnWDJrUDj07Vm+z5KaLGtPb8CUdeZ8kDotZpnJA= X-Received: by 2002:a0c:fa4b:: with SMTP id k11mr13335767qvo.55.1579375689690; Sat, 18 Jan 2020 11:28:09 -0800 (PST) MIME-Version: 1.0 References: <20200118051447.GV30412@brightrain.aerifal.cx> In-Reply-To: <20200118051447.GV30412@brightrain.aerifal.cx> From: Khem Raj Date: Sat, 18 Jan 2020 11:27:43 -0800 Message-ID: To: musl@lists.openwall.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [musl] Absolute symlink breaks cross compilation On Fri, Jan 17, 2020 at 9:15 PM Rich Felker wrote: > > On Sat, Jan 18, 2020 at 02:24:49AM +0300, =D0=90=D0=BD=D0=B4=D1=80=D0=B5= =D0=B9 =D0=90=D0=BB=D0=B0=D0=B4=D1=8C=D0=B5=D0=B2 wrote: > > Hello. Gentoo users find that it is not possible to cross compile musl.= See > > here https://bugs.gentoo.org/645626 more details. > > > > I am sending to you proposed patch that is related to upstream. Please = keep > > all installed symlinks relative. Thank you. > > > diff --git a/Makefile b/Makefile > > index bd8f5c38..81bf33d5 100644 > > --- a/Makefile > > +++ b/Makefile > > @@ -209,7 +209,7 @@ $(DESTDIR)$(includedir)/%: $(srcdir)/include/% > > $(INSTALL) -D -m 644 $< $@ > > > > $(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(libdir)/libc.so > > - $(INSTALL) -D -l $(libdir)/libc.so $@ || true > > + $(INSTALL) -D -l $$(realpath --no-symlinks --relative-to=3D$$(dir= name $@) $(DESTDIR)$(libdir)/libc.so) $@ || true > > > > install-libs: $(ALL_LIBS:lib/%=3D$(DESTDIR)$(libdir)/%) $(if $(SHARED_= LIBS),$(DESTDIR)$(LDSO_PATHNAME),) > > > > I don't understand what you mean by it "breaks cross compilation". The > ldso link produced is not used for compiling anything; it's only used > for executing programs, which you don't do when cross compiling musl > or cross compiling applications against it. The link is setup to be > installed on the $host, not to be used on the $build where it's not > needed. > > Could you could explain what specifically you're trying to do that's > not working as desired? > If you look at commit msg for https://github.com/kraj/musl/commit/102f35b194a3405b30001ff08cfd5475217= 9376f then you will see the usecase we have in for Yocto/OE > Rich