ANNOUNCE: GHC 7.10.1 Release Candidate 1 - questions on Mac OS platform
George Colpitts
george.colpitts at gmail.com
Sun Jan 18 20:04:06 UTC 2015
Eric, thanks for the quick response, that is good news that you are not
seeing the problems I see.
However after I rebuilt with Apple gcc and still see the errors when
calling main from ghci.
One is an open ticket, https://ghc.haskell.org/trac/ghc/ticket/9277# which
was reported in versions before 7.10.1 so I updated it with the details of
my experience.
I am running Yosemite 10.10.1. What version are you running?
I did notice some difference between our two systems.
I have
/usr/bin/gcc --version
Configured with: *--prefix=/Applications/Xcode.app/Contents/Developer/usr*
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
while you have *--prefix=/Library/Developer/CommandLineTools/usr*
When I try
bash-3.2$ xcode-select --install
xcode-select: error: command line tools are already installed, use
"Software Update" to install updates
it doesn't change anything, I still have the above prefix.
Also, you are right, my last email had info for the wrong ghc, when I look
at the right one and yours I see the following difference. You have
,("LibDir","/Library/Frameworks/GHC.framework/Versions/7.10.0-rc1-x86_64/usr/lib/ghc-7.10.0.20141222")
,("Global Package
DB","/Library/Frameworks/GHC.framework/Versions/7.10.0-rc1-x86_64/usr/lib/ghc-7.10.0.20141222/package.conf.d")
I have
,("LibDir","/usr/local/lib/ghc-7.10.0.20141222")
,("Global Package DB","/usr/local/lib/ghc-7.10.0.20141222/package.conf.d")
I am doing a build by doing the following:
$ autoreconf
$ ./configure
$ make
$ make install
The correct output from ghc --info for me is:
ghc --info
[("Project name","The Glorious Glasgow Haskell Compilation System")
,("GCC extra via C opts"," -fwrapv")
,("C compiler command","/usr/bin/gcc")
,("C compiler flags"," -m64 -fno-stack-protector")
,("C compiler link flags"," -m64")
,("Haskell CPP command","/usr/bin/gcc")
,("Haskell CPP flags","-E -undef -traditional -Wno-invalid-pp-token
-Wno-unicode -Wno-trigraphs ")
,("ld command","/usr/bin/ld")
,("ld flags"," -arch x86_64")
,("ld supports compact unwind","YES")
,("ld supports build-id","NO")
,("ld supports filelist","YES")
,("ld is GNU ld","NO")
,("ar command","/usr/bin/ar")
,("ar flags","clqs")
,("ar supports at file","NO")
,("touch command","touch")
,("dllwrap command","/bin/false")
,("windres command","/bin/false")
,("libtool command","libtool")
,("perl command","/usr/bin/perl")
,("target os","OSDarwin")
,("target arch","ArchX86_64")
,("target word size","8")
,("target has GNU nonexec stack","False")
,("target has .ident directive","True")
,("target has subsections via symbols","True")
,("Unregisterised","NO")
,("LLVM llc command","/usr/local/bin/llc")
,("LLVM opt command","/usr/local/bin/opt")
,("Project version","7.10.0.20141222")
,("Project Git commit id","a8c556dfca3eca5277615cc2bf9d6c8f1f143c9a")
,("Booter version","7.8.3")
,("Stage","2")
,("Build platform","x86_64-apple-darwin")
,("Host platform","x86_64-apple-darwin")
,("Target platform","x86_64-apple-darwin")
,("Have interpreter","YES")
,("Object splitting supported","YES")
,("Have native code generator","YES")
,("Support SMP","YES")
,("Tables next to code","YES")
,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn
thr_debug_dyn l_dyn thr_l_dyn")
,("Support dynamic-too","YES")
,("Support parallel --make","YES")
,("Support reexported-modules","YES")
,("Support thinning and renaming package flags","YES")
,("Uses package keys","YES")
,("Dynamic by default","NO")
,("GHC Dynamic","YES")
,("Leading underscore","YES")
,("Debug on","False")
,("LibDir","/usr/local/lib/ghc-7.10.0.20141222")
,("Global Package DB","/usr/local/lib/ghc-7.10.0.20141222/package.conf.d")
]
On Sat, Jan 17, 2015 at 2:38 PM, Erik Hesselink <hesselink at gmail.com> wrote:
> Hi George,
>
> I've not tried compiling via llvm, but I have a working Mac GHC 7.10
> build that I've been using, and haven't seen any of the other issues
> you mentioned. I'm not sure what's recommended but I believe I'm using
> clang (see output below). If you want to try my build, you can
> download it at [1]. BTW, the info you posted seems to be from 7.8, not
> 7.10.
>
> Regards,
>
> Erik
>
> [1]
> https://docs.google.com/a/silk.co/uc?id=0B5E6EvOcuE0nNFR4WUVNZzRtbGs&export=download
>
> $ gcc --version
> Configured with: --prefix=/Library/Developer/CommandLineTools/usr
> --with-gxx-include-dir=/usr/include/c++/4.2.1
> Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
> Target: x86_64-apple-darwin13.4.0
> Thread model: posix
>
> $ ghc --info
> [("Project name","The Glorious Glasgow Haskell Compilation System")
> ,("GCC extra via C opts"," -fwrapv")
> ,("C compiler command","/usr/bin/gcc")
> ,("C compiler flags"," -m64 -fno-stack-protector")
> ,("C compiler link flags"," -m64")
> ,("Haskell CPP command","/usr/bin/gcc")
> ,("Haskell CPP flags","-E -undef -traditional -Wno-invalid-pp-token
> -Wno-unicode -Wno-trigraphs ")
> ,("ld command","/usr/bin/ld")
> ,("ld flags"," -arch x86_64")
> ,("ld supports compact unwind","YES")
> ,("ld supports build-id","NO")
> ,("ld supports filelist","YES")
> ,("ld is GNU ld","NO")
> ,("ar command","/usr/bin/ar")
> ,("ar flags","clqs")
> ,("ar supports at file","NO")
> ,("touch command","touch")
> ,("dllwrap command","/bin/false")
> ,("windres command","/bin/false")
> ,("libtool command","libtool")
> ,("perl command","/usr/bin/perl")
> ,("target os","OSDarwin")
> ,("target arch","ArchX86_64")
> ,("target word size","8")
> ,("target has GNU nonexec stack","False")
> ,("target has .ident directive","True")
> ,("target has subsections via symbols","True")
> ,("Unregisterised","NO")
> ,("LLVM llc command","llc")
> ,("LLVM opt command","opt")
> ,("Project version","7.10.0.20141222")
> ,("Project Git commit id","a8c556dfca3eca5277615cc2bf9d6c8f1f143c9a")
> ,("Booter version","7.8.3")
> ,("Stage","2")
> ,("Build platform","x86_64-apple-darwin")
> ,("Host platform","x86_64-apple-darwin")
> ,("Target platform","x86_64-apple-darwin")
> ,("Have interpreter","YES")
> ,("Object splitting supported","NO")
> ,("Have native code generator","YES")
> ,("Support SMP","YES")
> ,("Tables next to code","YES")
> ,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn
> thr_debug_dyn l_dyn thr_l_dyn")
> ,("Support dynamic-too","YES")
> ,("Support parallel --make","YES")
> ,("Support reexported-modules","YES")
> ,("Support thinning and renaming package flags","YES")
> ,("Uses package keys","YES")
> ,("Dynamic by default","NO")
> ,("GHC Dynamic","YES")
> ,("Leading underscore","YES")
> ,("Debug on","False")
>
> ,("LibDir","/Library/Frameworks/GHC.framework/Versions/7.10.0-rc1-x86_64/usr/lib/ghc-7.10.0.20141222")
> ,("Global Package
>
> DB","/Library/Frameworks/GHC.framework/Versions/7.10.0-rc1-x86_64/usr/lib/ghc-7.10.0.20141222/package.conf.d")
> ]
>
> On Sat, Jan 17, 2015 at 1:36 PM, George Colpitts
> <george.colpitts at gmail.com> wrote:
> > Has anybody successfully used llvm on the Mac with 7.10.1 RC1? My
> problem is
> > described below.
> > Which is the recommended gcc to use when building source?
> >
> > GNU gcc 4.9.2
> > Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
> >
> > When using ghci with 7.10.1 RC1 I get the following errors
> intermittently.
> > Is anybody else seeing these?
> >
> > Too late for parseStaticFlags: call it before runGhc or runGhcT
> > *** Exception: ExitFailure 1
> > ld: library not found for -l:ghc31505_10.dylib
> > collect2: error: ld returned 1 exit status
> > phase `Linker' failed (exitcode = 1)
> >
> > Thanks
> >
> > On Fri, Jan 2, 2015 at 9:12 AM, George Colpitts <
> george.colpitts at gmail.com>
> > wrote:
> >>
> >> Only problem remaining is compiling with -fllvm and running resulting
> >> executable
> >>
> >> .
> >> ..
> >>
> >>
> >> 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 0xfffffffd5bfd8460
> >>>
> >>> ...
> >>>
> >>> Configuration details:
> >>>
> >>> Mac OS 10.10.1 (Yosemite)
> >>> uname -a
> >>> Darwin iMac27-5.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19
> >>> 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
> >>> llvm info:
> >>> opt --version
> >>> LLVM (http://llvm.org/):
> >>> LLVM version 3.4.2
> >>> Optimized build with assertions.
> >>> Built Oct 31 2014 (23:14:30).
> >>> Default target: x86_64-apple-darwin14.0.0
> >>> Host CPU: corei7
> >>> gcc --version
> >>> gcc (Homebrew gcc 4.9.1) 4.9.1
> >>> Copyright (C) 2014 Free Software Foundation, Inc.
> >>> This is free software; see the source for copying conditions. There is
> >>> NO
> >>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> >>> PURPOSE.
> >>> /usr/bin/ghc --info
> >>> [("Project name","The Glorious Glasgow Haskell Compilation System")
> >>> ,("GCC extra via C opts"," -fwrapv")
> >>> ,("C compiler command","/usr/bin/gcc")
> >>> ,("C compiler flags"," -m64 -fno-stack-protector")
> >>> ,("C compiler link flags"," -m64")
> >>> ,("Haskell CPP command","/usr/bin/gcc")
> >>> ,("Haskell CPP flags","-E -undef -traditional -Wno-invalid-pp-token
> >>> -Wno-unicode -Wno-trigraphs")
> >>> ,("ld command","/usr/bin/ld")
> >>> ,("ld flags"," -arch x86_64")
> >>> ,("ld supports compact unwind","YES")
> >>> ,("ld supports build-id","NO")
> >>> ,("ld supports filelist","YES")
> >>> ,("ld is GNU ld","NO")
> >>> ,("ar command","/usr/bin/ar")
> >>> ,("ar flags","clqs")
> >>> ,("ar supports at file","NO")
> >>> ,("touch command","touch")
> >>> ,("dllwrap command","/bin/false")
> >>> ,("windres command","/bin/false")
> >>> ,("libtool command","libtool")
> >>> ,("perl command","/usr/bin/perl")
> >>> ,("target os","OSDarwin")
> >>> ,("target arch","ArchX86_64")
> >>> ,("target word size","8")
> >>> ,("target has GNU nonexec stack","False")
> >>> ,("target has .ident directive","True")
> >>> ,("target has subsections via symbols","True")
> >>> ,("Unregisterised","NO")
> >>> ,("LLVM llc command","llc")
> >>> ,("LLVM opt command","opt")
> >>> ,("Project version","7.8.3")
> >>> ,("Booter version","7.6.3")
> >>> ,("Stage","2")
> >>> ,("Build platform","x86_64-apple-darwin")
> >>> ,("Host platform","x86_64-apple-darwin")
> >>> ,("Target platform","x86_64-apple-darwin")
> >>> ,("Have interpreter","YES")
> >>> ,("Object splitting supported","YES")
> >>> ,("Have native code generator","YES")
> >>> ,("Support SMP","YES")
> >>> ,("Tables next to code","YES")
> >>> ,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn
> >>> thr_debug_dyn l_dyn thr_l_dyn")
> >>> ,("Support dynamic-too","YES")
> >>> ,("Support parallel --make","YES")
> >>> ,("Dynamic by default","NO")
> >>> ,("GHC Dynamic","YES")
> >>> ,("Leading underscore","YES")
> >>> ,("Debug on","False")
> >>>
> >>>
> ,("LibDir","/Library/Frameworks/GHC.framework/Versions/7.8.3-x86_64/usr/lib/ghc-7.8.3")
> >>> ,("Global Package
> >>>
> DB","/Library/Frameworks/GHC.framework/Versions/7.8.3-x86_64/usr/lib/ghc-7.8.3/package.conf.d")
> >>> ]
> >>> Not sure I found the correct instructions for building from source, I
> >>> used the following:
> >>>
> >>> $ autoreconf
> >>> $ ./configure
> >>> $ make
> >>> $ make install
> >>>
> >>>
> >>>
> >>> On Tue, Dec 23, 2014 at 10:36 AM, Austin Seipp <austin at well-typed.com>
> >>> wrote:
> >>>>
> >>>> We are pleased to announce the first release candidate for GHC 7.10.1:
> >>>>
> >>>> https://downloads.haskell.org/~ghc/7.10.1-rc1/
> >>>>
> >>>> This includes the source tarball and bindists for 64bit/32bit Linux
> >>>> and Windows. Binary builds for other platforms will be available
> >>>> shortly. (CentOS 6.5 binaries are not available at this time like they
> >>>> were for 7.8.x). These binaries and tarballs have an accompanying
> >>>> SHA256SUMS file signed by my GPG key id (0x3B58D86F).
> >>>>
> >>>> We plan to make the 7.10.1 release sometime in February of 2015. We
> >>>> expect another RC to occur during January of 2015.
> >>>>
> >>>> Please test as much as possible; bugs are much cheaper if we find them
> >>>> before the release!
> >>>>
> >>>> --
> >>>> Regards,
> >>>>
> >>>> Austin Seipp, Haskell Consultant
> >>>> Well-Typed LLP, http://www.well-typed.com/
> >>>> _______________________________________________
> >>>> ghc-devs mailing list
> >>>> ghc-devs at haskell.org
> >>>> http://www.haskell.org/mailman/listinfo/ghc-devs
> >>>
> >>>
> >>
> >
> >
> > _______________________________________________
> > Glasgow-haskell-users mailing list
> > Glasgow-haskell-users at haskell.org
> > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20150118/c63a866c/attachment-0001.html>
More information about the ghc-devs
mailing list