Your message dated Sun, 04 Aug 2019 13:49:57 +0000
with message-id <[email protected]>
and subject line Bug#933306: fixed in ghc 8.6.5+dfsg1-3
has caused the Debian Bug report #933306,
regarding ghc: Cross-build fails because host and build architecture do not 
match
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
933306: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933306
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: ghc
Version: 8.6.5+dfsg1-2
Severity: normal
Tags: patch
User: [email protected]
Usertags: rebootstrap

Hello!

Trying to cross-build ghc currently fails with:

GHC build  : x86_64-unknown-linux
GHC host   : powerpc-unknown-linux
GHC target : powerpc-unknown-linux
LLVM target: powerpc-unknown-linux
checking for path to top of build tree... /<<PKGBUILDDIR>>
checking for powerpc-linux-gnu-windres... no
checking for powerpc-linux-gnu-dllwrap... no
checking for powerpc-linux-gnu-objdump... powerpc-linux-gnu-objdump
configure: error: 
You've selected:

  BUILD:  x86_64-unknown-linux   (the architecture we're building on)
  HOST:   powerpc-unknown-linux    (the architecture the compiler we're 
building will execute on)
  TARGET: powerpc-unknown-linux  (the architecture the compiler we're building 
will produce code for)

BUILD must equal HOST; that is, we do not support building GHC itself
with a cross-compiler.  To cross-compile GHC itself, set TARGET: stage
1 will be a cross-compiler, and stage 2 will be the cross-compiled
GHC.

This can be reproduced when building ghc with:

     sbuild -d sid --host=powerpc --profile=cross --no-arch-all

I was able to fix this problem with the following trivial change:

--- debian/rules~       2019-07-28 18:31:28.000000000 +0200
+++ debian/rules        2019-07-29 01:39:31.863510243 +0200
@@ -23,7 +23,7 @@
 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 export DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
-EXTRA_CONFIGURE_FLAGS += --target $(DEB_HOST_GNU_TYPE)
+EXTRA_CONFIGURE_FLAGS += --host $(DEB_BUILD_GNU_TYPE) --build 
$(DEB_BUILD_GNU_TYPE) --target $(DEB_HOST_GNU_TYPE)
 # We're cross-building if DEB_BUILD_GNU_TYPE != DEB_HOST_GNU_TYPE
 ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
   EXTRA_CONFIGURE_FLAGS += --enable-unregisterised

Would be great if something like that could be done for the next upload,
so it's easier to cross-bootstrap ghc again for powerpc and sh4.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

--- End Message ---
--- Begin Message ---
Source: ghc
Source-Version: 8.6.5+dfsg1-3

We believe that the bug you reported is fixed in the latest version of
ghc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gianfranco Costamagna <[email protected]> (supplier of updated ghc 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 01 Aug 2019 12:56:23 +0200
Source: ghc
Architecture: source
Version: 8.6.5+dfsg1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Haskell Group 
<[email protected]>
Changed-By: Gianfranco Costamagna <[email protected]>
Closes: 933306
Changes:
 ghc (8.6.5+dfsg1-3) unstable; urgency=medium
 .
   [ Gianfranco Costamagna ]
   * debian/patches/Disable-unboxed-arrays.patch
     - upstream proposed workaround for BE build failures.
   * use parallel=2 for s390x, mips, mipsel, mips64el builds
 .
   [ Clint Adams ]
   * Patch from John Paul Adrian Glaubitz to set --host and --build for
     cross-builds.  closes: #933306.
Checksums-Sha1:
 f388ffc3c25d491aaeb32223b71c9cd766ba4b7f 2371 ghc_8.6.5+dfsg1-3.dsc
 aa2dfcdb33be41bc9e52f5ed0dcd4506b62e6c64 18950616 ghc_8.6.5+dfsg1.orig.tar.xz
 f22dc7bb8327ffbacff9ba740aa9e03dbdecd909 53232 ghc_8.6.5+dfsg1-3.debian.tar.xz
 99f64eb85620edc98b41db0999e6454349ddba72 11628 
ghc_8.6.5+dfsg1-3_source.buildinfo
Checksums-Sha256:
 ce3c131067188d43ff578df94ce3b6f7fd7074bb9f4a28b50cea0dd4154e90f6 2371 
ghc_8.6.5+dfsg1-3.dsc
 510fc4609abcd7e1027a01561cbbd5b332d8a7b9eacf8a36038eae10197dec22 18950616 
ghc_8.6.5+dfsg1.orig.tar.xz
 6377437d46aea6eeda7aa4ef39c671d18487dfe88ea2de848f9a9942921e2b7e 53232 
ghc_8.6.5+dfsg1-3.debian.tar.xz
 db065b4409f5013db75ec4c1b58741c09e0fbf8abbcbf0b6434785448547edde 11628 
ghc_8.6.5+dfsg1-3_source.buildinfo
Files:
 34530ce1eeb9d69ff78f8eb9307a1b09 2371 haskell optional ghc_8.6.5+dfsg1-3.dsc
 8541694d276f969399687463ca8455f3 18950616 haskell optional 
ghc_8.6.5+dfsg1.orig.tar.xz
 d5e153830a76dafacde5b42ad5b4704c 53232 haskell optional 
ghc_8.6.5+dfsg1-3.debian.tar.xz
 50e001d25b9421b21276ee060d053363 11628 haskell optional 
ghc_8.6.5+dfsg1-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEdYHsh0BT5sgHeRubVZIzHhmdOKgFAl1G3A4ACgkQVZIzHhmd
OKimXw/7BoOkuHOCgM1fFVnQrJSaGrp09RbG7PYHgAbZcK98ME0t/8X64rpHpcjD
Js0GPo7tIRTaXsy4d9ebNUhbK+e36hyrUTmBR4vAzbgMrryQCA51on6IH18BeYKB
suKGC7ZixROkUKV/wnYmhTSNoTZVhhg66Fk+9Z9zmt02hjUmuWR7HH6JzOg465Do
Bj2YFBivLB5+NlG/yYqmHDR8E5vq2AaWp13rpXEG7SjFHq+yp2SSbN+/bAbdMV7Y
eiJ8iwoovGkWYzErySNudq5px5+aUpiC6TaIDJrlB82G4RQz/2087jd58fpfwylu
UenkWWxwbSwEIsY6Q39n0E/d9PJDoOfD50RNx12j8rr/huD3ePSggsTq5h++P9K2
3pptBAns/dn3fE+6XczOufWn3hshFIErwMkCz5lvuU2h0I4pm3bOB5MxjG25KpBQ
3YSXdTMUYuPfnpRvi2iL9T+pq5eukzsylsCHbssPiRyxsZdYv0zB3WZPtqLKzA6u
skIQ5QKcZM1D6py+11+L08Mpf0v01hx2y/3YrsAaCqN0/Bx+4HJwKjuwqbVGLhQY
l9sSwFywCVgNtmALgwmAu2lvCsgKaaulMGu94v8zYjchdB3NlCsBe1WnHvmnmfvk
TXz3lETUY3yVkxXF0LSJLdnvH/LL4k1orPxtq9OIzbn1/JWfw4o=
=MZUH
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-haskell-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-haskell-maintainers

Reply via email to