unix-compat _impure_ptr link error on windows

Simon Michael simon at joyful.com
Sun Sep 5 17:30:46 EDT 2010


unix-compat (all versions) is failing to install for me on windows XP  
with current haskell platform. It succeeds in a wine shell with  
current HP. I've attached the log of "cabal install -v3 unix-compat".

Best regards,
-Simon

-------------- next part --------------
searching for ghc in path.
found ghc at C:\HP\bin\ghc.exe
("C:\\HP\\bin\\ghc.exe",["--numeric-version"])
C:\HP\bin\ghc.exe is version 6.12.3
looking for package tool: ghc-pkg near compiler in C:\HP\bin
found package tool in C:\HP\bin\ghc-pkg.exe
("C:\\HP\\bin\\ghc-pkg.exe",["--version"])
C:\HP\bin\ghc-pkg.exe is version 6.12.3
("C:\\HP\\bin\\ghc.exe",["--supported-languages"])
Reading installed packages...
("C:\\HP\\bin\\ghc-pkg.exe",["dump","--global","-v2"])
("C:\\HP\\bin\\ghc-pkg.exe",["dump","--user","-v2"])
("C:\\HP\\bin\\ghc.exe",["--print-libdir"])
Reading available packages...
Resolving dependencies...
selecting unix-compat-0.1.2.1 (hackage)
selecting directory-1.0.1.1 (installed or hackage) and discarding
directory-1.0.0.0, 1.0.0.3, 1.0.1.0, 1.0.1.2 and filepath-1.0
selecting old-time-1.0.0.5 (installed or hackage) and discarding
old-time-1.0.0.0, 1.0.0.2, 1.0.0.3 and 1.0.0.4
selecting old-locale-1.0.0.2 (installed or hackage) and discarding
old-locale-1.0.0.0 and 1.0.0.1
selecting filepath-1.1.0.4 (installed or hackage) and discarding
filepath-1.1.0.0, 1.1.0.1, 1.1.0.2 and 1.1.0.3
selecting Win32-2.2.0.2 (installed or hackage) and discarding Win32-2.1,
2.1.0.0, 2.2.0.0 and 2.2.0.1
selecting bytestring-0.9.1.7 (installed or hackage) and discarding
bytestring-0.9, 0.9.0.1, 0.9.0.2, 0.9.0.3, 0.9.0.4, 0.9.1.0, 0.9.1.1, 0.9.1.2,
0.9.1.3, 0.9.1.4, 0.9.1.5 and 0.9.1.6
selecting ghc-prim-0.2.0.0 (installed)
selecting ffi-1.0 (installed)
selecting rts-1.0 (installed)
selecting base-3.0.3.2 (installed) and 4.2.0.2 (installed) and discarding
syb-0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.2 and 0.2.1
selecting integer-gmp-0.2.0.1 (installed)
selecting syb-0.1.0.2 (installed)
In order, the following would be installed:
unix-compat-0.1.2.1 (new package)
unix-compat-0.1.2.1 has already been downloaded.
Extracting C:\Documents and Settings\Simon Michael\Application
Data\cabal\packages\hackage.haskell.org\unix-compat\0.1.2.1\unix-compat-0.1.2.1.tar.gz
to C:\DOCUME~1\SIMON~1\LOCALS~1\Temp\unix-compat-0.1.2.15936...
Using internal setup method with build-type Simple and args:
["configure","--verbose=3","--ghc","--prefix=C:\\Documents and
Settings\\Simon Michael\\Application
Data\\cabal","--user","--flags=split-base","--extra-include-dirs=C:\\cygwin\\usr\\include","--extra-lib-dirs=C:\\cygwin\\lib","--constraint=base
==3.0.3.2","--constraint=directory ==1.0.1.1","--constraint=old-time
==1.0.0.5"]
Configuring unix-compat-0.1.2.1...
Creating dist (and its parents)
searching for ghc in path.
found ghc at C:\HP\bin\ghc.exe
("C:\\HP\\bin\\ghc.exe",["--numeric-version"])
C:\HP\bin\ghc.exe is version 6.12.3
looking for package tool: ghc-pkg near compiler in C:\HP\bin
found package tool in C:\HP\bin\ghc-pkg.exe
("C:\\HP\\bin\\ghc-pkg.exe",["--version"])
C:\HP\bin\ghc-pkg.exe is version 6.12.3
("C:\\HP\\bin\\ghc.exe",["--supported-languages"])
Reading installed packages...
("C:\\HP\\bin\\ghc-pkg.exe",["dump","--global","-v2"])
("C:\\HP\\bin\\ghc-pkg.exe",["dump","--user","-v2"])
("C:\\HP\\bin\\ghc.exe",["--print-libdir"])
Flags chosen: split-base=True
Dependency base ==3.0.3.2: using base-3.0.3.2
Dependency directory ==1.0.1.1: using directory-1.0.1.1
Dependency old-time ==1.0.0.5: using old-time-1.0.0.5
searching for alex in path.
found alex at C:\HP\lib\extralibs\bin\alex.exe
("C:\\HP\\lib\\extralibs\\bin\\alex.exe",["--version"])
C:\HP\lib\extralibs\bin\alex.exe is version 2.3.3
searching for c2hs in path.
Cannot find c2hs on the path
searching for cpphs in path.
Cannot find cpphs on the path
searching for ffihugs in path.
Cannot find ffihugs on the path
("C:\\HP\\mingw\\bin\\gcc.exe",["-dumpversion"])
C:\HP\mingw\bin\gcc.exe is version 3.4.5
searching for greencard in path.
Cannot find greencard on the path
searching for haddock in path.
found haddock at C:\HP\bin\haddock.exe
("C:\\HP\\bin\\haddock.exe",["--version"])
C:\HP\bin\haddock.exe is version 2.6.1
searching for happy in path.
found happy at C:\HP\lib\extralibs\bin\happy.exe
("C:\\HP\\lib\\extralibs\\bin\\happy.exe",["--version"])
C:\HP\lib\extralibs\bin\happy.exe is version 1.18.5
searching for hmake in path.
Cannot find hmake on the path
searching for hsc2hs in path.
found hsc2hs at C:\HP\bin\hsc2hs.exe
("C:\\HP\\bin\\hsc2hs.exe",["--version"])
C:\HP\bin\hsc2hs.exe is version 0.67
searching for HsColour in path.
Cannot find HsColour on the path
searching for hugs in path.
Cannot find hugs on the path
searching for jhc in path.
Cannot find jhc on the path
("C:\\HP\\bin\\ghc.exe",["-c","C:\\DOCUME~1\\SIMON~1\\LOCALS~1\\Temp\\5936.c","-o","C:\\DOCUME~1\\SIMON~1\\LOCALS~1\\Temp\\5936.o"])
("C:\\HP\\mingw\\bin\\ld.exe",["-x","-r","C:\\DOCUME~1\\SIMON~1\\LOCALS~1\\Temp\\5936.o","-o","C:\\DOCUME~1\\SIMON~1\\LOCALS~1\\Temp\\5937.o"])
searching for lhc in path.
Cannot find lhc on the path
searching for lhc-pkg in path.
Cannot find lhc-pkg on the path
searching for nhc98 in path.
Cannot find nhc98 on the path
searching for pkg-config in path.
Cannot find pkg-config on the path
searching for ranlib in path.
Cannot find ranlib on the path
searching for strip in path.
Cannot find strip on the path
searching for tar in path.
Cannot find tar on the path
Using Cabal-1.8.0.6 compiled by ghc-6.12
Using compiler: ghc-6.12.3
Using install prefix: C:\Documents and Settings\Simon Michael\Application
Data\cabal
Binaries installed in: C:\Documents and Settings\Simon Michael\Application
Data\cabal\bin
Libraries installed in: C:\Documents and Settings\Simon Michael\Application
Data\cabal\unix-compat-0.1.2.1\ghc-6.12.3
Private binaries installed in: C:\Documents and Settings\Simon
Michael\Application Data\cabal\unix-compat-0.1.2.1
Data files installed in: C:\Documents and Settings\Simon Michael\Application
Data\cabal\unix-compat-0.1.2.1
Documentation installed in: C:\Documents and Settings\Simon
Michael\Application Data\cabal\doc\unix-compat-0.1.2.1
Using alex version 2.3.3 found on system at: C:\HP\lib\extralibs\bin\alex.exe
Using ar found on system at: C:\HP\mingw\bin\ar.exe
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 3.4.5 found on system at: C:\HP\mingw\bin\gcc.exe
Using ghc version 6.12.3 found on system at: C:\HP\bin\ghc.exe
Using ghc-pkg version 6.12.3 found on system at: C:\HP\bin\ghc-pkg.exe
No greencard found
Using haddock version 2.6.1 found on system at: C:\HP\bin\haddock.exe
Using happy version 1.18.5 found on system at:
C:\HP\lib\extralibs\bin\happy.exe
No hmake found
Using hsc2hs version 0.67 found on system at: C:\HP\bin\hsc2hs.exe
No hscolour found
No hugs found
No jhc found
Using ld found on system at: C:\HP\mingw\bin\ld.exe
No lhc found
No lhc-pkg found
No nhc98 found
No pkg-config found
No ranlib found
No strip found
No tar found
("C:\\HP\\mingw\\bin\\gcc.exe",["C:\\DOCUME~1\\SIMON~1\\LOCALS~1\\Temp\\5936.c","-o","C:\\DOCUME~1\\SIMON~1\\LOCALS~1\\Temp\\5936","-D__GLASGOW_HASKELL__=612","-IC:\\cygwin\\usr\\include","-I.","-IC:\\HP\\lib\\directory-1.0.1.1\\include","-IC:\\HP\\lib\\old-time-1.0.0.5\\include","-IC:\\HP\\lib\\Win32-2.2.0.2\\include","-IC:\\HP\\lib\\bytestring-0.9.1.7\\include","-IC:\\HP\\lib\\base-4.2.0.2\\include","-IC:\\HP\\lib/include","-IC:\\HP\\lib/include","-LC:\\cygwin\\lib","-LC:\\HP\\lib\\directory-1.0.1.1","-LC:\\HP\\lib\\old-time-1.0.0.5","-LC:\\HP\\lib\\old-locale-1.0.0.2","-LC:\\HP\\lib\\filepath-1.1.0.4","-LC:\\HP\\lib\\base-3.0.3.2","-LC:\\HP\\lib\\syb-0.1.0.2","-LC:\\HP\\lib\\Win32-2.2.0.2","-LC:\\HP\\lib\\bytestring-0.9.1.7","-LC:\\HP\\lib\\base-4.2.0.2","-LC:\\HP\\lib\\integer-gmp-0.2.0.1","-LC:\\HP\\lib\\ghc-prim-0.2.0.0","-LC:\\HP\\lib","-LC:\\HP\\lib/gcc-lib","-LC:\\HP\\lib"])
Using internal setup method with build-type Simple and args:
["build","--verbose=3"]
Creating dist\build (and its parents)
Creating dist\build\autogen (and its parents)
Preprocessing library unix-compat-0.1.2.1...
Creating dist\build\System\PosixCompat (and its parents)
("C:\\HP\\bin\\hsc2hs.exe",["--cc=C:\\HP\\mingw\\bin\\gcc.exe","--ld=C:\\HP\\mingw\\bin\\gcc.exe","--cflag=-D__GLASGOW_HASKELL__=612","--cflag=-IC:\\cygwin\\usr\\include","--lflag=-LC:\\cygwin\\lib","--cflag=-IC:\\HP\\lib\\directory-1.0.1.1\\include","--cflag=-IC:\\HP\\lib\\old-time-1.0.0.5\\include","--cflag=-IC:\\HP\\lib\\Win32-2.2.0.2\\include","--cflag=-IC:\\HP\\lib\\bytestring-0.9.1.7\\include","--cflag=-IC:\\HP\\lib\\base-4.2.0.2\\include","--cflag=-IC:\\HP\\lib/include","--cflag=-IC:\\HP\\lib/include","--lflag=-LC:\\HP\\lib\\directory-1.0.1.1","--lflag=-LC:\\HP\\lib\\old-time-1.0.0.5","--lflag=-LC:\\HP\\lib\\old-locale-1.0.0.2","--lflag=-LC:\\HP\\lib\\filepath-1.1.0.4","--lflag=-LC:\\HP\\lib\\base-3.0.3.2","--lflag=-LC:\\HP\\lib\\syb-0.1.0.2","--lflag=-LC:\\HP\\lib\\Win32-2.2.0.2","--lflag=-luser32","--lflag=-lgdi32","--lflag=-lwinmm","--lflag=-ladvapi32","--lflag=-lshell32","--lflag=-lshfolder","--lflag=-LC:\\HP\\lib\\bytestring-0.9.1.7","--lflag=-LC:\\HP\\lib\\base-4.2.0.2","--lflag=-lwsock32","--lflag=-luser32","--lflag=-lshell32","--lflag=-LC:\\HP\\lib\\integer-gmp-0.2.0.1","--lflag=-LC:\\HP\\lib\\ghc-prim-0.2.0.0","--lflag=-LC:\\HP\\lib","--lflag=-LC:\\HP\\lib/gcc-lib","--lflag=-lm","--lflag=-lwsock32","--lflag=-LC:\\HP\\lib","-o","dist\\build\\System\\PosixCompat\\Extensions.hs","System\\PosixCompat\\Extensions.hsc"])
dist\build\System\PosixCompat\Extensions_hsc_make.o:Extensions_hsc_make.c:(.text+0x47): undefined reference to `_impure_ptr'
dist\build\System\PosixCompat\Extensions_hsc_make.o:Extensions_hsc_make.c:(.text+0x7b): undefined reference to `_impure_ptr'
dist\build\System\PosixCompat\Extensions_hsc_make.o:Extensions_hsc_make.c:(.text+0x93): undefined reference to `_impure_ptr'
dist\build\System\PosixCompat\Extensions_hsc_make.o:Extensions_hsc_make.c:(.text+0xc7): undefined reference to `_impure_ptr'
dist\build\System\PosixCompat\Extensions_hsc_make.o:Extensions_hsc_make.c:(.text+0xdf): undefined reference to `_impure_ptr'
dist\build\System\PosixCompat\Extensions_hsc_make.o:Extensions_hsc_make.c:(.text+0x113): more undefined references to `_impure_ptr' follow
collect2: ld returned 1 exit status
linking dist\build\System\PosixCompat\Extensions_hsc_make.o failed
command was: C:\HP\mingw\bin\gcc.exe -LC:\cygwin\lib -LC:\HP\lib\directory-1.0.1.1 -LC:\HP\lib\old-time-1.0.0.5 -LC:\HP\lib\old-locale-1.0.0.2 -LC:\HP\lib\filepath-1.1.0.4 -LC:\HP\lib\base-3.0.3.2 -LC:\HP\lib\syb-0.1.0.2 -LC:\HP\lib\Win32-2.2.0.2 -luser32 -lgdi32 -lwinmm -ladvapi32 -lshell32 -lshfolder -LC:\HP\lib\bytestring-0.9.1.7 -LC:\HP\lib\base-4.2.0.2 -lwsock32 -luser32 -lshell32 -LC:\HP\lib\integer-gmp-0.2.0.1 -LC:\HP\lib\ghc-prim-0.2.0.0 -LC:\HP\lib -LC:\HP\lib/gcc-lib -lm -lwsock32 -LC:\HP\lib dist\build\System\PosixCompat\Extensions_hsc_make.o -o dist\build\System\PosixCompat\Extensions_hsc_make.exe
C:\HP\bin\hsc2hs.exe returned ExitFailure 1
cabal: Error: some packages failed to install:
unix-compat-0.1.2.1 failed during the building phase. The exception was:
ExitFailure 1
-------------- next part --------------





More information about the Libraries mailing list