From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) by sourceware.org (Postfix) with ESMTPS id E68423856254 for ; Fri, 13 May 2022 11:05:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E68423856254 Date: Fri, 13 May 2022 11:05:46 +0000 To: "gcc@gcc.gnu.org" From: Ekaitz Zarraga Cc: Andrew Waterman Reply-To: Ekaitz Zarraga Subject: RISC-V backport to 4.6.4 - Questions about libgcc Message-ID: <1_3ejhGMPA-oYW6RSRs8qzi3FQHCdy--s1iXCi2CvXIOXdaHMXy0Npl4lsSYAkNimQXB3sWoLvm4PTB2eShtr2qP99iriMvqoyJIoFq5hQ8=@elenq.tech> Feedback-ID: 3263582:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_05, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2022 11:06:00 -0000 Hi all, I'm backporting RISC-V support to GCC 4.6.4 in order to obtain a bootstrapp= able GCC for RISC-V and I'm finding some issues I can't solve myself. Maybe= you can help. I managed to backport the core of gcc, so now I can compile to assembly. The problems came with the backport of `libgcc` because I don't understand = the building process very well (and it also changed from gcc 4.6.4 to 7.5).= I managed to make it build by copying many parts of the build system from = `libgcc/config/riscv` to `gcc/config/riscv` because I was obtaining errors = like: "Extra parts are not coherent". At the moment I managed it to compile= but when I try to build software with it it's unable to find some of the f= unctions that should be available in libgcc: ``` printf_fphex.c:212: undefined reference to `__unordtf2' printf_fphex.c:212: undefined reference to `__letf2' ``` Can anyone point me to what I might be missing here? I'm out of ideas. If anyone is interested on taking a deeper look, the repository with my cha= nges can be found here: https://github.com/ekaitz-zarraga/gcc Thank you very much, Ekaitz