Re: expectJust initTcInteractive when compiling for android

2013-01-09 Thread Stephen Paul Weber
! (the 'impossible' happened) (GHC version 7.7.20130109 for arm-unknown-linux): expectJust initTcInteractive This is a known bug http://hackage.haskell.org/trac/ghc/ticket/7490. If you just try the build again after getting the error, it usually works. -- Stephen Paul Weber, @singpolyma

Re: Porting GHC to QNXNTO ARM

2013-01-08 Thread Stephen Paul Weber
Somebody claiming to be Stephen Paul Weber wrote: I've decided to move on to the essential ARM port of my GHC cross-compiler. I got pretty far. I also needed to install LLVM, since there is no native code generator for ARM. However, it seems like something in the build system

Re: Android crosscompiler

2013-01-07 Thread Stephen Paul Weber
Somebody claiming to be Nathan Hüsken wrote: On 01/05/2013 05:20 PM, Stephen Paul Weber wrote: Somebody claiming to be Nathan Hüsken wrote: Time.hsc: In function '_hsc2hs_test45': Time.hsc:266:20: error: storage size of 'test_array' isn't constant Which Time.hsc? It is libraries/old-time

Re: sys/exentfd.h (QNXNTO)

2013-01-07 Thread Stephen Paul Weber
Somebody claiming to be Ian Lynagh wrote: On Sat, Dec 08, 2012 at 06:32:42PM +, Stephen Paul Weber wrote: checking sys/eventfd.h usability... no checking sys/eventfd.h presence... yes What does this mean? Is it a problem? There should be more information about what failed in config.log

Re: base not detecting Double/Float machine sizes (QNXNTO)

2013-01-07 Thread Stephen Paul Weber
Somebody claiming to be Ian Lynagh wrote: On Thu, Dec 20, 2012 at 01:20:46PM -0500, Stephen Paul Weber wrote: Somebody claiming to be Stephen Paul Weber wrote: libraries/base/Foreign/C/Types.hs:162:25: Not in scope: type constructor or class `HTYPE_FLOAT' After much more digging

Re: base not detecting Double/Float machine sizes (QNXNTO)

2013-01-07 Thread Stephen Paul Weber
Somebody signing messages as Stephen Paul Weber wrote: Somebody claiming to be Ian Lynagh wrote: On Thu, Dec 20, 2012 at 01:20:46PM -0500, Stephen Paul Weber wrote: Somebody claiming to be Stephen Paul Weber wrote: libraries/base/Foreign/C/Types.hs:162:25: Do you know why the test is failing

Re: base not detecting Double/Float machine sizes (QNXNTO)

2013-01-07 Thread Stephen Paul Weber
Somebody signing messages as Stephen Paul Weber wrote: Somebody signing messages as Stephen Paul Weber wrote: Somebody claiming to be Ian Lynagh wrote: On Thu, Dec 20, 2012 at 01:20:46PM -0500, Stephen Paul Weber wrote: Somebody claiming to be Stephen Paul Weber wrote: libraries/base/Foreign

Re: base not detecting Double/Float machine sizes (QNXNTO)

2013-01-07 Thread Stephen Paul Weber
Somebody claiming to be Daniel Fischer wrote: On Monday 07 January 2013, 12:17:41, Stephen Paul Weber wrote: I think my vote would be to restructure the checks such that non-integral types are specially handled. The purpose of the test was to check whether two types have the same size, if I

[PATCH] for cross-compiling integral check

2013-01-07 Thread Stephen Paul Weber
Somebody signing messages as Stephen Paul Weber wrote: Somebody claiming to be Daniel Fischer wrote: On Monday 07 January 2013, 12:17:41, Stephen Paul Weber wrote: I think my vote would be to restructure the checks such that non-integral types are specially handled. The purpose of the test

Re: [PATCH] for cross-compiling integral check

2013-01-07 Thread Stephen Paul Weber
Somebody signing messages as Stephen Paul Weber wrote: I'm not 100% sure that the attached patch is the right solution, but it seems to work both on my local system as well as with my cross-compiler, and is not so dramatic as to remove the integralness check entirely. Feedback welcome

Re: Android crosscompiler

2013-01-05 Thread Stephen Paul Weber
. What happens when you try to build by itself? Indeed, /home/ls/src/ghc-7.7.20121213/libraries/base/dist-install/build/Prelude.hi does not exist. -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer to be contacted edition right joseph

Re: Android crosscompiler

2013-01-04 Thread Stephen Paul Weber
Somebody claiming to be Nathan Hüsken wrote: OK, I managed to set the sysroot. Now the buil fails with this: Try building ghc-prim with your cross-compiler by hand. Sometimes the GHC build system eats useful error messages. -- Stephen Paul Weber, @singpolyma See http://singpolyma.net

Re: Android crosscompiler

2013-01-03 Thread Stephen Paul Weber
have no NDK experience. -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer to be contacted edition right joseph signature.asc Description: Digital signature ___ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org

Re: FW: [Haskell-cafe] hsc2hs and Storable (especially) unsafe

2013-01-02 Thread Stephen Paul Weber
, mostly when there are C enums involved. Usually in my FFI work I just write the imports by hand (though this also allows for dangerously writing `Int` when you mean `CInt`, etc). -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer to be contacted edition right joseph

Cross-compiling bug in the LLVM backend driver

2012-12-12 Thread Stephen Paul Weber
` and always pass it through to LLVM. Thoughts? -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer to be contacted edition right joseph signature.asc Description: Digital signature ___ Cvs-ghc mailing list Cvs-ghc@haskell.org

