Re: ANNOUNCE: GHC 7.10.1 Release Candidate 1 - feedback on Mac OS

2015-01-02 Thread George Colpitts
Only problem remaining is compiling with -fllvm and running resulting
executable

Other problems below have now been solved:


   - cpphs - new version resolves problem
   - cabal install vector - upgrade to gcc (Homebrew gcc 4.9.2_1) 4.9.2
   solves problem


On Thu, Jan 1, 2015 at 9:58 AM, George Colpitts george.colpi...@gmail.com
wrote:

 I built from source on Mac OS and found the following issues:


- llvm , compiling with llvm (3.4.2) gives the following warnings:
   - $ ghc  -fllvm cubeFast.hs
   [1 of 1] Compiling Main ( cubeFast.hs, cubeFast.o )
   clang: warning: argument unused during compilation:
   '-fno-stack-protector'
   clang: warning: argument unused during compilation: '-D
   TABLES_NEXT_TO_CODE'
   clang: warning: argument unused during compilation: '-I .'
   clang: warning: argument unused during compilation: '-fno-common'
   clang: warning: argument unused during compilation: '-U __PIC__'
   clang: warning: argument unused during compilation: '-D __PIC__'
   Linking cubeFast ...
   - running the resulting executable crashes (compiling without
   -fllvm gives no warnings and executable works properly)
   -  cat bigCube.txt | ./cubeFast  /dev/null
   Segmentation fault: 11
   - Exception Type:EXC_BAD_ACCESS (SIGSEGV)
   Exception Codes:   KERN_INVALID_ADDRESS at 0xfffd5bfd8460


