Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  Error when running `cabal install cabal-install` (Peng Yu)
   2. Re:  Error when running `cabal install    cabal-install`
      (Brandon Allbery)
   3. Re:  Error when running `cabal install    cabal-install` (Peng Yu)
   4. Re:  Error when running `cabal install    cabal-install`
      (Brandon Allbery)
   5. Re:  Error when running `cabal install    cabal-install` (Peng Yu)
   6. Re:  Error when running `cabal install    cabal-install`
      (Brandon Allbery)
   7. Re:  Error when running `cabal install    cabal-install` (Peng Yu)


----------------------------------------------------------------------

Message: 1
Date: Thu, 23 Apr 2015 14:39:50 -0500
From: Peng Yu <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] Error when running `cabal install
        cabal-install`
Message-ID:
        <CABrM6w=aY-xHX1jC2zJS2NZB==CX9OkPqWWWHvBED=fhdem...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

~$ cabal --version
cabal-install version 1.18.0.5
using version 1.18.1.4 of the Cabal library
~$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.3

I got the following error. Does anybody know how to resolve it? Thanks.

~$ cabal install cabal-install
Resolving dependencies...
Configuring Cabal-1.22.3.0...
Failed to install Cabal-1.22.3.0
Last 10 lines of the build log ( /Users/py/.cabal/logs/Cabal-1.22.3.0.log ):
cabal: Error: some packages failed to install:
Cabal-1.22.3.0 failed during the configure step. The exception was:
user error (Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_hs_iconv in libHSbase-4.7.0.1.a(iconv.o)
(maybe you meant: _hs_iconv,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_info , _hs_iconv_close ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding4_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_info , _hs_iconv_open )
"_iconv_close", referenced from:
_hs_iconv_close in libHSbase-4.7.0.1.a(iconv.o)
(maybe you meant: _hs_iconv_close)
"_iconv_open", referenced from:
_hs_iconv_open in libHSbase-4.7.0.1.a(iconv.o)
(maybe you meant: _hs_iconv_open)
"_locale_charset", referenced from:
_localeEncoding in libHSbase-4.7.0.1.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
)
cabal-install-1.22.3.0 depends on Cabal-1.22.3.0 which failed to install.
~/ports$ gvim ~/.cabal/logs/


-- 
Regards,
Peng


------------------------------

Message: 2
Date: Thu, 23 Apr 2015 15:57:18 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Error when running `cabal install
        cabal-install`
Message-ID:
        <cakfcl4ugkz6aabr5z8pfspbmxqbbaqxpcbpgwxpqma1ebza...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Thu, Apr 23, 2015 at 3:39 PM, Peng Yu <[email protected]> wrote:

