From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by sourceware.org (Postfix) with ESMTPS id B3EEE386F45B for ; Mon, 29 Nov 2021 10:10:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B3EEE386F45B Received: by mail-ed1-x536.google.com with SMTP id y12so69324893eda.12 for ; Mon, 29 Nov 2021 02:10:39 -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:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=PuER59l98LwBlTOhDRe8ssW91bDBAE6eLm7Zq512zv0=; b=8HFDsRLXmJfWgEFFq1MJoHBFdl4U93mPMJDyIENiYDXmCcdycrUX8CIm3LUW9oCLug u49YJzYv97RvVaJdLr3bfN8hfXLe9Rq5yLUvFEpYgilnzfvMgoXNqPgMzfC9y/67mrhj niWhtJVJ79Zuclz4SgDE7mMn9k7aXy9P80BYU9329w/GbTGCgiiOLSE2nvMItj5JSQQm 1nvXu2AEFNA0sMWNd060U+vfjzcEWtYnmrHrHUhDheTiyBL10fjW7W5JAyFTOdMXXY2Z kvSHGCZTPZ012MM3DBH47APcewcy1xaI3G3K2NImCHdlFQ9z7yOFZSZIX9ycNHpTGLFh NC0g== X-Gm-Message-State: AOAM5307kegBvX4LkRVIccyRWVG9UmOEz5yxgUjOSbaIG/TG3c9+pp4E +Fo1Y5OukLl4h5dPVjNZy04YaftAzzqWJuVcgmO5KU2t9M4= X-Google-Smtp-Source: ABdhPJw5CyCZXILoKqH3FUYC/bWDrNypghoEzW9rAILGJRl5T84FNbFvtSTlinoVb0JdVljYxmdQHZJw9RG4aCZXoCU= X-Received: by 2002:a17:906:788:: with SMTP id l8mr2227476ejc.548.1638180638659; Mon, 29 Nov 2021 02:10:38 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Stefan Ring Date: Mon, 29 Nov 2021 11:10:27 +0100 Message-ID: Subject: Re: Gcc build fails with test_real_width is negative To: "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2021 10:10:40 -0000 On Sun, Nov 28, 2021 at 8:18 PM Mr Dini via Gcc-help wrote: > In file included from ../.././gcc/rtl.h:27, > from ../.././gcc/genoutput.c:90: > ../.././gcc/real.h:74:76: error: narrowing conversion of '-1' from 'int' = to 'long unsigned int' [-Wnarrowing] > 74 | [sizeof (REAL_VALUE_TYPE) <=3D REAL_WIDTH * sizeof (HOST_WIDE_I= NT) ? 1 : -1]; > | = ^ > > Also, it looks like when gcc is building this specific component, make do= es a cd to host-armv7a-linux-gnueabi/gcc yet it uses the g++ of the host an= d completely ignores the CXX variable I have set when I configure gcc: > > CC=3D"arm-webos-linux-gnueabi-gcc -march=3Darmv7-a -mfpu=3Dneon -mfloat-a= bi=3Dsoftfp --sysroot=3D/opt/webos-sdk-x86_64/1.0.g/sysroots/armv7a-neon-we= bos-linux-gnueabi" CXX=3D"arm-webos-linux-gnueabi-g++ -march=3Darmv7-a -mfp= u=3Dneon -mfloat-abi=3Dsoftfp --sysroot=3D/opt/webos-sdk-x86_64/1.0.g/sysro= ots/armv7a-neon-webos-linux-gnueabi" ./configure --prefix=3D/opt/webos-sdk-= x86_64/1.0.g/sysroots/armv7a-neon-webos-linux-gnueabi --with-mpfr=3D/opt/we= bos-sdk-x86_64/1.0.g/sysroots/armv7a-neon-webos-linux-gnueabi --host=3Darmv= 7a-linux-gnueabi --target=3Darmv7a-linux-gnueabi --build=3Dx86_64-linux-gnu > Looks like a -Werror issue. I don't remember if gcc has a --disable-werror flag, but I guess it should. Also you're not supposed to build inside the source tree.