Source: guile-2.0 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
guile-2.0 fails to cross build for tilegx, because its target.scm file lacks the required definitions for tilegx. I am attaching a patch that adds the relevant definitions and thus makes guile-2.0 cross build successfully for tilegx. Please consider applying it. I also ask Chris Metcalf (X-Debbugs-Cced, porter from Mellanox) to review and forward the patch to guile upstream. Helmut
--- a/module/system/base/target.scm +++ b/module/system/base/target.scm @@ -65,7 +65,7 @@ (cond ((string-match "^i[0-9]86$" cpu) (endianness little)) ((member cpu '("x86_64" "ia64" - "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh4" "alpha")) + "powerpcle" "powerpc64le" "mipsel" "mips64el" "nios2" "sh4" "alpha" "tilegx")) (endianness little)) ((member cpu '("sparc" "sparc64" "powerpc" "powerpc64" "spu" "mips" "mips64" "m68k" "s390x")) @@ -105,7 +105,7 @@ ((string-match "64$" cpu) 8) ((string-match "64_?[lbe][lbe]$" cpu) 8) ((member cpu '("sparc" "powerpc" "mips" "mipsel" "nios2" "m68k" "sh4")) 4) - ((member cpu '("s390x" "alpha")) 8) + ((member cpu '("s390x" "alpha" "tilegx")) 8) ((string-match "^arm.*" cpu) 4) (else (error "unknown CPU word size" cpu)))))