> user error (Undefined symbols for architecture x86_64:
> "_iconv", referenced from:
>

OS X? Do you have MacPorts or Homebrew installed? Where did you get your
ghc from?

(I've also seen this on FreeBSD due to a conflict between ports iconv and
the base system, but its ld produces a slightly different error message.)

-- 
brandon s allbery kf8nh                               sine nomine associates
[email protected]                                  [email protected]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150423/2431222e/attachment-0001.html>

------------------------------

Message: 3
Date: Thu, 23 Apr 2015 15:19:11 -0500
From: Peng Yu <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Error when running `cabal install
        cabal-install`
Message-ID:
        <CABrM6w=euBo1jvkZSrLCA=9k2efutxn5enk5n0qgfll2xbt...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

It is installed from <https://www.haskell.org/platform/>. The OS is Mac OS X.

~$ type -P ghc
/usr/bin/ghc
~$ type -P cabal
/usr/bin/cabal


On Thu, Apr 23, 2015 at 2:57 PM, Brandon Allbery <[email protected]> wrote:
> On Thu, Apr 23, 2015 at 3:39 PM, Peng Yu <[email protected]> wrote:
>>
>> user error (Undefined symbols for architecture x86_64:
>> "_iconv", referenced from:
>
>
> OS X? Do you have MacPorts or Homebrew installed? Where did you get your ghc
> from?
>
> (I've also seen this on FreeBSD due to a conflict between ports iconv and
> the base system, but its ld produces a slightly different error message.)
>
> --
> brandon s allbery kf8nh                               sine nomine associates
> [email protected]                                  [email protected]
> unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>



-- 
Regards,
Peng


------------------------------

Message: 4
Date: Thu, 23 Apr 2015 16:34:37 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Error when running `cabal install
        cabal-install`
Message-ID:
        <cakfcl4xez8vvs1iuvumdbngwa2vzhz9lugti7kpxmnvkmso...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Thu, Apr 23, 2015 at 4:19 PM, Peng Yu <[email protected]> wrote:

> It is installed from <https://www.haskell.org/platform/
>
> >. The OS is Mac OS X.
>

Yes, as I suspected. The problem is that Apple ships an old version of the
iconv library; MacPorts and Homebrew generally install a newer,
incompatible one with symbols renamed to trigger that link error (because
otherwise you find out about the mismatch when the first iconv call dumps
core at runtime). You will need to arrange for ghc not to see that other
iconv, only Apple's, since it won't work with any but Apple's. Or use a ghc
from whichever package manager you have installed, so that it works with
that package manager's iconv library.

(This is more likely to happen with Homebrew, since most things don't look
/opt/local but just about everything looks under /usr/local.)

-- 
brandon s allbery kf8nh                               sine nomine associates
[email protected]                                  [email protected]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150423/ccd46cd0/attachment-0001.html>

------------------------------

Message: 5
Date: Thu, 23 Apr 2015 15:46:48 -0500
From: Peng Yu <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>,
        macports-users <[email protected]>
Subject: Re: [Haskell-beginners] Error when running `cabal install
        cabal-install`
Message-ID:
        <cabrm6wkxwvd+nguuy5nbyo0xrrevazpbazw6d0v95xmtojq...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Indeed, I uninstalled libiconv by running the following command.

sudo port uninstall --follow-dependents libiconv

Then, `cabal install cabal-install` runs without a problem.

Hi MacPorts Users, Is there better solution to this problem? Please
see the original question regarding the conflict of MacPorts and
Haskell. (I don't what to use haskell from MacPorts as I want to keep
updated with the latest version of Haskell.)

https://mail.haskell.org/pipermail/beginners/2015-April/015214.html

On Thu, Apr 23, 2015 at 3:34 PM, Brandon Allbery <[email protected]> wrote:
> On Thu, Apr 23, 2015 at 4:19 PM, Peng Yu <[email protected]> wrote:
>>
>> It is installed from <https://www.haskell.org/platform/
>>
>> >. The OS is Mac OS X.
>
>
> Yes, as I suspected. The problem is that Apple ships an old version of the
> iconv library; MacPorts and Homebrew generally install a newer, incompatible
> one with symbols renamed to trigger that link error (because otherwise you
> find out about the mismatch when the first iconv call dumps core at
> runtime). You will need to arrange for ghc not to see that other iconv, only
> Apple's, since it won't work with any but Apple's. Or use a ghc from
> whichever package manager you have installed, so that it works with that
> package manager's iconv library.
>
> (This is more likely to happen with Homebrew, since most things don't look
> /opt/local but just about everything looks under /usr/local.)
>
> --
> brandon s allbery kf8nh                               sine nomine associates
> [email protected]                                  [email protected]
> unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>

-- 
Regards,
Peng


------------------------------

Message: 6
Date: Thu, 23 Apr 2015 17:08:20 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Cc: macports-users <[email protected]>
Subject: Re: [Haskell-beginners] Error when running `cabal install
        cabal-install`
Message-ID:
        <cakfcl4uz_oa2adq+orc_ly2iduixopogmac_i9x+qfpr1zo...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Thu, Apr 23, 2015 at 4:46 PM, Peng Yu <[email protected]> wrote:

> Hi MacPorts Users, Is there better solution to this problem? Please
> see the original question regarding the conflict of MacPorts and
> Haskell. (I don't what to use haskell from MacPorts as I want to keep
> updated with the latest version of Haskell.)
>

I personally would not --- and do not --- chase the latest ghc, because a
fair amount of stuff still doesn't build with ghc 7.10.1 and we in #haskell
on Freenode keep having to advise people to switch back to 7.8 until the
library situation settles down. Wait for the first Platform release with
7.10 (hopefully within a month), after which MacPorts will be updated to it
(developer time permitting).

-- 
brandon s allbery kf8nh                               sine nomine associates
[email protected]                                  [email protected]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150423/bccef162/attachment-0001.html>

------------------------------

Message: 7
Date: Thu, 23 Apr 2015 16:12:59 -0500
From: Peng Yu <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Cc: macports-users <[email protected]>
Subject: Re: [Haskell-beginners] Error when running `cabal install
        cabal-install`
Message-ID:
        <cabrm6wmtoddm8qjxyztxj4nkvvchm3hrcsqkcp7xarmhye8...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Thu, Apr 23, 2015 at 4:08 PM, Brandon Allbery <[email protected]> wrote:
> On Thu, Apr 23, 2015 at 4:46 PM, Peng Yu <[email protected]> wrote:
>>
>> Hi MacPorts Users, Is there better solution to this problem? Please
>> see the original question regarding the conflict of MacPorts and
>> Haskell. (I don't what to use haskell from MacPorts as I want to keep
>> updated with the latest version of Haskell.)
>
>
> I personally would not --- and do not --- chase the latest ghc, because a
> fair amount of stuff still doesn't build with ghc 7.10.1 and we in #haskell
> on Freenode keep having to advise people to switch back to 7.8 until the

I mean not "so old" instead of "latest". I am currently using this.

~$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.3

I had problems with MacPorts for Python and Perl. The general
suggestion is to stay way from MacPorts for managing packages offered
by other language platforms. As if I use MacPorts for managing
packages from these languages, I am limited by what are available from
MacPorts.

> library situation settles down. Wait for the first Platform release with
> 7.10 (hopefully within a month), after which MacPorts will be updated to it
> (developer time permitting).



-- 
Regards,
Peng


------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 82, Issue 32
*****************************************

Reply via email to