[GHC] #13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutitl.so.8

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutitl.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: None | Version: 7.10.3 Keywords: | Operating System: FreeBSD Architecture: x86_64 | Type of failure: Installing GHC (amd64) | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The official distribution of GHC for FreeBSD, as retrieved from [0] attempts to link against libutil.so.8 FreeBSD 10.3 is actually built against libutil.so.9, and there is no /lib/libutil.so.8 (and no version 8 of the library available via the package manager/ports). Symlinking /lib/libutil.so.9 to /lib/libutil.so.8 appears to allow GHC to run without issue, but I can't guarantee the results. Since the distributed GHC tarball is specific to FreeBSD 10.3, it should probably link against libutil.so.9 as well. (I am completely new to Haskell/GHC and have no clue what "component" to tag this as. I was looking for a 'distribution' or 'packages' component, but can find none. My apologies in advance for tagging it as 'None') [0]: https://www.haskell.org/ghc/download_ghc_7_10_3.html -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutitl.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: None | Version: 7.10.3 Resolution: | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => infoneeded Comment: Is this fixed with 8.2.1-rc3? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutitl.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: None | Version: 7.10.3 Resolution: | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mqudsi): Either the FreeBSD tarball for 8.2.1-rc3 or FreeBSD's tar is broken because I can't extract the tarball on FreeBSD 10.3 or FreeBSD's 11 on two separate machines on two separate networks. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutitl.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: None | Version: 7.10.3 Resolution: | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Oh dear, this may be due to the fact that we now use `gtar` to produce it. Let will fix this before the final release. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutitl.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: None | Version: 7.10.3 Resolution: | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Tracking in #13979. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutitl.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: None | Version: 7.10.3 Resolution: | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): mqudsi, how are you seeing the extraction fail? When I attempt to extract the tarball I see, {{{ $ tar -xf ghc-8.2.0.20170704-x86_64-portbld-freebsd.tar.xz.1 ghc-8.2.0.20170704/utils/hp2ps/dist/build/tmp/hp2ps: Can't create 'ghc-8.2.0.20170704/utils/hp2ps/dist/build/tmp/hp2ps' ghc-8.2.0.20170704/utils/haddock/dist/build/tmp/haddock: Can't create 'ghc-8.2.0.20170704/utils/haddock/dist/build/tmp/haddock' ghc-8.2.0.20170704/utils/hsc2hs/dist-install/build/tmp/hsc2hs: Can't create 'ghc-8.2.0.20170704/utils/hsc2hs/dist-install/build/tmp/hsc2hs' ghc-8.2.0.20170704/utils/ghc-pkg/dist-install/build/tmp/ghc-pkg: Can't create 'ghc-8.2.0.20170704/utils/ghc-pkg/dist-install/build/tmp/ghc-pkg' ghc-8.2.0.20170704/utils/hpc/dist-install/build/tmp/hpc: Can't create 'ghc-8.2.0.20170704/utils/hpc/dist-install/build/tmp/hpc' ghc-8.2.0.20170704/utils/runghc/dist-install/build/tmp/runghc: Can't create 'ghc-8.2.0.20170704/utils/runghc/dist-install/build/tmp/runghc' ghc-8.2.0.20170704/ghc/stage2/build/tmp/ghc-stage2: Can't create 'ghc-8.2.0.20170704/ghc/stage2/build/tmp/ghc-stage2' tar: Error exit delayed from previous errors. }}} but otherwise the extraction appears to have been successful. Is this what you see as well? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutitl.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: None | Version: 7.10.3 Resolution: | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mqudsi): Yes, I see the same. The build subsequently fails on `hp2ps` as well; so I presume something went wrong. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutitl.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: None | Version: 7.10.3 Resolution: | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Alright, I believe we can just pass the `--posix` flag to `gtar` to ensure that the resulting tarball is compatible with `bsdtar`. See Phab:D3765. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutitl.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: None | Version: 7.10.3 Resolution: | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): It turns out that I was totally wrong. See ticket:13979#comment:4. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutitl.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: None | Version: 7.10.3 Resolution: | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): See Phab:D3767 for a hack hopefully fixing the tar issues. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not
libutitl.so.8
-------------------------------------+-------------------------------------
Reporter: mqudsi | Owner: (none)
Type: bug | Status: infoneeded
Priority: normal | Milestone:
Component: None | Version: 7.10.3
Resolution: | Keywords:
Operating System: FreeBSD | Architecture: x86_64
Type of failure: Installing GHC | (amd64)
failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutil.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: None | Version: 7.10.3 Resolution: fixed | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: infoneeded => closed * milestone: => 8.2.1 * resolution: => fixed Comment: I believe the `tar` issue should now be fixed (see #13979). I think the `libutil` issue should be resolved as well as I'm now doing the builds on FreeBSD 11. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutil.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: None | Version: 7.10.3 Resolution: fixed | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by pgj): I do not think doing the builds on FreeBSD 11 would be the solution to this problem. The issue with {{{libutil.so}}} is due to the updates done in the FreeBSD base system between major versions 8.x and 10.x. The published binary distribution was built on FreeBSD 8.4 because that was the oldest supported version of FreeBSD at that time. That is a general practice to make it possible for FreeBSD users to use exactly the same binaries on multiple major versions, because there is a backward compatibility maintained between them. In order to use this distribution on a 10.3 system, one has to install the {{{misc/compat8x}}} package that contains the missing version of {{{libutil.so}}} (among many other older versions of libraries). Hence I would recommend to build the recent FreeBSD binary distributions on 10.3 instead as that is the [https://www.freebsd.org/security/security.html#sup oldest supported version at the moment] (until about April 30, 2018). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutil.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: None | Version: 7.10.3 Resolution: fixed | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): For the record I did the 8.2.1 builds on both 11 and 10.3. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutil.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: None | Version: 7.10.3 Resolution: fixed | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mqudsi): I just wanted to report back that the 8.2.1 release works swimmingly on my FreeBSD test. I accidentally deployed the 10.3 package on FreeBSD 11 and it worked fine, fwiw. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:14 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutil.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: None | Version: 7.10.3 Resolution: fixed | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mqudsi): @pgj _if_ misc/compat8x is still a requirement (it does not seem to be necessary w/ the latest), then the configure script should error out w/ a useful message so that it is not a `make install` error. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutil.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: None | Version: 7.10.3 Resolution: fixed | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by pgj): Replying to [comment:13 bgamari]:
For the record I did the 8.2.1 builds on both 11 and 10.3.
That problem is for the run time, not for the build time. What I was talking about is to build the package on one version of the system, and use it on multiple other versions of it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:16 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutil.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: None | Version: 7.10.3 Resolution: fixed | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by pgj): Replying to [comment:14 mqudsi]:
I just wanted to report back that the 8.2.1 release works swimmingly on my FreeBSD test.
I accidentally deployed the 10.3 package on FreeBSD 11 and it worked fine, fwiw.
That is probably because the base system did not have version changes in the libraries that are required for running the binaries. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:17 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13974: Official FreeBSD 10.3 distribution should link against libutil.so.9, not libutil.so.8 -------------------------------------+------------------------------------- Reporter: mqudsi | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: None | Version: 7.10.3 Resolution: fixed | Keywords: Operating System: FreeBSD | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by pgj): Replying to [comment:15 mqudsi]:
@pgj _if_ misc/compat8x is still a requirement (it does not seem to be necessary w/ the latest), then the configure script should error out w/ a useful message so that it is not a `make install` error.
It is not a requirement any more as the oldest supported version of FreeBSD has become 10.3-RELEASE in the meantime. I am not sure that your idea would be feasible as this "hack" is just for the vanilla binary distribution in order spare a couple of versions of build. (For example, The FreeBSD Project supports FreeBSD 11.0 and FreeBSD 10.3 at the moment, and tangentially FreeBSD-CURRENT aka. 12, so I do not think there should be separate bindists for each major version, especially if there is a backward compatibility.) In result, the regular {{{configure}}} script should not check for the presence of {{{misc/compat8x}}} as that is just a very specific case and it really depends on circumstances like if there were version changes in libraries such as {{{libutil.so}}}. That is why a FreeBSD-specific README file was provided that named {{{misc/compat8x}}} as a prerequisite for the installation. On the other hand, users are always directed towards using FreeBSD packages as that is officially supported version of software there from the side of the Project. When using packages, no things like {{{compat8x}}} are needed at all. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13974#comment:18 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC