From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by sourceware.org (Postfix) with ESMTPS id 1ECA43858D1E for ; Sat, 9 Sep 2023 03:30:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1ECA43858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-pj1-x1031.google.com with SMTP id 98e67ed59e1d1-273d10d3df3so1631418a91.3 for ; Fri, 08 Sep 2023 20:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20230601.gappssmtp.com; s=20230601; t=1694230245; x=1694835045; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=qXmE1jpYAhmNeJwJltes/iumnVaCi+aeAqPAwPf6844=; b=Gd47hgO7gQ5NwcDJWhU2aaKIY0/YHVyD7l68PhtR3HQ9GHK93DLdDvAn/8U5xX2582 p3tnx2IO0CFpsnSNwe/kjl9PyNBBECs/INAEV+9OstmZ8/6Km8xthN6GITtv8PoYg1wr 31kcY8AeeXB7cTVDT710W+fBSVxuo8CaI7LrPZvwIacDsLPqtMrpI/Vtrj5LH7i4Jcc5 axKU5a7WnDXvwsXRlYg0di3Ry8L4YB+dG8erbuBFMunIQP20AQHWa2N6SoDixmbWiblC Rb0VFJs45UFvja3Q9FO7HOoisxTZKlEqR/+hLLnLmXztuYKl2h2tdqj5Mx6jUD/SRk8G H0lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694230245; x=1694835045; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qXmE1jpYAhmNeJwJltes/iumnVaCi+aeAqPAwPf6844=; b=oXhxPJVyVcTij3BCG4ENT16VvJQMgsOhvD/4H7iRJCX3EF1AUSLmSYRfWNZAUmpENS +o9la5xfrUYpNOqU/JsFjqZooP0h7Ont467PzIlqijYde0iZ35J6EFShLL3vZqhlOyQ+ Hq59yWCcoODvcGLBuKagcZ9AIEuuyxC0G+6A2NiEb+oDBck4Ea8Nk586hvSjsvTXs02b fUzrWQXchyVAJO+7z1sztS2okVujYfz9pQcANaOIor4sa6mrTbHyOrj3jC+R7WRg9ojX mGnAUK3hqZ+KBNbxbt2ybVj4Hg6DNlR/n8o7U5tlq8c1BDo/vnCcVZEN7KHecMCYAuPc DPVQ== X-Gm-Message-State: AOJu0Yyq+ssKfhfRhAAtlXSqJbRKQvHaujrVxNFYOs+Bd5JdukyXWgq5 XETrWGLiCV/tkg7V06Vv28IrVQ== X-Google-Smtp-Source: AGHT+IFwZddoBHjOplm+r7yW+bsZ7CmqOqVqpO0tmC26TkFwDR5RCKQSghy5ejy9Cr+9LXCovfYaGg== X-Received: by 2002:a17:90a:cc3:b0:26b:2538:d717 with SMTP id 3-20020a17090a0cc300b0026b2538d717mr4229549pjt.25.1694230245017; Fri, 08 Sep 2023 20:30:45 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id t11-20020a170902bc4b00b001bdccf6b8c9sm2262822plz.127.2023.09.08.20.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 20:30:44 -0700 (PDT) Date: Fri, 08 Sep 2023 20:30:44 -0700 (PDT) X-Google-Original-Date: Fri, 08 Sep 2023 20:30:42 PDT (-0700) Subject: RE: [PATCH] RISC-V: Enable static-pie. In-Reply-To: CC: adhemerval.zanella@linaro.org, libc-alpha@sourceware.org From: Palmer Dabbelt To: yanzhang.wang@intel.com, DJ Delorie , Darius Rad Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, 08 Sep 2023 20:17:16 PDT (-0700), yanzhang.wang@intel.com wrote: > I took some time to test the master with binfmt_misc and qemu system mode. > Both of them can't match the requirements (<= 6 failures). > > - most of cases with binfmt_misc fail with abort. QEMU user mode isn't a valid test suite target for glibc, there's lots of failures due to the emulation. I know it's confusing that riscv-gnu-toolchain uses it, that come up when support was added. > - most of cases with qemu system fail with timed out. You can set TIMEOUTFACTOR, qemu-system is a lot slower than hardware. > And also tested with my risc-v board and still fails 70+ cases and most of > them are math accuracy issue. Which board are you running on? > So Adhemerval, do you know how to setup the environment to reproduce > the <= 6 failures ? Maybe I lost some important steps. Thanks very much :). +DJ and Darius, who usually report test results. They've probably got the best idea of how to set things up, but I don't remember this requiring anything fancy. > > Thanks, > Yanzhang > >> -----Original Message----- >> From: Adhemerval Zanella Netto >> Sent: Tuesday, August 15, 2023 7:46 PM >> To: Wang, Yanzhang ; Palmer Dabbelt >> ; libc-alpha@sourceware.org >> Subject: Re: [PATCH] RISC-V: Enable static-pie. >> >> >> >> On 13/08/23 09:20, Wang, Yanzhang via Libc-alpha wrote: >> > Hi Palmer, >> > >> > I have tested the commit(542b110585) with this patch. The results like >> > below, >> > >> > Summary of test results: >> > 189 FAIL >> > 4328 PASS >> > 101 UNSUPPORTED >> > 16 XFAIL >> > 2 XPASS >> > >> > And the commit(542b110585)'s results like below, >> > >> > Summary of test results: >> > 189 FAIL >> > 4326 PASS >> > 101 UNSUPPORTED >> > 16 XFAIL >> > 2 XPASS >> > >> > The binutils's commit is 2db20b97f1d and gcc's commit is bf36656a14a. >> > >> > I use the command make check-glibc-linux in riscv-gnu-toolchain. Not >> > sure is that acceptable. >> >> The riscv reports for 2.38 release [1] list at maximum of 6 FAIL for all >> the ABI variants. The 189 failures you are reporting means that your >> environment is either missing some setup (for instance, copying the >> libgcc_s.so and libstd++.so on the build folder so C++ and tests that >> require pthread_cancel or backtrace works correctly) or it is not >> properly configured. >> >> Please sort this out first, since with that amount of failures is not >> straightforward to check whether static-pie is really working as intended. >