- ​cabal install vector fails:
- [ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic (
   Data/Vector/Fusion/Stream/Monadic.hs,
   dist/build/Data/Vector/Fusion/Stream/Monadic.o )
   command line: can't load .so/.DLL for:
   
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/libiconv.dylib
   
 (dlopen(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/libiconv.dylib,
   5): no suitable image found.  Did find:

   
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/libiconv.dylib:
   mach-o, but wrong filetype)
- ​cabal install cpphs fails:​
-cabal install cpphs
   Resolving dependencies...
   Configuring cpphs-1.13...
   Building cpphs-1.13...
   Failed to install cpphs-1.13
   Build log ( /Users/gcolpitts/.cabal/logs/cpphs-1.13.log ):
   Warning: cpphs.cabal: Unknown fields: build-depends (line 5)
   Fields allowed in this section:
   name, version, cabal-version, build-type, license, license-file,
   license-files, copyright, maintainer, stability, homepage,
   package-url, bug-reports, synopsis, description, category, author,
   tested-with, data-files, data-dir, extra-source-files,
   extra-tmp-files, extra-doc-files
   Configuring cpphs-1.13...
   Building cpphs-1.13...
   Preprocessing library cpphs-1.13...
   - Language/Preprocessor/Cpphs.hs:1:1:
   Could not find module ‘Prelude’
   It is a member of the hidden package ‘base-4.8.0.0’.
   Perhaps you need to add ‘base’ to the build-depends in your
   .cabal file.
   Use -v to see a list of the files searched for.

   Language/Preprocessor/Cpphs/CppIfdef.hs:32:8:
   Could not find module ‘Numeric’
   It is a member of the hidden package ‘base-4.8.0.0’.
   Perhaps you need to add ‘base’ to the build-depends in your
   .cabal file.
   Use -v to see a list of the files searched for.

   Language/Preprocessor/Cpphs/CppIfdef.hs:33:8:
   Could not find module ‘System.IO.Unsafe’
   It is a member of the hidden package ‘base-4.8.0.0’.
   Perhaps you need to add ‘base’ to the build-depends in your
   .cabal file.
   Use -v to see a list of the files searched for.

   Language/Preprocessor/Cpphs/CppIfdef.hs:34:8:
   Could not find module ‘System.IO’
   It is a member of the hidden package ‘base-4.8.0.0’.
   Perhaps you need to add ‘base’ to the build-depends in your
   .cabal file.
   Use -v to see a list of the files searched for.

   Language/Preprocessor/Cpphs/MacroPass.hs:29:8:
   Could not find module ‘Control.Monad’
   It is a member of the hidden package ‘base-4.8.0.0’.
   Perhaps you need to add ‘base’ to the build-depends in your
   .cabal file.
   Use -v to see a list of the files searched for.

   Language/Preprocessor/Cpphs/MacroPass.hs:30:8:
   Could not find module ‘System.Time’
   Perhaps you meant
 System.CPUTime (needs flag -package-key base-4.8.0.0)
 System.Cmd (needs flag -package-key
   process-1.2.1.0@proce_ADbmNMhxdsoDn9NrOWjezu)
 System.Mem (needs flag -package-key base-4.8.0.0)
   Use -v to see a list of the files searched for.

   Language/Preprocessor/Cpphs/MacroPass.hs:31:8:
   

Re: ANNOUNCE: GHC 7.10.1 Release Candidate 1 - feedback on Mac OS

2015-01-01 Thread George Colpitts
I built from source on Mac OS and found the following issues:


   - llvm , compiling with llvm (3.4.2) gives the following warnings:
  - $ ghc  -fllvm cubeFast.hs
  [1 of 1] Compiling Main ( cubeFast.hs, cubeFast.o )
  clang: warning: argument unused during compilation:
  '-fno-stack-protector'
  clang: warning: argument unused during compilation: '-D
  TABLES_NEXT_TO_CODE'
  clang: warning: argument unused during compilation: '-I .'
  clang: warning: argument unused during compilation: '-fno-common'
  clang: warning: argument unused during compilation: '-U __PIC__'
  clang: warning: argument unused during compilation: '-D __PIC__'
  Linking cubeFast ...
  - running the resulting executable crashes (compiling without -fllvm
  gives no warnings and executable works properly)
  -  cat bigCube.txt | ./cubeFast  /dev/null
  Segmentation fault: 11
  - Exception Type:EXC_BAD_ACCESS (SIGSEGV)
  Exception Codes:   KERN_INVALID_ADDRESS at 0xfffd5bfd8460


   - ​cabal install vector fails:
   - [ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic (
  Data/Vector/Fusion/Stream/Monadic.hs,
  dist/build/Data/Vector/Fusion/Stream/Monadic.o )
  command line: can't load .so/.DLL for:
  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/libiconv.dylib
  
(dlopen(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/libiconv.dylib,
  5): no suitable image found.  Did find:

  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/libiconv.dylib:
  mach-o, but wrong filetype)
   - ​cabal install cpphs fails:​
   -cabal install cpphs
  Resolving dependencies...
  Configuring cpphs-1.13...
  Building cpphs-1.13...
  Failed to install cpphs-1.13
  Build log ( /Users/gcolpitts/.cabal/logs/cpphs-1.13.log ):
  Warning: cpphs.cabal: Unknown fields: build-depends (line 5)
  Fields allowed in this section:
  name, version, cabal-version, build-type, license, license-file,
  license-files, copyright, maintainer, stability, homepage,
  package-url, bug-reports, synopsis, description, category, author,
  tested-with, data-files, data-dir, extra-source-files,
  extra-tmp-files, extra-doc-files
  Configuring cpphs-1.13...
  Building cpphs-1.13...
  Preprocessing library cpphs-1.13...
  - Language/Preprocessor/Cpphs.hs:1:1:
  Could not find module ‘Prelude’
  It is a member of the hidden package ‘base-4.8.0.0’.
  Perhaps you need to add ‘base’ to the build-depends in your
  .cabal file.
  Use -v to see a list of the files searched for.

  Language/Preprocessor/Cpphs/CppIfdef.hs:32:8:
  Could not find module ‘Numeric’
  It is a member of the hidden package ‘base-4.8.0.0’.
  Perhaps you need to add ‘base’ to the build-depends in your
  .cabal file.
  Use -v to see a list of the files searched for.

  Language/Preprocessor/Cpphs/CppIfdef.hs:33:8:
  Could not find module ‘System.IO.Unsafe’
  It is a member of the hidden package ‘base-4.8.0.0’.
  Perhaps you need to add ‘base’ to the build-depends in your
  .cabal file.
  Use -v to see a list of the files searched for.

  Language/Preprocessor/Cpphs/CppIfdef.hs:34:8:
  Could not find module ‘System.IO’
  It is a member of the hidden package ‘base-4.8.0.0’.
  Perhaps you need to add ‘base’ to the build-depends in your
  .cabal file.
  Use -v to see a list of the files searched for.

  Language/Preprocessor/Cpphs/MacroPass.hs:29:8:
  Could not find module ‘Control.Monad’
  It is a member of the hidden package ‘base-4.8.0.0’.
  Perhaps you need to add ‘base’ to the build-depends in your
  .cabal file.
  Use -v to see a list of the files searched for.

  Language/Preprocessor/Cpphs/MacroPass.hs:30:8:
  Could not find module ‘System.Time’
  Perhaps you meant
System.CPUTime (needs flag -package-key base-4.8.0.0)
System.Cmd (needs flag -package-key
  process-1.2.1.0@proce_ADbmNMhxdsoDn9NrOWjezu)
System.Mem (needs flag -package-key base-4.8.0.0)
  Use -v to see a list of the files searched for.

  Language/Preprocessor/Cpphs/MacroPass.hs:31:8:
  Could not find module ‘System.Locale’
  Use -v to see a list of the files searched for.

  Language/Preprocessor/Cpphs/Options.hs:22:8:
  Could not find module ‘Data.Maybe’
  It is a member of the hidden package ‘base-4.8.0.0’.
  Perhaps you need to add ‘base’ to the build-depends in your
  .cabal file.
  Use -v to see a list of the files searched for.

  

Re: ANNOUNCE: GHC 7.10.1 Release Candidate 1 - feedback on Mac OS

2015-01-01 Thread Malcolm Wallace

On 1 Jan 2015, at 13:58, George Colpitts wrote:

 Configuring cpphs-1.13...
 Building cpphs-1.13...
 Warning: cpphs.cabal: Unknown fields: build-depends (line 5)

 Could not find module ‘Prelude’
 It is a member of the hidden package ‘base-4.8.0.0’.
 Perhaps you need to add ‘base’ to the build-depends in your .cabal file.

The two statements unknown field build-depends and add package to 
build-depends seem rather contradictory.  How can this be fixed?

Regards,
Malcolm

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ANNOUNCE: GHC 7.10.1 Release Candidate 1 - feedback on Mac OS

2015-01-01 Thread Erik Hesselink
It seems to be building a very old cpphs (1.13) with a new version of
cabal. cpphs-1.13 has a top-level build-depends statement which isn't
allowed anymore: it should now be added to the library section, which
is what the error message tries to indicate.

Erik

On Thu, Jan 1, 2015 at 3:43 PM, Malcolm Wallace malcolm.wall...@me.com wrote:

 On 1 Jan 2015, at 13:58, George Colpitts wrote:

 Configuring cpphs-1.13...
 Building cpphs-1.13...
 Warning: cpphs.cabal: Unknown fields: build-depends (line 5)

 Could not find module ‘Prelude’
 It is a member of the hidden package ‘base-4.8.0.0’.
 Perhaps you need to add ‘base’ to the build-depends in your .cabal file.

 The two statements unknown field build-depends and add package to 
 build-depends seem rather contradictory.  How can this be fixed?

 Regards,
 Malcolm

 ___
 Glasgow-haskell-users mailing list
 Glasgow-haskell-users@haskell.org
 http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users