#3060: impossible internal bug while building darcs
-------------------------+--------------------------------------------------
Reporter: quick | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.1
Severity: major | Resolution: invalid
Keywords: | Difficulty: Unknown
Testcase: | Os: Linux
Architecture: x86 |
-------------------------+--------------------------------------------------
Changes (by quick):
* status: new => closed
* resolution: => invalid
Comment:
I have a tentative solution. Tentative because it did resolve the problem
for me, but I don't know if this would help the similar reported errors.
When I started, I was upgrading from GHC 6.8.3 to GHC 6.10.1, which
created a new ghc-pkg database, so I had then attempted to re-install all
the library packages I had previously installed.
It seems that the problems start occurring when I installed the
unix-2.3.1.0 package. This package is (no longer) necessary for my
environment because the functionality is now builtin to GHC 6.10.1;
actually installing and registring unix-2.3.1.0 introduced the failures
described here.
Another clue was that directory started causing problems:
{{{
[ghc] src/Darcs/Commands/Apply.o
/Programs/GHC/6.10.1/lib/ghc-6.10.1/directory-1.0.0.2/System/Directory.hi
Declaration for removeFile
Unfolding of System.Directory.removeFile:
Can't find interface-file declaration for variable
System.Posix.Files.a52
Probable cause: bug in .hi-boot file, or inconsistent .hi file
Use -ddump-if-trace to get an idea of which file caused the error
}}}
and
{{{
[ghc] darcs
/Programs/GHC/6.10.1/lib/ghc-6.10.1/directory-1.0.0.2/libHSdirectory-1.0.0.2.a(Directory__71.o):(.text+0x29):
undefined reference to
`unixzm2zi3zi1zi0_SystemziPosixziDirectory_a12_info'
/Programs/GHC/6.10.1/lib/ghc-6.10.1/directory-1.0.0.2/libHSdirectory-1.0.0.2.a(Directory__71.o):
In function `directoryzm1zi0zi0zi2_SystemziDirectory_a27_srt':
(.data+0x0): undefined reference to
`unixzm2zi3zi1zi0_SystemziPosixziDirectory_a12_closure'
/Programs/GHC/6.10.1/lib/ghc-6.10.1/directory-1.0.0.2/libHSdirectory-1.0.0.2.a(Directory__73.o):
In function `s6CP_info':
(.text+0x19d): undefined reference to
`unixzm2zi3zi1zi0_SystemziPosixziFiles_a55_info'
/Programs/GHC/6.10.1/lib/ghc-6.10.1/directory-1.0.0.2/libHSdirectory-1.0.0.2.a(Directory__73.o):
In function `directoryzm1zi0zi0zi2_SystemziDirectory_a28_srt':
(.data+0x4): undefined reference to
`unixzm2zi3zi1zi0_SystemziPosixziFiles_a55_closure'
/Programs/GHC/6.10.1/lib/ghc-6.10.1/directory-1.0.0.2/libHSdirectory-1.0.0.2.a(Directory__77.o):
In function `s6PY_info':
(.text+0x40): undefined reference to
`unixzm2zi3zi1zi0_SystemziPosixziFiles_a55_info'
/Programs/GHC/6.10.1/lib/ghc-6.10.1/directory-1.0.0.2/libHSdirectory-1.0.0.2.a(Directory__77.o):
In function `directoryzm1zi0zi0zi2_SystemziDirectory_a32_srt':
(.data+0x4): undefined reference to
`unixzm2zi3zi1zi0_SystemziPosixziFiles_a55_closure'
...
}}}
I rebuilt and re-installed GHC 6.10.1 and did *not* install unix-2.3.1.0.
I am now successfully able to build darcs.
As a side note, I cannot build QuickCheck-2.1.0.1 with GHC 6.10.1; I don't
know if this is a known issue or not:
{{{
Building QuickCheck-2.1.0.1...
[ 1 of 11] Compiling Test.QuickCheck.Exception (
Test/QuickCheck/Exception.hs, dist/build/Test/QuickCheck/Exception.o )
Test/QuickCheck/Exception.hs:12:31:
Class `Exception' used as a type
In the type `Exception'
In the type `Either Exception a'
In the type `IO (Either Exception a)'
Test/QuickCheck/Exception.hs:15:36:
Class `Exception' used as a type
In the type `Exception'
In the type `Either Exception a'
In the type `IO (Either Exception a)'
}}}
Anyhow, root cause was PEBKAC... sorry to have wasted your time.
-Kevin
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3060#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs