|
From: | Svante Signell |
Subject: | Hurd port for gcc go PATCH 0-3 (9) |
Date: | Fri, 11 Apr 2014 14:47:21 +0200 |
Hi, Attached are patches to enable gccgo to build properly on Debian GNU/Hurd on gcc-4.9 (4.9-20140406). With split stack disabled around 70 libgo tests PASS and 50 FAIL (result seems to be somewhat random, alignment problems there too?). With split stack enabled _all_ tests fail, see https://lists.gnu.org/archive/html/bug-hurd/2013-06/msg00100.html patch0.diff is Debian specific, patch1.diff should be applied when split-stack works properly while the rest are available for upstream. patch0.diff: debian/rules.defs: go_no_systems: remove gnu, with_go: Check for DEB_TARGET_GNU_OS instead of DEB_TARGET_GNU_SYSTEM. Otherwise kfreebsd-gnu causes go_no_systems to still be true for gnu. patch1.diff: src/gcc/config/i386/gnu.h: Enables split stack for GNU/Hurd. Until split-stack works properly with the pthread library of Hurd this patch should not be applied. Maybe the offsets should change, but that has to be synchronized with the src/libgcc/config/i386/morestack.S assembly routine (unfortunately asm is not my piece of cake). patch2.diff: src/libgo/configure.ac: Add GNU as a supported target OS for go. patch3.diff: src/libgo/Makefile.am, src/libgo/Makefile.in Add GNU specific go routines with the LIBGO_IS_GNU conditional. Note: Creating the Makefile.in is hard (unnecessary) work since automake is no longer used in the build system. Both (cd src/libgo;automake-1.11) and (cd src/libgo;autoreconf2.64) fails. The diff for Makefile.in has to be patched by hand with the aid of the diff for Makefile.am :( This file should be possible to generate from Makefile.am when modifying manually. In my opinion the build system is broken wrt libgo.
patch0.diff
Description: Text Data
patch1.diff
Description: Text Data
patch2.diff
Description: Text Data
patch3.diff
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |