[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Fwd: gcc-4.6/gnat-4.6 complier driver question]

On Sun, 2012-03-25 at 19:03 +0200, Samuel Thibault wrote:
> Svante Signell, le Thu 22 Mar 2012 18:19:46 +0100, a écrit :
> > Hi, I have asked this question at the debian-ada ML, but nothing yet.
> > Can somebody here help me?
> According to your question on IRC about uploading a patched gcc on
> debian-ports, I guess you have found the solution?  For the patched gcc,
> please send the patch, I have never digged in that area of gcc, so have
> no idea what is to be patched & uploaded to debian-ports.

Hi, I now know what is hindering ADA to be recognized for the gcc
compiler driver for GNU/Hurd. It is disabled in debian/rules.defs
The inlined patch below is for gcc-4.7. A corresponding patch is needed
for gcc-4.6.3. 

Note that knetbsd-gnu also has to be removed since the string matching
is on gnu and that is triggers by gnu being present.
debian/rules.defs:DEB_TARGET_GNU_SYSTEM ?= $(call vafilt,

ifneq (,$(findstring $(DEB_TARGET_GNU_SYSTEM),$(ada_no_systems)))
  with_ada := disabled for system $(DEB_TARGET_GNU_SYSTEM)

Presence of knetbsd-gnu also blocks the build of GNU locales for Hurd:
# GNU locales
force_gnu_locales := yes
locale_no_cpus :=
locale_no_systems := knetbsd-gnu
ifneq (,$(findstring $(DEB_TARGET_GNU_SYSTEM),$(locale_no_systems)))
  force_gnu_locales := disabled for system $(DEB_TARGET_GNU_SYSTEM)

Should building of the GNU locales really be disabled for Hurd?
I'll file a bug report for gcc-4.6.3 and gcc-4.7.0 when we have things
cleared out. Regarding gnat itself (both 4.6.2 and 4.6.3 built), I'll
send separate mails and hopefully discuss on IRC.

--- debian/rules.defs.orig	2012-03-27 19:21:44.000000000 +0200
+++ debian/rules.defs	2012-03-28 08:18:17.000000000 +0200
@@ -391,7 +391,7 @@
 ifndef DEB_STAGE
 # Ada --------------------
 ada_no_cpus	:= m32r m68k sh3 sh3eb sh4 sh4eb
-ada_no_systems	:= gnu knetbsd-gnu
+ada_no_systems	:=
 ada_no_cross	:= yes
 ada_no_snap	:= no
 ifneq (,$(filter $(DEB_TARGET_ARCH),armhf m68k powerpcspe sh4 sparc64))

Reply to: