From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5DE02C433DB for ; Fri, 12 Mar 2021 20:06:07 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4E03464F0B for ; Fri, 12 Mar 2021 20:06:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4E03464F0B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:43318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKo2v-0003oX-3H for qemu-devel@archiver.kernel.org; Fri, 12 Mar 2021 15:06:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKo1S-0007fb-TX for qemu-devel@nongnu.org; Fri, 12 Mar 2021 15:04:34 -0500 Received: from angie.orcam.me.uk ([2001:4190:8020::4]:40434) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKo1Q-0003PD-Ej for qemu-devel@nongnu.org; Fri, 12 Mar 2021 15:04:34 -0500 Received: by angie.orcam.me.uk (Postfix, from userid 500) id 49EB192009D; Fri, 12 Mar 2021 21:04:28 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 44C2B92009B; Fri, 12 Mar 2021 21:04:28 +0100 (CET) Date: Fri, 12 Mar 2021 21:04:28 +0100 (CET) From: "Maciej W. Rozycki" To: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= Subject: Re: [RFC PATCH 32/42] docker: Add gentoo-mipsr5900el-cross image In-Reply-To: Message-ID: References: <20210214175912.732946-1-f4bug@amsat.org> <20210214175912.732946-33-f4bug@amsat.org> <20210215115957.GG1542881@redhat.com> <21217ef4-91d8-6877-5d78-bb78e00773d8@amsat.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Received-SPF: none client-ip=2001:4190:8020::4; envelope-from=macro@orcam.me.uk; helo=angie.orcam.me.uk X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Fredrik Noring , =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?= , Richard Henderson , Aleksandar Rikalo , qemu-devel@nongnu.org, Thomas Huth , =?UTF-8?Q?Alex_Benn=C3=A9e?= , Aurelien Jarno , Laurent Vivier Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Fri, 12 Mar 2021, Philippe Mathieu-Daudé wrote: > > but your two options to > > choose from are: > > > > 1. Build for the soft-float ABI (`-msoft-float') where any FP calculations > > are compiled such as to be made by the CPU using integer arithmetic. > > With the Debian toolchain I get: > > /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No > such file or directory > #include > ^~~~~~~~~~~~~~~~~~~~~~~~~~ You need to have a soft-float multilib available. You can use: $ gcc -print-multi-lib to see what multilibs are available. You'd have to have one that includes `-msoft-float' and `-mabi=n32' both at a time. If there's no such one, then you'll have to build your own cross-compiler (including soft-float libc). > > 2. Build for a generic MIPS ISA, for the R5900/n32 that would be MIPS III > > (`-march=mips3'), and rely on the kernel FPU emulation. > > Shouldn't -march=r5900 imply -march=mips3? It does: MIPS_CPU ("r5900", PROCESSOR_R5900, 3, 0) however it is a distinct architecture owing to the differences from plain MIPS III ISA, and obviously the compiler and the assembler both know that. Maciej