Re: [GHC] #1715: seldom panic
#1715: seldom panic +--- Reporter: [EMAIL PROTECTED] | Owner: chak Type: bug | Status: new Priority: normal | Milestone: 6.10 branch Component: Compiler|Version: 6.8 Severity: critical| Resolution: Keywords: | Difficulty: Unknown Testcase: | Architecture: x86 Os: Linux | +--- Comment (by simonpj): Thank you!! I can reproduce it. Brilliant. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1715#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: ghc-6.6.1 testsuite on arm eabi: TestStub_stub.h: No such file or directory
2007/11/20, Simon Marlow [EMAIL PROTECTED]: Martin Guy wrote: $ .../ghc6-6.6.1/testsuite/tests/ghc-regress$ make stage=2 fast make-fast-stage=2.errs 21 Wrong exit code (expected 0 , actual 2 ) /tmp/ghc27396_0/ghc27396_0.hc:5:27: error: TestStub_stub.h: No such file or directory This could be a difference in how gcc on your platform is finding header files, perhaps. Could you add -v to the GHC command line and send us the output? I find I get the same behaviour in x86 when using -fvia-C, and arm is always via-C so I've decided not to worry about it, but here is the -v output when running the guts of driver035 manually: .../ghc6-6.6.1/testsuite/tests/ghc-regress/driver$ rm F.hi F.o stub/TestStub_stub.c stub/TestStub_stub.h stub/TestStub_stub.o F_stub.o .../ghc6-6.6.1/testsuite/tests/ghc-regress/driver$ /usr/bin/ghc -v -c F.hs -stubdir stub Glasgow Haskell Compiler, Version 6.6.1, for Haskell 98, compiled by GHC version 6.6.1 Using package config file: /usr/lib/ghc-6.6.1/package.conf Using package config file: /home/martin/.ghc/arm-linux-6.6.1/package.conf wired-in package base mapped to base-2.1.1 wired-in package rts mapped to rts-1.0 wired-in package haskell98 mapped to haskell98-1.0 wired-in package template-haskell mapped to template-haskell-2.1 Hsc static flags: -funregisterised -static Created temporary directory: /tmp/ghc4841_0 *** Checking old interface for main:TestStub: *** Parser: *** Renamer/typechecker: *** Desugar: Result size = 18 *** Simplify: Result size = 22 Result size = 22 *** Tidy Core: Result size = 22 *** CorePrep: Result size = 24 *** Stg2Stg: *** CodeGen: *** CodeOutput: *** C Compiler: gcc -x c stub/TestStub_stub.c -o /tmp/ghc4841_0/ghc4841_0.s -v -S -Wimplicit -O -D__GLASGOW_HASKELL__=606 -DNO_REGS -DUSE_MINIINTERPRETER -I . -I /usr/lib/ghc-6.6.1/include -fwrapv Using built-in specs. Target: arm-linux-gnueabi Configured with: ../src/configure -v --enable-languages=c,c++,fortran,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --disable-libssp --disable-sjlj-exceptions --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi Thread model: posix gcc version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3) /usr/lib/gcc/arm-linux-gnueabi/4.2.3/cc1 -quiet -v -I . -I /usr/lib/ghc-6.6.1/include -D__GLASGOW_HASKELL__=606 -DNO_REGS -DUSE_MINIINTERPRETER stub/TestStub_stub.c -quiet -dumpbase TestStub_stub.c -auxbase-strip /tmp/ghc4841_0/ghc4841_0.s -O -Wimplicit -version -fwrapv -o /tmp/ghc4841_0/ghc4841_0.s ignoring nonexistent directory /usr/local/include/arm-linux-gnueabi ignoring nonexistent directory /usr/lib/gcc/arm-linux-gnueabi/4.2.3/../../../../arm-linux-gnueabi/include ignoring nonexistent directory /usr/include/arm-linux-gnueabi #include ... search starts here: #include ... search starts here: . /usr/lib/ghc-6.6.1/include /usr/local/include /usr/lib/gcc/arm-linux-gnueabi/4.2.3/include /usr/include End of search list. GNU C version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3) (arm-linux-gnueabi) compiled by GNU C version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3). GGC heuristics: --param ggc-min-expand=38 --param ggc-min-heapsize=15837 Compiler executable checksum: cca392b8baa650ca09db5e1dfdcba292 *** Assembler: gcc -I. -c /tmp/ghc4841_0/ghc4841_0.s -o F_stub.o *** C Compiler: gcc -x c /tmp/ghc4841_0/ghc4841_0.hc -o /tmp/ghc4841_0/ghc4841_1.s -fno-strict-aliasing -v -S -Wimplicit -O -D__GLASGOW_HASKELL__=606 -DNO_REGS -DUSE_MINIINTERPRETER -I . -I /usr/lib/ghc-6.6.1/include -fwrapv Using built-in specs. Target: arm-linux-gnueabi Configured with: ../src/configure -v --enable-languages=c,c++,fortran,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --disable-libssp --disable-sjlj-exceptions --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi Thread model: posix gcc version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3) /usr/lib/gcc/arm-linux-gnueabi/4.2.3/cc1 -quiet -v -I . -I /usr/lib/ghc-6.6.1/include -D__GLASGOW_HASKELL__=606 -DNO_REGS -DUSE_MINIINTERPRETER /tmp/ghc4841_0/ghc4841_0.hc -quiet -dumpbase ghc4841_0.hc -auxbase-strip /tmp/ghc4841_0/ghc4841_1.s -O -Wimplicit -version -fno-strict-aliasing -fwrapv -o /tmp/ghc4841_0/ghc4841_1.s ignoring nonexistent directory /usr/local/include/arm-linux-gnueabi ignoring nonexistent directory /usr/lib/gcc/arm-linux-gnueabi/4.2.3/../../../../arm-linux-gnueabi/include ignoring nonexistent directory /usr/include/arm-linux-gnueabi #include ...
Re: [GHC] #1825: standalone deriving for typeable fails
#1825: standalone deriving for typeable fails ---+ Reporter: jpbernardy | Owner: igloo Type: merge | Status: new Priority: normal | Milestone: 6.8.2 Component: Compiler |Version: 6.8.1 Severity: normal | Resolution: Keywords: | Difficulty: Unknown Testcase: drvail014, drv021 | Architecture: Unknown Os: Unknown| ---+ Changes (by simonpj): * testcase: = drvail014, drv021 * owner: simonpj = igloo * type: bug = merge Comment: Fixed. Thank you for reporting it. Merge to stable: {{{ Tue Nov 20 12:57:32 GMT 2007 [EMAIL PROTECTED] * FIX Trac #1825: standalone deriving Typeable }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1825#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1847: Oddity with :browse!
#1847: Oddity with :browse! --+- Reporter: simonmar | Owner: igloo Type: merge | Status: new Priority: normal| Milestone: 6.8.2 Component: GHCi |Version: 6.8.1 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Architecture: Unknown Os: Unknown | --+- Changes (by simonmar): * owner: simonmar = igloo * type: bug = merge Comment: Applied. To merge: {{{ Wed Nov 7 17:31:47 PST 2007 [EMAIL PROTECTED] * FIX #1847 (improve :browse! docs, fix unqual) }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1847#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1715: seldom panic
#1715: seldom panic +--- Reporter: [EMAIL PROTECTED] | Owner: igloo Type: merge | Status: new Priority: normal | Milestone: 6.10 branch Component: Compiler|Version: 6.8 Severity: critical| Resolution: Keywords: | Difficulty: Unknown Testcase: | Architecture: x86 Os: Linux | +--- Changes (by simonpj): * owner: chak = igloo * type: bug = merge Comment: Thanks to Roman's easy repo case I found and fixed this. Please merge: {{{ Tue Nov 20 11:17:23 GMT 2007 [EMAIL PROTECTED] * FIX #1715: egregious bug in ifaceDeclSubBndrs ifaceDeclSubBndrs didn't have an IfaceSyn case; but with type families an IfaceSyn can introduce subordinate binders. Result: chaos. }}} I did not add a test case --- too hard! -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1715#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: -O2 bug in GHC 6.8.1?
Christian Maeder wrote: good bug! -O or -O2 is irrelevant but it works if compiled with -fvia-C You (or someone else) should add it to http://hackage.haskell.org/trac/ghc I guess that this is related to http://thread.gmane.org/gmane.comp.lang.haskell.cafe/31675 Regards, apfelmus ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #1909: code snippet in debugger documentation wrong
#1909: code snippet in debugger documentation wrong ---+ Reporter: guest | Owner: Type: bug| Status: new Priority: normal | Milestone: Component: Documentation |Version: 6.8.1 Severity: trivial| Keywords: Testcase: | Architecture: Multiple Os: Multiple | ---+ The code example in the User’s Manual, 3.5.7. has the type of the {{{map}}} function wrong. The list constructor is missing. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1909 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1909: code snippet in debugger documentation wrong
#1909: code snippet in debugger documentation wrong ---+ Reporter: guest | Owner: igloo Type: merge | Status: new Priority: normal | Milestone: Component: Documentation |Version: 6.8.1 Severity: trivial| Resolution: Keywords: | Difficulty: Unknown Testcase: | Architecture: Multiple Os: Multiple | ---+ Changes (by simonpj): * owner: = igloo * difficulty: = Unknown * type: bug = merge Comment: Thanks; I've corrected this. (Ian to merge.) SImon -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1909#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #629: IO library locking doesn't count readers
#629: IO library locking doesn't count readers -+-- Reporter: simonmar | Owner: simonmar Type: bug | Status: closed Priority: lowest | Milestone: 6.8.3 Component: Compiler |Version: 6.4.1 Severity: minor| Resolution: fixed Keywords: | Difficulty: Unknown Testcase: countReaders001 | Architecture: Unknown Os: Unknown | -+-- Changes (by simonmar): * status: new = closed * resolution: = fixed Comment: Fixed, see #1109. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/629#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #1910: Native Code gen miscompiles double2Int# / float2Int# on x86_32
#1910: Native Code gen miscompiles double2Int# / float2Int# on x86_32 +--- Reporter: int-e| Owner: Type: bug | Status: new Priority: normal | Milestone: 6.8.2 Component: Compiler | Version: 6.8.1 Severity: normal |Keywords: Difficulty: Easy (1 hr) |Testcase: Architecture: x86 | Os: Unknown +--- ''Brad Clow'': I upgraded from GHC 6.6.1 to 6.8.1 and around that time I noticed that the output from an app I am working on changed. I have distilled the code down to the following example that produces different output depending on whether it is compiled with -O2 or not: {{{ main = do let (T x) = read T 3 print $ f x print $ g x data T = T Int deriving (Read, Show) f x = truncate $ 2000 / fromIntegral ((x * 25) + 10) g :: Int - Int g x = f x }}} (See http://www.haskell.org/pipermail/haskell- cafe/2007-November/034930.html) The reason is that the code generated for {{{double2Int#}}} by the native code generator does not round correctly. (It's not 100% predictable, I believe, but it'll usually round.) -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1910 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1910: Native Code gen miscompiles double2Int# / float2Int# on x86_32
#1910: Native Code gen miscompiles double2Int# / float2Int# on x86_32 --+- Reporter: int-e | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.8.2 Component: Compiler |Version: 6.8.1 Severity: normal| Resolution: Keywords:| Difficulty: Easy (1 hr) Testcase:| Architecture: x86 Os: Unknown | --+- Comment (by int-e): I tested the patch with Brad's example, and it seems to work. Note however that the code generator now generates quite a mouthful of code for float/double -- int conversions on x86_32. Maybe writing a small library routine and calling it would be better. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1910#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #1911: -w doesn't turn off nullModuleExport
#1911: -w doesn't turn off nullModuleExport ---+ Reporter: AndreaRossato | Owner: Type: bug| Status: new Priority: normal | Milestone: Component: Compiler |Version: 6.8.1 Severity: normal | Keywords: Testcase: | Architecture: x86 Os: Linux | ---+ Hello! Starting from 6.8.1 ghc reports a warning when a module that does not export anything is exported. The warning is generated in compiler/rename/RnName.lhs by exports_from_avail. I'm not familiar enough with ghc to go any further. Thanks. Andrea -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1911 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1910: Native Code gen miscompiles double2Int# / float2Int# on x86_32
#1910: Native Code gen miscompiles double2Int# / float2Int# on x86_32 --+- Reporter: int-e | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.8.2 Component: Compiler |Version: 6.8.1 Severity: normal| Resolution: Keywords:| Difficulty: Easy (1 hr) Testcase:| Architecture: x86 Os: Multiple | --+- Changes (by int-e): * os: MacOS X = Multiple Comment: improved patch note: It is important to load the word stored by fnstcw with a word sized (16 bit) load, otherwise there's a stall and a noticable performance hit. The code is now on par with gcc's in terms of speed and 5 bytes shorter. The speed measurements were done on an Athlon XP processor. Oh the bug applies to Linux too. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1910#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs