Pre-compiled ghc binaries for sparc64?

2015-12-03 Thread John Paul Adrian Glaubitz
Hi Jose! I'm currently trying to bootstrap ghc on Debian/sparc64 which is a bit tricky since ghc requires ghc to build itself [1]. I was wondering whether you have any ghc binaries for sparc64 available from Oracle Linux etc which I could use to build the ghc package in Debian/sparc64. I'm

Re: Pre-compiled ghc binaries for sparc64?

2015-12-03 Thread John Paul Adrian Glaubitz
On 12/03/2015 11:04 AM, Romain Dolbeau wrote: > Apparently you don't need a cross-compiler: > > > > I quote: > > "Both ways require you to bootstrap from intermediate HC files: these > are the stylised C files generated by

Re: Pre-compiled ghc binaries for sparc64?

2015-12-03 Thread Romain Dolbeau
2015-12-03 10:59 GMT+01:00 John Paul Adrian Glaubitz < glaub...@physik.fu-berlin.de>: > I'm cross-posting this to debian-sparc@l.d.o., maybe someone else here > has an idea how to build ghc for sparc64 without having to mess around > with cross-compilers on an amd64 host. > Apparently you don't

Re: Pre-compiled ghc binaries for sparc64?

2015-12-03 Thread John Paul Adrian Glaubitz
On 12/03/2015 02:13 PM, Jose E. Marchesi wrote: > Nope. We didn't bootstrap ghc in sparc64 yet. However, if you have a > working multilib toolchain you could probably use a sparcv9 ghc build to > bootstrap a sparc64 build (according to [1] there are sparc debian and > gentoo packages). That's

Re: Pre-compiled ghc binaries for sparc64?

2015-12-03 Thread Jose E. Marchesi
Hey. I'm currently trying to bootstrap ghc on Debian/sparc64 which is a bit tricky since ghc requires ghc to build itself [1]. I was wondering whether you have any ghc binaries for sparc64 available from Oracle Linux etc which I could use to build the ghc package in

Re: Pre-compiled ghc binaries for sparc64?

2015-12-03 Thread John Paul Adrian Glaubitz
On 12/03/2015 02:07 PM, John Paul Adrian Glaubitz wrote: > Currently working on that. Ok, so I had to copy the ghc stuff into the sparc64 chroot manually because the package versions for glibc and libgcc cannot be matched, even with snapshots. I got this far so far:

Re: Pre-compiled ghc binaries for sparc64?

2015-12-03 Thread John Paul Adrian Glaubitz
On 12/03/2015 02:20 PM, John Paul Adrian Glaubitz wrote: > Any idea what is missing here that I need to run the binary with the > dynamic loader from sparcv8+ manually? Shouldn't just running > /usr/lib/ghc/bin/ghc be enough? Did a little script magic: (unstable-sparc64-sbuild)root@andi:/# ghc