From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 06E911382C5 for ; Sat, 12 May 2018 18:26:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9A248E0B9E; Sat, 12 May 2018 18:26:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3D003E0B3B for ; Sat, 12 May 2018 18:26:10 +0000 (UTC) Received: from mail-ot0-f175.google.com (mail-ot0-f175.google.com [74.125.82.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 02B29335C95 for ; Sat, 12 May 2018 18:26:09 +0000 (UTC) Received: by mail-ot0-f175.google.com with SMTP id y10-v6so9928538otg.10 for ; Sat, 12 May 2018 11:26:08 -0700 (PDT) X-Gm-Message-State: ALKqPwfvUfA5FhrzFrWQmRuz1P/C0h9GCt8USEP/k5CxBwJbHqEMyPxx 3dQFD0L4bXD2U3ahGkdZKWK8XeTanl5ZZuQ4Seo= X-Google-Smtp-Source: AB8JxZql9urKr5wv2DqkkBcuKzYG1yj9UH+4st/sAqORK9P+ZjTTdo5IBFDylYYAOCP092nru4EKUnJdYl/T/PdaS2s= X-Received: by 2002:a9d:22a9:: with SMTP id y38-v6mr2445940ota.260.1526149566923; Sat, 12 May 2018 11:26:06 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.74.78.199 with HTTP; Sat, 12 May 2018 11:25:46 -0700 (PDT) In-Reply-To: References: <20180507203847.GA3961@p50> From: Mike Gilbert Date: Sat, 12 May 2018 14:25:46 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: [gentoo-dev] Re: Monthly x11@ project status for May 2018 To: Matt Turner Cc: gentoo development , x11 , William Hubbs Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 67a567ad-9d2d-4ded-bf06-241c20eec376 X-Archives-Hash: 0ea72015aecfe29b150ffe8a9c210ab9 On Mon, May 7, 2018 at 4:49 PM, Matt Turner wrote: > On Mon, May 7, 2018 at 1:38 PM, Matt Turner wrote: >> == Convert media-libs/mesa ebuild to build with Meson == >> https://bugs.gentoo.org/652762 >> >> Ebuild posted. Blocked on problems surrounding LLVM (this is the story of >> maintaining media-libs/mesa). >> >> The problem is that Meson has no way of specifying a different llvm-config >> binary without a cross file, which our meson.eclass does not generate for >> 32-bit x86 builds on amd64. We've filed a Meson issue here [4] but haven't >> seen >> any progress towards a solution. > > Just wanted to highlight this section for the Meson maintainers specifically. > > Why do we not generate cross files for 32-bit builds on 64-bit? As far > as I understand that would be sufficient for us. Do you have any > suggestions? Using a cross file triggers cross-compile mode in meson, which makes it behave differently in some ways. It is hard to say exactly what the differences are; this aspect of meson if very poorly documented. As an experiment, I implemented some changes in meson.eclass to have it always use a cross file. https://github.com/gentoo/gentoo/pull/8379 This seems to work ok for building systemd with multilib enabled. Once difference I spotted is that the CFLAGS/LDFLAGS given in the cross file get appended at the end of the compile/link commands, instead of in the middle. That could be problematic since link arguments like --as-needed are sensitive to their position on the command line. Anyway, it would be great if meson would just look at the LLVM_CONFIG environment var instead of forcing us to use a cross file here.