From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8536 invoked by alias); 4 Jan 2015 22:30:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 8382 invoked by uid 48); 4 Jan 2015 22:29:48 -0000 From: "simon at pushface dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/64492] New: Disabling libada prevents building gnattools-cross Date: Sun, 04 Jan 2015 22:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simon at pushface dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg00184.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64492 Bug ID: 64492 Summary: Disabling libada prevents building gnattools-cross Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: simon at pushface dot org Created attachment 34375 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D34375&action=3Dedit Patch to add --enable-cross-gnattools This is related to PR19959. --disable-libada is necessary for targets (such as arm-eabi) where the RTS isn=E2=80=99t distributed as part of GCC. Of course, you still need the cro= ss gnattools (such as arm-eabi-gnatls). Unfortunately you can=E2=80=99t build the cross gnattools, because --disabl= e-libada adds gnattools to the list of unconfigured directories, which means that t= he directory gcc/ada/tools is never created, let alone populated. gcc/ada/gcc-interface/Makefile.in touches stamp-tools, but that=E2=80=99s a= ll. You can=E2=80=99t say "make -C gcc gnattools-cross", because that=E2=80=99s= in gnattools/. You can=E2=80=99t say =E2=80=9Cmake -C gcc cross-gnattools=E2=80=9D, because th= e gcc/ada/tools directory doesn=E2=80=99t exist. Why does gcc/ada/gcc-interface/Makefile.in touch ../stamp-tools? Where does the target cross-gnattools come into the picture? I attach a patch to the top-level configure.ac which adds a new switch --enable-cross-gnattools. If you configure with --disable-libada, gnattools is removed from the list = of configured directories unless * you give --enable-cross-gnattools * and you are building a cross compiler * and the target vendor is =E2=80=9Cnone=E2=80=9D or =E2=80=9Cunknown=E2=80= =9D. With this patch, the normal configure/make runs through and builds the cross gnattools without further ado. Tested on 4.9.1, --target=3Darm-eabi. The pa= tch applies to the gcc-5-20141228 snapshot with a 17-line offset. >>From gcc-bugs-return-472191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Jan 04 22:49:40 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13795 invoked by alias); 4 Jan 2015 22:49:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13768 invoked by uid 48); 4 Jan 2015 22:49:31 -0000 From: "simon at pushface dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/64492] Disabling libada prevents building gnattools-cross Date: Sun, 04 Jan 2015 22:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simon at pushface dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget cf_gcchost cf_gccbuild Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg00185.txt.bz2 Content-length: 648 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64492 simon at pushface dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |arm-eabi Host| |x86_64-apple-darwin13 Build| |x86_64-apple-darwin13 --- Comment #1 from simon at pushface dot org --- Notes: The patch was originated by Luke A. Guest. I have built GCC 5 snapshot 20141228 as host and cross with this patch and used the result to build an Ada RTS for STM32F4.