Re: What is "ghc" and why was it installed?

2023-01-23 Thread Ryan Schmidt
On Jan 18, 2023, at 17:31, Clemens Lang wrote:
> 
> On Wed, Jan 18, 2023 at 04:08:25AM +, Fielding, Eric J (US 329A) via 
> macports-users wrote:
>> I was running “port selfupdate” and “port upgrade outdated” for the
>> first time in a while, and I noticed that my Intel MacBook Pro was
>> spending almost an hour compiling a port called “ghc” that I don’t
>> remember seeing before and I am sure I did not request. Is this part
>> of something else that was added recently that is now a dependency of
>> some other port?
> 
> The most common ports that depend on GHC are pandoc and shellcheck. My
> guess is that you're on Monterey, where pandoc currently fails to build
> because GHC fails to build.
> 
> See https://ports.macports.org/port/pandoc/details/, which shows the
> failure on the right side. The build of pandoc on our buildbot [1]
> failed, so the buildbot did not produce a pre-compiled binary.
> Previously, you likely downloaded the precompiled binary and avoided the
> GHC dependency.
> 
> The build of GHC that previously failed is [2] (WARNING, that's an 8 MiB
> text file over a slow connection). The first error in that build is
> 
>  x 
> ./opt/local/lib/ghc-9.4.4/lib/x86_64-osx-ghc-9.4.4/libHSCabal-syntax-3.8.1.0-ghc9.4.4.dylib:
>  Cannot restore xattr: com.apple.ResourceFork at 592512 pos 65536 bytes: No 
> space left on device
> 
> i.e. our build machine ran out of disk space. I'm adding Ryan to Cc, who
> maintains our build infrastructure. Maybe there's some regular cleanup
> we can run.
> 
> Meanwhile, I'll see if I can re-trigger the build of GHC and eventually
> pandoc to fix this.
> 
> 
> [1]: 
> https://build.macports.org/builders/ports-12_x86_64-builder/builds/55400/steps/install-dependencies/logs/stdio
> [2]: 
> https://build.macports.org/builders/ports-12_x86_64-builder/builds/54550/steps/install-port/logs/stdio/text

The re-attempt that you triggered completed successfully.

The machine has 15 GB available usually. This is less than I would like but 
there isn't anything taking up unnecessary space. Xcode just continues its 
yearly quest to use up all disk space everywhere. I should probably have 
allocated a bit more disk space to this VM when I set it up but I didn't.



Re: What is "ghc" and why was it installed?

2023-01-18 Thread Clemens Lang
On Wed, Jan 18, 2023 at 04:08:25AM +, Fielding, Eric J (US 329A) via 
macports-users wrote:
> I was running “port selfupdate” and “port upgrade outdated” for the
> first time in a while, and I noticed that my Intel MacBook Pro was
> spending almost an hour compiling a port called “ghc” that I don’t
> remember seeing before and I am sure I did not request. Is this part
> of something else that was added recently that is now a dependency of
> some other port?

The most common ports that depend on GHC are pandoc and shellcheck. My
guess is that you're on Monterey, where pandoc currently fails to build
because GHC fails to build.

See https://ports.macports.org/port/pandoc/details/, which shows the
failure on the right side. The build of pandoc on our buildbot [1]
failed, so the buildbot did not produce a pre-compiled binary.
Previously, you likely downloaded the precompiled binary and avoided the
GHC dependency.

The build of GHC that previously failed is [2] (WARNING, that's an 8 MiB
text file over a slow connection). The first error in that build is

  x 
./opt/local/lib/ghc-9.4.4/lib/x86_64-osx-ghc-9.4.4/libHSCabal-syntax-3.8.1.0-ghc9.4.4.dylib:
 Cannot restore xattr: com.apple.ResourceFork at 592512 pos 65536 bytes: No 
space left on device

i.e. our build machine ran out of disk space. I'm adding Ryan to Cc, who
maintains our build infrastructure. Maybe there's some regular cleanup
we can run.

Meanwhile, I'll see if I can re-trigger the build of GHC and eventually
pandoc to fix this.


