From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic312-25.consmr.mail.ir2.yahoo.com (sonic312-25.consmr.mail.ir2.yahoo.com [77.238.178.96]) by sourceware.org (Postfix) with ESMTPS id 68874386EC79 for ; Mon, 20 Apr 2020 09:53:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 68874386EC79 X-YMail-OSG: W7Fzzv4VM1kfWeMQD3keDOifEJudsPwhTV4iHrVGa1em_nZ7eVAay05xaKa2P7P QxO2S0kujFqJQPTvbifO2Qv4zoBM_uGgomPRvwdvTE2.WrNHJ.F_bCtprSxa4V0EFXy_GQWOoH0x 4olntOvNyyUP7_MxKgLm0iGA8QQGZHDxxCua1yGrs9BXSkxvC6kFz4puavYnxft1ehIsaXa5E7fo WGgsjXpJISCZf.K4S1gkekMtl6jjmQOp0NkWFrmJJLqauMmqBCj1Vo47nd2KESbCQYXw0CfiM8O1 0KmeONZKsIdonQZ4NbxyVciVgP8_2YtNc23S7gXWU_K6xiaYZdRCcY_mhQAameswPv8SiUv22oNP BdTctc7ChtecQKFu_AqUk6z5yocpQYClG.e3ncB6G_8cGWjPJnH3Xd8DsuyxVHpOscUriZzpIZ_I _WFmT4fLfXQJNgkEuJKnbenY.UzMP6FmFnOpX9VWAEwpjvL2HL1Kkw_4Q6Iz82INi60CAV74rKax jHNZTFAcqwZVylFSJEej8rh0Fnzla85.PVtUpL5F.3gGyq70unya7CMlIAEMUuObf0Rp9HMOiYCd 8cQQCf11aXz.0.NEQkuA7ciATfpuJVB05qHWwrS_LwVEJwlTLJj6WDYklWDzPKwTm35EJ7vQcoRX NWDfbldQH6XnN5DVTSCIkJaO0bAE.CxGp7vN3190X51olcMUeCOvfxUQQU3N2ebgoCvle7rjx1AL F9xRwiP.mutuSmekbH4XbH0ReENtQYZRP4P3QNgsJnOLsgop4VyULyrZA.EwLj5cbIJyNWy8gzlR YruZwQazXxsSOcyLM0iCrnKKO2kRUYCS2veLrhc8ITryvp95WUmsxzOdEixC4VFXbvTSqGbKizZZ RaYxWM2w_WZp5gNClvdiyGeD4IeAlBOyNBIQ1R8otonPalqL98VLix50I8bZ.R9u3d3lgZBVQdLC bb_A0uDQ4ApuKfdd.wN7SWzz.np3YOSR1rj7RflgypkNjC6x07LS3q.tXBO.Ka.VXAwGVQYSfFjN sXSZ.5m1SUpmtgUERwv3yWgEKgq3NLZlvN6ePAb3IdYoVR59D94gX6GD4Y52eNr6pIF67.mJ02wW gAaokgf8YnlyAlnDyLUrELi2LkLR4jWSP_SgpnJ0aJZaQDph9eMigVbx4mGCkiPD5PeQMlHFWwDf E7sBtDh_SuwohjEXVK0ba7S1itULTRKdjsstyu.aotaAvU3jHNEfiOcdMbzwKH0Sg5MmOErvftS4 iKoXl8OgjRkP3.cLwrJ9Z19YPqERu4LojsYQ_lsXBSzKpLX7HlzIHHRcJ_JlS3iUt5OXs_Qbtzg8 IvyS5SPvYXTNGj2me7s3Wx6efWdzXrRgHJt4Qz8fVm_M- Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ir2.yahoo.com with HTTP; Mon, 20 Apr 2020 09:53:01 +0000 Date: Mon, 20 Apr 2020 09:52:58 +0000 (UTC) From: "R. Diez" To: "kai.ruottu@wippies.com" Cc: "gcc-help@gcc.gnu.org" Message-ID: <2007965762.1537196.1587376378163@mail.yahoo.com> Subject: Re: Specifying where Binutils is and what it is called MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <2007965762.1537196.1587376378163.ref@mail.yahoo.com> X-Mailer: WebService/1.1.15739 YMailNorrin Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0 X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2020 09:53:04 -0000 > Maybe in the distant past of GCC there were some problems > with this "combined build of GCC and newlib" but someone > suggesting a separate build somewhere nowadays is really weird. It's not that weird. Many people are using that method: 1) The OpenWrt build system does. 2) The ArchWiki describes that way too: =C2=A0=C2=A0 https://wiki.archlinux.org/index.php/Cross-compiling_tools_pac= kage_guidelines =C2=A0=C2=A0 Look for "stage 1" in that page. 3) crosstool-NG is specifically designed to build cross-compilers, and uses= the same method: =C2=A0=C2=A0 https://crosstool-ng.github.io/docs/toolchain-construction/ =C2=A0=C2=A0 Look for "core pass 1" in that page. > [...] > https://docs.rtems.org/releases/4.5.1-pre3/rtemsdoc/html/started/started0= 0072.html I would not trust the instructions on that page anymore. It's way too old. > "To bring in newlib and libgloss, a user could link the newlib and > libgloss subdirectories of the newlib source tree into the src tree of gc= c." > In : > https://sourceware.org/newlib/faq.html I would not trust the Newlib documentation very much. Building Newlib for a= Linux system (as opposed to the usual embedded system) was broken for year= s, and it may still be. I would say the project is short on developers. I did find some information in GCC's own Wiki: https://gcc.gnu.org/wiki/Building_Cross_Toolchains_with_gcc But then it says "Create a tree that consists of all of the files from the = GCC and binutils/gdb/newlib source trees (including several simulators in s= rc/sim), with the GCC files overriding the binutils/gdb/newlib files when t= here's a conflict." Overwriting files like that doesn't exactly inspire con= fidence. I have invested many hours of work to get a working, tailor-made cross-comp= iler for my embedded projects. I would even say "wasted a lot of time". I h= ope you understand that, before investing yet more work, I would like to se= e some modern, working example (makefile or script) first on how to build a= GCC cross-compiler with Newlib in a single step. Regards, =C2=A0 rdiez