From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14912 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Augusto_C=C3=A9sar_Dias?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: Problems with libc6-compat Date: Fri, 8 Nov 2019 14:18:26 +0100 Message-ID: References: <20191108131509.GB25646@port70.net> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a603a70596d59e07" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="221659"; mail-complaints-to="usenet@blaine.gmane.org" Cc: musl@lists.openwall.com To: Szabolcs Nagy Original-X-From: musl-return-14928-gllmg-musl=m.gmane.org@lists.openwall.com Fri Nov 08 14:56:24 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iT4kR-000vYN-Ft for gllmg-musl@m.gmane.org; Fri, 08 Nov 2019 14:56:23 +0100 Original-Received: (qmail 24051 invoked by uid 550); 8 Nov 2019 13:54:45 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 7889 invoked from network); 8 Nov 2019 13:18:49 -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 :cc; bh=NOV1zuq7sJcUFtvm2V85UMn7MMmTdJ/EL+VyEfw4WMo=; b=gTMmgY5T63NvND9vlBfMFWa4GJqDwQowm3cYA0uP1VjffhAdt5dEazNXrq0m1vWykQ OTPv26nqxgS7JkAniyqQEPKMTtYZAeDy+7F15key2MWQTDWNvOXp/Q64oiABfgHJ1Boo tyb9o7u6R7fl2571RPQPt/k3JrXg8T6P2+13f687bRvtr/2K3SD4GCum0r5eePAEArt8 xhxaloPPWY13IT8WlAR6Rk+0O0bgVc+XCzE3erBvTAkhbAvb8YODVYJVxnoO8V3VVJ8l G1bcNG2P17+uzIEYxjhv6ue8H+7lpMUY0twv722bVD7mByNQmFSg5j0qHKy/BAcBIs2+ cO4g== 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:cc; bh=NOV1zuq7sJcUFtvm2V85UMn7MMmTdJ/EL+VyEfw4WMo=; b=XN0mOB+JKE15uGRqObKO4c35gGYyQ2oxXAPogylZMAvyhYO8IIwYH2UoWE/f/zsIfu txZ+Ybru2JWwmDNM/E5aJHSvB9R9SoFQ8KlJicYXsYPJ93QgHlqANTJJXx/mfoNpqsvv XCAlmKB9vcUQhjZRQ2OoEA4IXXtzjzYQmYfbNUZU++bFXi26mFA3uxuEjb/ZZo8+8b8H Sj8FxZAV5uH6w5cb56m9e18+LfDg97iitpIuFpKwf60cdwS0J3a/zdwtz6c0040yDM4T qiDIrOCdl0Gw2A6AbNwQDislwhaDgahWRas/CLffLbly2gm+2I/yV3P5CihtPqgRMiNt 4Y3Q== X-Gm-Message-State: APjAAAWPgf+mzpv+CCZBzhBpZ1OnT3hUSDe1bObhRsYCmu9MXdr0Q9lx vLt1b7OyWM5/YWuokAfyqEJf1EpEkNXjiqQ4qAKK659I X-Google-Smtp-Source: APXvYqxFpzAM2XjRh/f0BWFmLWbuBICkjHTZ26NS7uUWs36O+aZOdyErkd9Yu6y69j2em1TrfNG94GGVuF1Ua/LLPsk= X-Received: by 2002:a5d:5391:: with SMTP id d17mr9065880wrv.382.1573219117431; Fri, 08 Nov 2019 05:18:37 -0800 (PST) In-Reply-To: <20191108131509.GB25646@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:14912 Archived-At: --000000000000a603a70596d59e07 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It is indeed. The problem is there are some features in the rust compiler that are not supported in musl. *Augusto C=C3=A9sar Dias* On Fri, Nov 8, 2019 at 2:15 PM Szabolcs Nagy wrote: > * Augusto C=C3=A9sar Dias [2019-11-08 13:26:33 > +0100]: > > My application depends on glib2 which I installed through apk and when = it > > starts it fails with the following: > > > > ** > > GLib-GObject:ERROR:../gobject/gtype.c:2743:g_type_register_static: > > assertion failed: (static_quark_type_flags) > > Aborted > > there is at least one known glibc quark bug > > https://gitlab.alpinelinux.org/alpine/aports/blob/master/main/glib/0001-g= quark-fix-initialization-with-c-constructors.patch > > but that should be fixed in alpine, and in recent musl > it should work even without patching, unless this is > static linking. > > > I've trying to compile a C example directly in my alpine container and = it > > works in there, so that made me believe I'm having some problems with t= he > > cross compilation/linking in my glibc container. > > > > Any ideas on how can I solve this? > > why do you need to cross compile? > > building natively on a musl based distro where all dependencies > are correctly built and packaged should be much more reliable. > --000000000000a603a70596d59e07 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It is indeed. The problem is there are some features in th= e rust compiler that are not supported in musl.


Augusto C=C3=A9sar Dias



On Fri, Nov 8, 2019 at 2:15 PM Szabolcs Nagy <nsz@port70.net> wrote:
* Augusto C=C3=A9sar Dias <augusto.c.dias@gmail.com= > [2019-11-08 13:26:33 +0100]:
> My application depends on glib2 which I installed through apk and when= it
> starts it fails with the following:
>
> **
> GLib-GObject:ERROR:../gobject/gtype.c:2743:g_type_register_static:
> assertion failed: (static_quark_type_flags)
> Aborted

there is at least one known glibc quark bug
https://gitlab.alpinelinux.org/alpine/aports/blob/ma= ster/main/glib/0001-gquark-fix-initialization-with-c-constructors.patch=

but that should be fixed in alpine, and in recent musl
it should work even without patching, unless this is
static linking.

> I've trying to compile a C example directly in my alpine container= and it
> works in there, so that made me believe I'm having some problems w= ith the
> cross compilation/linking in my glibc container.
>
> Any ideas on how can I solve this?

why do you need to cross compile?

building natively on a musl based distro where all dependencies
are correctly built and packaged should be much more reliable.
--000000000000a603a70596d59e07--