From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13893 invoked from network); 24 Apr 2021 21:08:12 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 24 Apr 2021 21:08:12 -0000 Received: (qmail 22146 invoked by uid 550); 24 Apr 2021 21:08:07 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 22125 invoked from network); 24 Apr 2021 21:08:06 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=WDp2HpKYoWMf0JP2qvSR3kT25Dq+7NB+r6jlBa3Q7LQ=; b=hvnCM99S2LXrOG0lmjCoDijLH/7maenh5XQCs0f44vID1IKGN1RB09Biu6Sa9NV2Br u4uJAtGcN/G/1M9yQEn4xANkbvcdsTINswk8v4kMBvO2o+BkI/7yud1DBrniCnB639VA NtIexMzeG10UY3N8ChjTDFM8X++CnYx0NWlPY/zsG/gcHVHKsLmP11BMTjEmmbwicvdN oWjs5fYPteOePoAzF4vYeij7EIJLCRi9+cL/SxvcMe3nuLJvJz9hadZBE0Ku8ZoN6yd8 DcwXotg4rvw5bIHnfcQa6nuRiLzSDJQm2AwqPmKz2y49luH+9Cz44ZV2JYFCFiCQZM1x BLXw== X-Gm-Message-State: AOAM530/H85uzXVlb5cidvIUGvpQrUBNyX5rZfEZoM43unoVUEimf8DU ij0iXGbYpJHcOFYj3RpSgoV5zUVIS04= X-Google-Smtp-Source: ABdhPJwT3x5Z4zYDIIC2uWj1zAtUQ1HRzWddg8dGJ4p7rKo2l39H+4Znv7Iio66RADT2q52cpbj8yw== X-Received: by 2002:a62:b403:0:b029:20c:cbd5:5be1 with SMTP id h3-20020a62b4030000b029020ccbd55be1mr10323830pfn.53.1619298474400; Sat, 24 Apr 2021 14:07:54 -0700 (PDT) Date: Sat, 24 Apr 2021 14:07:53 -0700 From: Fangrui Song To: musl@lists.openwall.com Cc: Aodhnait =?utf-8?B?w4l0YcOtbg==?= Message-ID: <20210424210753.tsfhaupqtvxztde6@gmail.com> References: <20210424195041.GT2546@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210424195041.GT2546@brightrain.aerifal.cx> Subject: Re: [musl] Clang 10 errors during compiling musl 1.2.2 On 2021-04-24, Rich Felker wrote: >On Sat, Apr 24, 2021 at 07:03:20PM +0000, Aodhnait Étaín wrote: >> Hi, >> >> I tried to cross-compile musl 1.2.2 for RISC-V using clang 10 on Alpine >> Linux in WSL. Sadly, it did not work, and instead failed during compiling >> src/complex/catan.c. >> >> Linked below are output of configure and make, the preprocessed source >> of catan.c and the run script. >> >> Compilation log: http://0x0.st/-mux.log >> Preprocessed source: http://0x0.st/-mu3.c >> Associated run script: http://0x0.st/-muY.sh >> >> I guess it has something to do with clang, so probably llvm-bugs would >> be a more appropriate place to report it, but I'm still waiting for the >> account registration confirmation on the llmv-project Bugzilla. So in >> the meantime I decided to see if you peeps have any idea what's happening? > >Yes, this is surely a clang bug. But maybe someone here will have >ideas about getting it fixed or know if it's already reported. > >Rich I confirm clang 10.0.1 has the bug when compiling src/complex/catan.c. clang 11.0.0 from https://releases.llvm.org/ is good. If your GCC installation is riscv64-linux-gnu-gcc, I recommend --target=riscv64-linux-gnu- or --target=riscv64-linux-gnu, which matches the gcc executable name. --target=riscv64 is not recommended.