[1]: 
https://build.macports.org/builders/ports-12_x86_64-builder/builds/55400/steps/install-dependencies/logs/stdio
[2]: 
https://build.macports.org/builders/ports-12_x86_64-builder/builds/54550/steps/install-port/logs/stdio/text


HTH,
Clemens


Re: What is "ghc" and why was it installed?

2023-01-18 Thread joerg van den hoff
ghc is the Haskell compiler. so probably you need it to compile some haskell code source package  I 
guess? (IIRC, `pandoc' would be one example of a widely used tool written in Haskell).


br/j

On 18.01.23 05:08, Fielding, Eric J (US 329A) via macports-users wrote:

I was running “port selfupdate” and “port upgrade outdated” for the first time 
in a while, and I noticed that my Intel MacBook Pro was spending almost an hour 
compiling a port called “ghc” that I don’t remember seeing before and I am sure 
I did not request. Is this part of something else that was added recently that 
is now a dependency of some other port?

Thanks,
++Eric



Re: What is "ghc" and why was it installed?

2023-01-17 Thread Richard L. Hamilton


> On Jan 17, 2023, at 11:08 PM, Fielding, Eric J (US 329A) via macports-users 
>  wrote:
> 
> I was running “port selfupdate” and “port upgrade outdated” for the first 
> time in a while, and I noticed that my Intel MacBook Pro was spending almost 
> an hour compiling a port called “ghc” that I don’t remember seeing before and 
> I am sure I did not request. Is this part of something else that was added 
> recently that is now a dependency of some other port?
>  
> Thanks,
> ++Eric

I don’t know whether some recent updated to another port that previously didn’t 
depend on it now does, but here’s what it is, and below, what depends on it.


sh-3.2$ port info ghc
ghc @9.4.4_1 (lang, haskell)
Sub-ports:ghc-prebuilt, hadrian
Variants: prebuilt, universal

Description:  The Glasgow Haskell Compiler is a robust, fully-featured,
  optimising compiler and interactive environment for
  Haskell 98, GHC compiles Haskell to either native code or
  C. It implements numerous experimental language extensions
  to Haskell 98, for example: concurrency, a foreign
  language interface, multi-parameter type classes, scoped
  type variables, existential and universal quantification,
  unboxed types, exceptions, weak pointers, and so on. GHC
  comes with a generational garbage collector, and a space
  and time profiler.
Homepage: https://haskell.org/ghc

Fetch Dependencies:   gnupg2
Extract Dependencies: xz
Patch Dependencies:   cabal-prebuilt, ghc-prebuilt
Build Dependencies:   alex, bash, bzip2, cctools, gzip, hadrian, happy,
  HsColour, python310, py310-sphinx, texlive,
  texlive-fonts-extra, texlive-fonts-recommended,
  texlive-latex-extra, xz, autoconf, automake, libtool,
  cabal-prebuilt, ghc-prebuilt, gsed
Library Dependencies: gmp, libiconv, ncurses
Platforms:darwin
License:  BSD
Maintainers:  Email: s.t.sm...@ieee.org, GitHub: essandess
  Policy: openmaintainer

sh-3.2$ port echo rdepends:ghc
adblock2privoxy 
aeson-pretty
bali-phy
bladeRF 
cabal   
cpphs   
Djinn   
DoCon   
exa 
git-annex   
git-fuzzy   
gocryptfs   
gqrx
gr-osmosdr  
gr-rds  
gr-specest  
gr37-osmosdr
gr37-rds
gr37-specest
gtk2hs  
haskell-mode.el 
HaXml   
hlint   
ihaskell
jo  
lhs2tex 
macos-fortress  
macos-fortress-easylistpac  
macos-fortress-proxy
macos-fortress-proxy-squid  
matterhorn  
mod_tile
ngs 
Omega   
osmium-tool 
pandoc  
pure-gen
shellcheck  
SoapyBladeRF

What is "ghc" and why was it installed?

2023-01-17 Thread Fielding, Eric J (US 329A) via macports-users
I was running “port selfupdate” and “port upgrade outdated” for the first time 
in a while, and I noticed that my Intel MacBook Pro was spending almost an hour 
compiling a port called “ghc” that I don’t remember seeing before and I am sure 
I did not request. Is this part of something else that was added recently that 
is now a dependency of some other port?

Thanks,
++Eric