Opened 9 years ago

Closed 9 years ago

Last modified 4 years ago

#5080 closed bug (fixed)

Recompilation bug: recomp008 failed

Reported by: daniel.is.fischer Owned by: igloo
Priority: normal Milestone: 7.2.1
Component: Compiler Version: 7.0.3
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Other Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

recomp008 failed with

Actual stdout output differs from expected:
--- ./driver/recomp008/recomp008.stdout.normalised	2011-04-02 19:06:21.000000000 +0200
+++ ./driver/recomp008/recomp008.run.stdout.normalised	2011-04-02 19:06:21.000000000 +0200
@@ -1,2 +1,2 @@
 True
-False
+True
*** unexpected failure for recomp008(normal)

It is sometimes reproducible:

dafis@montel:~/GHC703/ghc-7.0.3/testsuite/tests/ghc-regress/driver/recomp008> make recomp008 
make clean
make[1]: Entering directory `/home/dafis/GHC703/ghc-7.0.3/testsuite/tests/ghc-regress/driver/recomp008'
rm -f *.hi *.o prog
make[1]: Leaving directory `/home/dafis/GHC703/ghc-7.0.3/testsuite/tests/ghc-regress/driver/recomp008'
cp A1.hs A.hs
make prog
make[1]: Entering directory `/home/dafis/GHC703/ghc-7.0.3/testsuite/tests/ghc-regress/driver/recomp008'
/home/dafis/GHC703/ghc-7.0.3/inplace/bin/ghc-stage2 -O -c A.hs -o A.o
/home/dafis/GHC703/ghc-7.0.3/inplace/bin/ghc-stage2 -O -c B.hs -o B.o
/home/dafis/GHC703/ghc-7.0.3/inplace/bin/ghc-stage2 -O -c Main.hs -o Main.o
/home/dafis/GHC703/ghc-7.0.3/inplace/bin/ghc-stage2 -o prog A.o B.o Main.o
make[1]: Leaving directory `/home/dafis/GHC703/ghc-7.0.3/testsuite/tests/ghc-regress/driver/recomp008'
./prog
True
cp A2.hs A.hs
make prog
make[1]: Entering directory `/home/dafis/GHC703/ghc-7.0.3/testsuite/tests/ghc-regress/driver/recomp008'
make[1]: »prog« ist bereits aktualisiert.
make[1]: Leaving directory `/home/dafis/GHC703/ghc-7.0.3/testsuite/tests/ghc-regress/driver/recomp008'
./prog
True

in the third attempt. It is also sometimes reproducible without make,

$ cp A1.hs A.hs && ghc --make Main && ./Main && cp A2.hs A.hs && ghc --make Main && ./Main
[1 of 3] Compiling A                ( A.hs, A.o )
[2 of 3] Compiling B                ( B.hs, B.o )
[3 of 3] Compiling Main             ( Main.hs, Main.o )
Linking Main ...
True
[1 of 3] Compiling A                ( A.hs, A.o )
True

Note that A is recompiled, but Main is not linked again.

Change History (6)

comment:1 Changed 9 years ago by simonmar

Resolution: fixed
Status: newclosed

Fixed: changset:4388d6377e739534be4d0017200c486d3f60df5f

comment:2 Changed 9 years ago by simonmar

Milestone: 7.2.1

comment:3 Changed 9 years ago by daniel.is.fischer

Resolution: fixed
Status: closednew

Failed again (today's HEAD), this time with

gmake[3]: /home/dafis/Haskell/Hacking/Gits/new/ghc/bindisttest/install: Kommando nicht gefunden
gmake[3]: *** [A.o] Fehler 127
gmake[2]: *** [recomp008] Fehler 2

I suspect something didn't escape the space in install dir. Would it be an option to call it install_dir instead?

comment:4 Changed 9 years ago by igloo

Owner: set to igloo

It deliberately has a space in, to find problems with installing to or running the compiler when the path contains a space.

comment:5 Changed 9 years ago by igloo

Resolution: fixed
Status: newclosed

comment:6 Changed 4 years ago by ezyang

Note: the first commit fix was actually 63c13a7bcbf96f43dfd2bbe9f33b0b4705044567 and involved adding a sleep.

Note: See TracTickets for help on using tickets.