From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id 81160385843D for ; Wed, 5 Jan 2022 09:26:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 81160385843D Received: by mail-wr1-x434.google.com with SMTP id s1so81659183wra.6 for ; Wed, 05 Jan 2022 01:26:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=iQqFcuNthuDShtba+1ivwAVfm1ChDwUspWMktjuqZHM=; b=G/KeCKt6V5O5E5ke/5Lw5KhDeevtBp2s4kW8CA5S2bn2x4lN/WXKWgT/Isy5FxUd43 5Zumnx25ObCtH0QNKEV3sbRMGF2RZxfhIeGGN+h+xHo+7fSWlVB+3xbFdCA+kcpAZXv5 CjQ4OWzocQzYJiLwm70gWFqVcZWiIHuKsczstxfwJRl3iEJEgZJUhDVpe8nkGcpKjIEl LF7hR6wbNQAsTnKdfDlguha8/DfHHhO8Al8+nIBLy3g6pTZ4ERHdZCclftD5yEU6TclR /3tY93ssRv9M/k+aoHMHXl2DzScPYvxuDoPd7yXfjRSG3505DplxOvBlLIT66XZGs1UN an0Q== X-Gm-Message-State: AOAM530l/CQvYH7v2+N3uxYvalf/sdgpUzJFgFO/oA+G5R/oqf/m3Mu9 MI/+bqE3bshMH1q66uBAZ9RUUw== X-Google-Smtp-Source: ABdhPJzIS9hgYjdvUwFkhbQQ/4wKZBiMX7oP/U1Gkg2fqqagpiBRGJjHztlDfu2cRHJ1J6wD35oG4A== X-Received: by 2002:a05:6000:3c4:: with SMTP id b4mr35675497wrg.592.1641374796539; Wed, 05 Jan 2022 01:26:36 -0800 (PST) Received: from imac-2020.home (2a01cb000291270008c25f159562be82.ipv6.abo.wanadoo.fr. [2a01:cb00:291:2700:8c2:5f15:9562:be82]) by smtp.gmail.com with ESMTPSA id y11sm40954338wrp.86.2022.01.05.01.26.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jan 2022 01:26:36 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: [PATCH] Register --sysroot in the driver switches table From: Olivier Hainque In-Reply-To: <871c0986-ca6f-45e7-19f3-1453b35751a9@suse.cz> Date: Wed, 5 Jan 2022 10:26:35 +0100 Cc: Olivier Hainque , gcc-patches@gcc.gnu.org, rv@rasmusvillemoes.dk Content-Transfer-Encoding: quoted-printable Message-Id: <7F8E32C5-FD8A-4DF6-8D12-7D51E9C1BDCE@adacore.com> References: <20211220212807.GA95195@adacore.com> <871c0986-ca6f-45e7-19f3-1453b35751a9@suse.cz> To: =?utf-8?Q?Martin_Li=C5=A1ka?= X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2022 09:26:39 -0000 Hi Martin, > On 5 Jan 2022, at 08:45, Martin Li=C5=A1ka wrote: >=20 > On 12/20/21 22:28, Olivier Hainque via Gcc-patches wrote: > I think the patch broke my cross-rx-gcc12 package, failing now with: > configure: error: in = `/home/abuild/rpmbuild/BUILD/gcc-12.0.0+git190624/obj-x86_64-suse-linux/rx= -elf/libgcc': > xgcc: error: unrecognized command-line option = '--sysroot=3D/usr/rx-elf/sys-root' >=20 > The compiler is configured with: >=20 > [ 21s] + ../configure --prefix=3D/usr --infodir=3D/usr/share/info = --mandir=3D/usr/share/man --libdir=3D/usr/lib64 --libexecdir=3D/usr/lib64 = --enable-languages=3Dc,c++ --enable-checking=3Drelease --disable-werror = --with-gxx-include-dir=3D/usr/include/c++/12 --enable-ssp = --disable-libssp --disable-libvtv --enable-cet=3Dauto --disable-libcc1 = --disable-plugin --with-bugurl=3Dhttps://bugs.opensuse.org/ = '--with-pkgversion=3DSUSE Linux' = --with-slibdir=3D/usr/rx-elf/sys-root/lib64 --with-system-zlib = --enable-libstdcxx-allocator=3Dnew --disable-libstdcxx-pch = --enable-version-specific-runtime-libs --with-gcc-major-version-only = --enable-linux-futex --enable-gnu-indirect-function --program-suffix=3D-12= --program-prefix=3Drx-elf- --target=3Drx-elf --disable-nls = --with-sysroot=3D/usr/rx-elf/sys-root = --with-build-sysroot=3D/usr/rx-elf/sys-root = --with-build-time-tools=3D/usr/rx-elf/bin --with-newlib = --disable-libsanitizer --build=3Dx86_64-suse-linux = --host=3Dx86_64-suse-linux >=20 > Can you please take a look? Sure. Thanks for reporting the failure. Sorry for the breakage. The change should also set "validated" true=20 when requesting to save --sysroot. I'm not sure why we don't see the problem with our vxworks setup - double checked again this morning, we do have successful builds passing --sysroot to the driver when configuring various libraries. Testing the patch further ...