Re: [base] CLK_TCK issue for QNXNTO

2012-12-11 Thread Stephen Paul Weber
Somebody claiming to be Stephen Paul Weber wrote: When I try to build base for QNXNTO (BlackBerry 10) using my cross-compiler I get an error about test_array is not of static size or similar. -#if defined(CLK_TCK) +#if defined(CLK_TCK) !defined(__QNXNTO__) (#const CLK_TCK) #else

Re: base not detecting Double/Float machine sizes (QNXNTO)

2012-12-11 Thread Stephen Paul Weber
Somebody claiming to be Stephen Paul Weber wrote: When building base with my QNXNTO cross-compiling GHC, I get the following: libraries/base/Foreign/C/Types.hs:162:25: Not in scope: type constructor or class `HTYPE_FLOAT' Another question: if `base` cannet build without these constants

[PATCH] QNXNTO and cross-compiling patches

2012-12-11 Thread Stephen Paul Weber
with: . $BBNDK_INSTALL_PATH/bbndk-env.sh # Create a build.mk that uses INTEGER_LIBRARY=integer-simple perl boot ./configure --target=i486-pc-nto-qnx8.0.0 --build=i686-linux-gnu --host=i486-pc-nto-qnx8.0.0 make replace i486-pc-nto-qnx8.0.0 with arm-unknown-nto-qnx8.0.0eabi to target ARM. -- Stephen Paul Weber

Re: [PATCH] QNXNTO and cross-compiling patches

2012-12-11 Thread Stephen Paul Weber
Somebody claiming to be Stephen Paul Weber wrote: The attached patches are needed to cross-compile with GHC for QNXNTO And I forgot to attach... Attached now. -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer to be contacted edition right joseph From

Re: [PATCH] [base] CLK_TCK issue for QNXNTO

2012-12-11 Thread Stephen Paul Weber
Somebody claiming to be Stephen Paul Weber wrote: Somebody claiming to be Stephen Paul Weber wrote: When I try to build base for QNXNTO (BlackBerry 10) using my cross-compiler I get an error about test_array is not of static size or similar. Looking up CLK_TCK in the QNXNTO time.h

Re: hsc2hs override C compiler

2012-12-09 Thread Stephen Paul Weber
Somebody claiming to be Duncan Coutts wrote: On 8 December 2012 20:36, Stephen Paul Weber singpol...@singpolyma.net wrote: The ./Setup program is passing the selected gcc to hsc2hs, so if you want to use a different gcc, then use --with-gcc=whatever, and then ./Setup will also pass

Porting GHC to QNXNTO ARM

2012-12-09 Thread Stephen Paul Weber
to change? -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer to be contacted edition right joseph ___ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc

Re: hsc2hs override C compiler

2012-12-09 Thread Stephen Paul Weber
Somebody claiming to be Stephen Paul Weber wrote: Somebody claiming to be Duncan Coutts wrote: On 8 December 2012 20:36, Stephen Paul Weber singpol...@singpolyma.net wrote: The ./Setup program is passing the selected gcc to hsc2hs, so if you want to use a different gcc, then use --with-gcc

[base] CLK_TCK issue for QNXNTO

2012-12-08 Thread Stephen Paul Weber
(sysconf (#const _SC_CLK_TCK) = return . fromIntegral) But I don't actually understand what this code does or what the error I get means. I'm not sure my patch is safe. I'd like to get more clarity on this. -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer

sys/exentfd.h (QNXNTO)

2012-12-08 Thread Stephen Paul Weber
/eventfd.h... no checking for eventfd... no What does this mean? Is it a problem? -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer to be contacted edition right joseph ___ Cvs-ghc mailing list Cvs-ghc@haskell.org http

hsc2hs override C compiler

2012-12-08 Thread Stephen Paul Weber
hsc2hs accept multiple --cc and using the last one would work in this case. -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer to be contacted edition right joseph ___ Cvs-ghc mailing list Cvs-ghc@haskell.org http

base not detecting Double/Float machine sizes (QNXNTO)

2012-12-08 Thread Stephen Paul Weber
the configure system to work in my case? -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer to be contacted edition right joseph ___ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc