[GHC] #3020: process 1.0.1.1 compile

GHC trac at galois.com
Wed Feb 11 13:19:48 EST 2009


#3020: process 1.0.1.1 compile
----------------------+-----------------------------------------------------
Reporter:  Philonous  |          Owner:                   
    Type:  bug        |         Status:  new              
Priority:  normal     |      Component:  libraries/process
 Version:  6.8.3      |       Severity:  normal           
Keywords:             |       Testcase:                   
      Os:  FreeBSD    |   Architecture:  x86_64 (amd64)   
----------------------+-----------------------------------------------------
 Compiling haskell source using the process library version 1.0.1.1 via
 cabal-install gives compile errors.

 process.hs :
 {{{
 import System.Process
 main = runCommand "ls"
 }}}

 ghc process.hs :

 {{{
 process.o(.text+0xea): In function `Main_main_info':
 : undefined reference to
 `processzm1zi0zi1zi1_SystemziProcess_runCommand_closure'
 process.o(.text+0x1c3): In function `__stginit_Main_':
 : undefined reference to `__stginit_processzm1zi0zi1zi1_SystemziProcess_'
 process.o(.data+0x28): In function `Main_main_srt':
 : undefined reference to
 `processzm1zi0zi1zi1_SystemziProcess_runCommand_closure'
 }}}

 just importing the library and not using anything it exports still
 yields the first of the three errors.

 ghci crashes upon compilation of process-1.0.1.1:

 {{{
 GHCi, version 6.8.3: http://www.haskell.org/ghc/  :? for help
 Loading package base ... linking ... done.
 Prelude> :module +System.Process
 Prelude System.Process> runCommand "ls"
 Loading package old-locale-1.0.0.0 ... linking ... done.
 Loading package old-time-1.0.0.0 ... linking ... done.
 Loading package filepath-1.1.0.0 ... linking ... done.
 Loading package directory-1.0.0.1 ... linking ... done.
 Loading package unix-2.3.0.1 ... linking ... done.
 Loading package process-1.0.1.1 ... linking ... <interactive>: internal
 error: R_X86_64_PC32 relocation out of range: (noname) = 0x7c18012a8
     (GHC version 6.8.3 for x86_64_unknown_freebsd)
     Please report this as a GHC bug:
 http://www.haskell.org/ghc/reportabug
 Abort (core dumped)
 }}}

 ghc --version :
 {{{
 The Glorious Glasgow Haskell Compilation System, version 6.8.3
 }}}
 uname -v
 {{{
 FreeBSD 7.1-RELEASE-p1 #0: Tue Jan 13 00:58:07 UTC 2009
 root@:/usr/obj/usr/src/sys/GENERIC
 }}}

 ghc-pkg -list
 {{{
 /usr/local/lib/ghc-6.8.3/package.conf:
     Cabal-1.2.4.0, HUnit-1.2.0.0, QuickCheck-1.1.0.0, array-0.1.0.0,
     base-3.0.2.0, bytestring-0.9.0.1.1, cgi-3001.1.6.0,
     containers-0.1.0.2, directory-1.0.0.1, fgl-5.4.2.0,
     filepath-1.1.0.0, (ghc-6.8.3), haskell-src-1.0.1.2,
     haskell98-1.0.1.0, hpc-0.5.0.1, html-1.0.1.1, mtl-1.1.0.1,
     network-2.2.0.0, old-locale-1.0.0.0, old-time-1.0.0.0,
     packedstring-0.1.0.0, parallel-1.0.0.1, parsec-2.1.0.1,
     pretty-1.0.0.0, process-1.0.0.1, random-1.0.0.0, readline-1.0.1.0,
     regex-base-0.72.0.1, regex-compat-0.71.0.1, regex-posix-0.72.0.2,
     rts-1.0, stm-2.1.1.1, template-haskell-2.2.0.0, time-1.1.2.1,
     unix-2.3.0.1, xhtml-3000.2.0.0
 /home/******/.ghc/x86_64-freebsd-6.8.3/package.conf:
     Cabal-1.6.0.1, HTTP-3001.1.3, X11-1.4.5, X11-xft-0.3,
     process-1.0.1.1, utf8-string-0.3.4, xmonad-0.8.1,
     xmonad-contrib-0.8.1, zlib-0.4.0.4
 }}}
 process 1.0.0.0 works just fine.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3020>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list