From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by sourceware.org (Postfix) with ESMTPS id 214153858D28 for ; Sat, 29 Jan 2022 03:28:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 214153858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x1030.google.com with SMTP id h12so8311912pjq.3 for ; Fri, 28 Jan 2022 19:28:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=KYZpCugCoMxK6jwRsxWW1zVXX+XzvxOdexuGtLcH/Ss=; b=L25O3XkeWRoNtdVkrOLMDcXZQP929L77qD2nS/YooKN6hdBEOa2dRHVfS/+Fnm/ZI2 zrgOe/B2pjv99dx3O7ZKyLSZIceQGyGyXg0E/9bSsup7cVr2ln2UDILbYP/AbU22Xc1G ZgKsRxW1W/8WvPk+ETFqn+MsTIwMtSBBy9cxootTK93fFZ2O39PcPB4LvE85xq+RAHbR UZrhMII8bbk9JQM3Jvs7Y1oAhFhxuRVzTHZX/IvTVUu78MNEBlNmbhadOLAxODX8BIPO wLWPqwYYgDuNg0kq9iegopWSDItc8BCL1us17qmqOfs/EahAXTWFmTRQAuPRZZHUmexf mfPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=KYZpCugCoMxK6jwRsxWW1zVXX+XzvxOdexuGtLcH/Ss=; b=Wf/NLhbxGx7fVuy3MX+S3G4YMDCwI1NHH5vIrwzdp6NpxmpAzjobpihfvhcxgxNqCj VXJ/GypIlBMGKHtftzhEJFP4gN/Nmju9EZWw7lhhXjmjPTpzrwLux719bvBlGmePfGaZ RoKU/PnznkJp5ipBz64gZOvcrfBOD9mHxFT3oheq6wZLS3ulMxT2+wqLTZM3bgL7nkpa 82esX9wznJHXgXpTt2QbKC+wk7O9eWbMZOujZ+QvEmqyXYnRb5T1Xnfak+vWrppxP3P2 lEzfx3ScEqciN0XppZSX9H9KKGNRMI1bw+O6sEEydk/v3VhAcDhov/C/CskpHpNCRZmV ts3A== X-Gm-Message-State: AOAM532/sF53kjkISC1/oNUGCFwSkzs+4dQ/9FLcBuY0gYSDJCFy+Y1q bqScSvX08dUjopg1jrOBv0M= X-Google-Smtp-Source: ABdhPJyGqmtubpxYqM73yXtWANj/ggXEU5mqCZ/Xc6WHUSayfFHpPJRLn6LrkuuuSJc5s6O/aeul+Q== X-Received: by 2002:a17:902:ce81:: with SMTP id f1mr11667893plg.32.1643426890224; Fri, 28 Jan 2022 19:28:10 -0800 (PST) Received: from [172.31.0.204] (c-73-63-24-84.hsd1.ut.comcast.net. [73.63.24.84]) by smtp.gmail.com with ESMTPSA id h13sm11305694pfh.40.2022.01.28.19.28.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Jan 2022 19:28:09 -0800 (PST) Message-ID: Date: Fri, 28 Jan 2022 20:28:09 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: nds broken by recent patches Content-Language: en-US To: Stafford Horne Cc: Mike Frysinger , newlib@sourceware.org References: <171dc9cb-6b2c-ead3-1c55-27fadb33220f@gmail.com> <3da42247-9096-0a03-4b38-66460854c2c7@gmail.com> <88742b7f-f8da-bf31-607a-cf012e603b1c@gmail.com> From: Jeff Law In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2022 03:28:12 -0000 On 1/28/2022 7:12 PM, Stafford Horne wrote: > On Fri, Jan 28, 2022 at 05:58:46PM -0700, Jeff Law wrote: >> >> On 1/28/2022 4:32 PM, Stafford Horne wrote: >>> On Fri, Jan 28, 2022 at 02:54:24PM -0700, Jeff Law wrote: >>>> Replying to myself... >>>> >>>> On 1/28/2022 9:36 AM, Jeff Law wrote: >>>>> For example, someone mucked up the compiler for or1k-elf at the same >>>>> time you're doing your refactoring.  Now I've got a patch to fix the >>>>> compiler ICE, *but* I'm also getting a crap-ton of new testsuite >>>>> failures in the testsuite due to missing _init/_fini symbols.  I don't >>>>> know yet if that's a newlib issue or something else mucked up on the >>>>> compiler side. >>>> I think I've tracked this done.  The change to internalize >>>> HAVE_INITFINI_ARRAY wasn't complete.  It missed newlib.  Affects aarch64, >>>> arm, or1k and cris -elf ports.  I don't test for former pair, but I do test >>>> the latter pair.   or1k and cris fail differently. or1k-elf code fails to >>>> link, while cris-elf fails a few tests that rely on ctor/dtor support. >>> Is there anything I can help with here for or1k-elf? Or was this something I >>> did wrong with ff7b7b894 ("libgloss: or1k: If available call the init for >>> init_array")? >> It's a trivial goof in some recent refactoring in newlib. >> >>> I haven't rebuilt my newlib toolchain since last year or so. >> Which raises an interesting set of questions.  Is or1k at a point where we >> can cross build glibc & the kernel using upstream bits?    Is qemu user mode >> emulation available?  The former pair would be a step forward from a testing >> standpoint.  If we had the latter too, then we could build a rootfs and do >> native 3-stage testing in a chroot. > Now that glibc is upstream I guess the answer is yes. > > I have been building a buildroot using my glibc braches/now on master (maybe > some buildroot patches need to be upstreamed to tell buildroot or1k has glibc > support). I don't use the builtroot project to construct mine.  Though perhaps I should ;-) > > With that we can test using qemu user mode. I used to use qemu user mode to test > the glibc test-suite but not all syscalls are emulated so there were some tests > that would fail. Yea, I'm much more concerned about testing GCC and 3-staging using qemu user mode & running the testsuite does a much more thorough job than just building newlib and running the gcc testsuite. Thanks.  Clearly I've got a little project on the horizon. jeff