Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,262
    • Issues 4,262
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 419
    • Merge Requests 419
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #5856

Closed
Open
Opened Feb 08, 2012 by td123@trac-td123

numrun012 test fails on i686 works on x86_64

I have built ghc on both x86_64 and i686 for archlinux. make test has no unexpected results on x86_64. On i686, make test has only the following unexpected failure:

=====> numrun012(normal) 831 of 3160 [0, 0, 0]
cd ./numeric/should_run && '/build/src/ghc-7.4.1/inplace/bin/ghc-stage2' -fforce-recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-conf -rtsopts  -fno-ghci-history -o numrun012 numrun012.hs    >numrun012.comp.stderr 2>&1
cd ./numeric/should_run && ./numrun012    </dev/null >numrun012.run.stdout 2>numrun012.run.stderr
Actual stdout output differs from expected:
--- ./numeric/should_run/numrun012.stdout	2012-02-01 18:11:16.000000000 +0000
+++ ./numeric/should_run/numrun012.run.stdout	2012-02-07 23:06:57.413192194 +0000
@@ -1,4 +1,4 @@
-[0,1,5,9,10,14,31,31,32,32,32,32,33]
+[0,1,5,9,10,14,31,31,31,32,32,32,33]
 -2.147483648e9
 -2.1474836e9
 -2.147483648e9
*** unexpected failure for numrun012(normal)

I think I got the failure down to one line:

The following returns 31.000000000000004 on x86_64 and 31.0 on i686:

logBase 2 (fromIntegral 2^31) :: Double

Please let me know if you need anything else from me.

Trac metadata
Trac field Value
Version 7.4.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Test Suite
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Assignee
Assign to
7.6.1
Milestone
7.6.1
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#5856