#4852: cabal doesn't tell ./configure which gcc to use
----------------------------------+-----------------------------------------
    Reporter:  kazu-yamamoto      |        Owner:  igloo
        Type:  bug                |       Status:  new  
    Priority:  highest            |    Milestone:  7.0.2
   Component:  libraries (other)  |      Version:  7.1  
    Keywords:                     |     Testcase:       
   Blockedby:                     |   Difficulty:       
          Os:  Unknown/Multiple   |     Blocking:       
Architecture:  Unknown/Multiple   |      Failure:  Other
----------------------------------+-----------------------------------------

Comment(by kazu-yamamoto):

 When I tried to "cabal install network" (2.3.0.1), I saw:

 {{{
 % cabal build
 Preprocessing library network-2.3.0.2...
 ld: warning: in dist/build/Network/BSD_hsc_make.o, file was built for i386
 which is not the architecture being linked (x86_64)
 Undefined symbols:
   "_main", referenced from:
       start in crt1.10.6.o
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 linking dist/build/Network/BSD_hsc_make.o failed (exit code 1)
 command was: /usr/bin/gcc dist/build/Network/BSD_hsc_make.o -o
 dist/build/Network/BSD_hsc_make
 -L/ghc7.0.2/lib/ghc-7.0.1.20110201/unix-2.4.1.0 -ldl
 -L/Users/kazu/.cabal/lib/parsec-2.1.0.1/ghc-7.0.1.20110201
 -L/ghc7.0.2/lib/ghc-7.0.1.20110201/bytestring-0.9.1.10
 -L/ghc7.0.2/lib/ghc-7.0.1.20110201/base-4.3.1.0 -liconv
 -L/ghc7.0.2/lib/ghc-7.0.1.20110201/integer-gmp-0.2.0.3
 -L/ghc7.0.2/lib/ghc-7.0.1.20110201/ghc-prim-0.2.0.0
 -L/ghc7.0.2/lib/ghc-7.0.1.20110201 -lm -ldl
 -L/ghc7.0.2/lib/ghc-7.0.1.20110201
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4852#comment:18>
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

Reply via email to