Re: osx conundrum

2021-10-13 Thread Carter Schonwald
The issue would be macports.  It uses its own version of the iconv lib and
that always gets headaches if the ghc touches anything else.

if you’re using macports you have to make sure everything is Mac ports only
for ghc linking.

Else you have to make sure you don’t touch any macports c Libs via ghc.

On Wed, Oct 13, 2021 at 7:57 AM David Duke  wrote:

> Thanks Steven. Looks like it might be something with my system.
> I reinstalled from macports  8.10.7
> @ Carter yes I've been carefully   check the compiler version on each
> trial.
> However trying to compile a Haskell source gives the same libHSbase error
>
>
>
> ndefined symbols for architecture x86_64:
>
>   "_iconv", referenced from:
>
>   _hs_iconv in libHSbase-4.14.3.0.a(iconv.o
>
>
>
>
>
> On Tue, Oct 12, 2021 at 2:54 AM Steven Smith 
> wrote:
>
>> I’m a maintainer of the MacPorts ghc port. The MacPorts installations do
>> not have this issue, whether installed from the buildbot binaries or
>> compiled from source, that all work on multiple macOS versions 10.9–11.
>> Here’s the build recipe:
>> https://github.com/macports/macports-ports/blob/master/lang/ghc/Portfile
>>
>> The iconv symbol issue is known,
>> https://gitlab.haskell.org/ghc/ghc/-/issues/18752, and packages like
>> MacPorts must build around it.
>>
>> This looks like something specific to your configuration.
>>
>> If you believe that there is an issue outside your system, please
>> initiate a trac ticket at https://trac.macports.org.
>>
>>
>> On Oct 11, 2021, at 5:00 AM, David Duke  wrote:
>>
>> I have a conundrum on which advice would be appreciate. Does
>> anyone know how to successfully install ghc on OSX
>> I've tried various binary instalation routes:
>> macports, brew, direct binary downloads from haskel.org
>>
>>
>>
>
> --
> David Duke
> Emeritus Professor of Computer Science
> School of Computing University of Leeds UK
> E:duke.j.da...@gmail.com
> W:https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke
> ___
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users
>
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


Re: osx conundrum

2021-10-13 Thread Steven Smith
FWIW, MacPorts does compile from source. If you want, just do

sudo port -s install ghc

and watch a multistage compiler build.

That’s where the MacPorts binary installs come from, so it’s just easier to use 
those.

> On Oct 13, 2021, at 07:57, David Duke  wrote:
> 
> 
> Thanks Steven. Looks like it might be something with my system.
> I reinstalled from macports  8.10.7
> @ Carter yes I've been carefully   check the compiler version on each trial.
> However trying to compile a Haskell source gives the same libHSbase error
> 
> 
> 
> ndefined symbols for architecture x86_64:
>   "_iconv", referenced from:
>   _hs_iconv in libHSbase-4.14.3.0.a(iconv.o
> 
> 
> 
> 
>> On Tue, Oct 12, 2021 at 2:54 AM Steven Smith  wrote:
>> I’m a maintainer of the MacPorts ghc port. The MacPorts installations do not 
>> have this issue, whether installed from the buildbot binaries or compiled 
>> from source, that all work on multiple macOS versions 10.9–11.  Here’s the 
>> build recipe: 
>> https://github.com/macports/macports-ports/blob/master/lang/ghc/Portfile
>> 
>> The iconv symbol issue is known, 
>> https://gitlab.haskell.org/ghc/ghc/-/issues/18752, and packages like 
>> MacPorts must build around it.
>> 
>> This looks like something specific to your configuration.
>> 
>> If you believe that there is an issue outside your system, please initiate a 
>> trac ticket at https://trac.macports.org.
>> 
>> 
>>> On Oct 11, 2021, at 5:00 AM, David Duke  wrote:
>>> 
>>> I have a conundrum on which advice would be appreciate. Does
>>> anyone know how to successfully install ghc on OSX 
>>> I've tried various binary instalation routes:
>>> macports, brew, direct binary downloads from haskel.org
>> 
> 
> 
> -- 
> David Duke
> Emeritus Professor of Computer Science
> School of Computing University of Leeds UK
> E:duke.j.da...@gmail.com
> W:https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


Re: osx conundrum

2021-10-13 Thread YueCompl via Glasgow-haskell-users
Maybe you'd like to install a virtual instance of OSX and test things from 
clean scratch, I'd expect any routine installation of GHC should work, then add 
macports/homebrew etc. to bisect the culprit.

Free VirtualBox should do, VMWare Fusion or Parallel Desktop can offer even 
smoother experience at some fees/cost.


> On 2021-10-13, at 19:56, David Duke  wrote:
> 
> Thanks Steven. Looks like it might be something with my system.
> I reinstalled from macports  8.10.7
> @ Carter yes I've been carefully   check the compiler version on each trial.
> However trying to compile a Haskell source gives the same libHSbase error
> 
> 
> 
> ndefined symbols for architecture x86_64:
>   "_iconv", referenced from:
>   _hs_iconv in libHSbase-4.14.3.0.a(iconv.o
> 
> 
> 
> 
> On Tue, Oct 12, 2021 at 2:54 AM Steven Smith  > wrote:
> I’m a maintainer of the MacPorts ghc port. The MacPorts installations do not 
> have this issue, whether installed from the buildbot binaries or compiled 
> from source, that all work on multiple macOS versions 10.9–11.  Here’s the 
> build recipe: 
> https://github.com/macports/macports-ports/blob/master/lang/ghc/Portfile 
> 
> 
> The iconv symbol issue is known, 
> https://gitlab.haskell.org/ghc/ghc/-/issues/18752 
> , and packages like 
> MacPorts must build around it.
> 
> This looks like something specific to your configuration.
> 
> If you believe that there is an issue outside your system, please initiate a 
> trac ticket at https://trac.macports.org .
> 
> 
>> On Oct 11, 2021, at 5:00 AM, David Duke > > wrote:
>> 
>> I have a conundrum on which advice would be appreciate. Does
>> anyone know how to successfully install ghc on OSX 
>> I've tried various binary instalation routes:
>> macports, brew, direct binary downloads from haskel.org 
> 
> 
> -- 
> David Duke
> Emeritus Professor of Computer Science
> School of Computing University of Leeds UK
> E:duke.j.da...@gmail.com 
> W:https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke 
> ___
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users@haskell.org 
> http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users 
> 
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


Re: osx conundrum

2021-10-13 Thread David Duke
Thanks Steven. Looks like it might be something with my system.
I reinstalled from macports  8.10.7
@ Carter yes I've been carefully   check the compiler version on each trial.
However trying to compile a Haskell source gives the same libHSbase error



ndefined symbols for architecture x86_64:

  "_iconv", referenced from:

  _hs_iconv in libHSbase-4.14.3.0.a(iconv.o





On Tue, Oct 12, 2021 at 2:54 AM Steven Smith 
wrote:

> I’m a maintainer of the MacPorts ghc port. The MacPorts installations do
> not have this issue, whether installed from the buildbot binaries or
> compiled from source, that all work on multiple macOS versions 10.9–11.
> Here’s the build recipe:
> https://github.com/macports/macports-ports/blob/master/lang/ghc/Portfile
>
> The iconv symbol issue is known,
> https://gitlab.haskell.org/ghc/ghc/-/issues/18752, and packages like
> MacPorts must build around it.
>
> This looks like something specific to your configuration.
>
> If you believe that there is an issue outside your system, please initiate
> a trac ticket at https://trac.macports.org.
>
>
> On Oct 11, 2021, at 5:00 AM, David Duke  wrote:
>
> I have a conundrum on which advice would be appreciate. Does
> anyone know how to successfully install ghc on OSX
> I've tried various binary instalation routes:
> macports, brew, direct binary downloads from haskel.org
>
>
>

-- 
David Duke
Emeritus Professor of Computer Science
School of Computing University of Leeds UK
E:duke.j.da...@gmail.com
W:https://engineering.leeds.ac.uk/staff/334/Professor_David_Duke
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users