Opened 11 years ago

Closed 10 years ago

#43387 closed defect (fixed)

hs-cabal-install: binary linked to gcc47

Reported by: pixilla (Bradley Giesbrecht) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: hs-cabal-install

Description

bin/cabal links to lib/gcc47/libgcc_s.1.dylib without declaring a lib dependency on gcc47. The MacPorts binary package is broken without gcc47 active.

Change History (5)

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:2 Changed 10 years ago by neverpanic (Clemens Lang)

My bin/cabal correctly links against the lib from libgcc:

$ otool -L !$
otool -L /opt/local/bin/cabal
/opt/local/bin/cabal:
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)
	/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
	/opt/local/lib/libcharset.1.dylib (compatibility version 2.0.0, current version 2.0.0)
	/opt/local/lib/libgmp.10.dylib (compatibility version 12.0.0, current version 12.2.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
	/opt/local/lib/libgcc/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
$ port provides /opt/local/lib/libgcc/libgcc_s.1.dylib
/opt/local/lib/libgcc/libgcc_s.1.dylib is provided by: libgcc
$ port -v deps gcc48
Full Name: gcc48 @4.8.2_0
Library Dependencies: port:gmp, port:mpfr, port:libiconv, port:libmpc, path:lib/pkgconfig/cloog-isl.pc:cloog, path:lib/libgcc/libgcc_s.1.dylib:libgcc
Runtime Dependencies: port:gcc_select, port:ld64, port:cctools

The dependency is there via hs-cabal-install -> ghc -> gcc${version} -> libgcc.

comment:3 Changed 10 years ago by pixilla (Bradley Giesbrecht)

I am seeing something different:

$ port -q installed ghc hs-cabal-install
  ghc @7.6.3_4+gcc48 (active)
$ sudo port -b install hs-cabal-install
…
$ otool -L /opt/local/bin/cabal
/opt/local/bin/cabal:
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)
	/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
	/opt/local/lib/libcharset.1.dylib (compatibility version 2.0.0, current version 2.0.0)
	/opt/local/lib/libgmp.10.dylib (compatibility version 11.0.0, current version 11.5.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
	/opt/local/lib/gcc47/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

comment:4 Changed 10 years ago by pixilla (Bradley Giesbrecht)

On the buildbots, only Mavericks bin/cabal is linking with libgcc. These binaries were pulled from packages.macports.org:

$ otool -L */cabal | grep -E "/cabal:|libgcc_s"
hs-cabal-install-1.16.0.2_1.darwin_10.x86_64/cabal:
	/opt/local/lib/gcc47/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
hs-cabal-install-1.16.0.2_1.darwin_11.x86_64/cabal:
	/opt/local/lib/gcc47/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
hs-cabal-install-1.16.0.2_1.darwin_12.x86_64/cabal:
	/opt/local/lib/gcc47/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
hs-cabal-install-1.16.0.2_1.darwin_13.x86_64/cabal:
	/opt/local/lib/libgcc/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
Last edited 10 years ago by pixilla (Bradley Giesbrecht) (previous) (diff)

comment:5 Changed 10 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: newclosed

We no longer build GHC with GCC. This should be fixed now that we use clang.

Note: See TracTickets for help on using tickets.