unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42934: Ganeti fails to build
@ 2020-08-19 15:23 Marius Bakke
  2020-08-20  4:14 ` Timothy Sample
  0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2020-08-19 15:23 UTC (permalink / raw)
  To: 42934

[-- Attachment #1: Type: text/plain, Size: 6433 bytes --]

Hello,

Since the recent haskell-build-system changes, the 'ganeti' package
fails to build with this error:

--8<---------------cut here---------------start------------->8---
GHC]: src/Ganeti/Utils/Statistics.o <- cabal_macros.h src/Ganeti/Utils/Statistics.hs
<command line>: can't load .so/.DLL for: libpcre.so (libpcre.so: cannot open shared object file: No such file or directory)
make: *** [Makefile:4380: src/Ganeti/BasicTypes.o] Error 1
--8<---------------cut here---------------end--------------->8---

The libpcre.so dependency comes via "ghc-regex-pcre".  I tried adding it
as an input (by propagating from ghc-regex-pcre), and get a different
error:

--8<---------------cut here---------------start------------->8---
Linking src/ganeti-kvmd ...                                                                        
[GHC]: src/Ganeti/Metad/Server.o <- cabal_macros.h src/Ganeti/Metad/Server.hs src/Ganeti/Metad/WebServer.hi src/Ganeti/Metad/WebServer.o src/Ganeti/Metad/ConfigServer.hi src/Ganeti/Metad/ConfigServer
.o src/Ganeti/Metad/ConfigCore.hi src/Ganeti/Metad/ConfigCore.o src/Ganeti/Daemon.hi src/Ganeti/Daemon.o
[GHC]: src/ganeti-metad.o <- cabal_macros.h src/ganeti-metad.hs src/Ganeti/Runtime.hi src/Ganeti/Runtime.o src/Ganeti/Metad/Server.hi src/Ganeti/Metad/Server.o src/Ganeti/Daemon.hi src/Ganeti/Daemon.
o src/Ganeti/Constants.hi src/Ganeti/Constants.o                                                   
ld: cannot find -lHSutf8-string-1.0.1.1-Geq8jdOv4Q3LkcQoEOWDVv
ld: cannot find -lHStest-framework-quickcheck2-0.3.0.5-9CO80jBRBfSI50Qn1AlrnH
ld: cannot find -lHStest-framework-hunit-0.3.0.2-8gSUkaZjhPC5GwMG3FTbXM
ld: cannot find -lHSextensible-exceptions-0.1.1.4-KI0dG6kQM84KnSzvR2Yb0
ld: cannot find -lHStest-framework-0.8.2.0-HxswHFmjozU6QEk6bXzzt9
ld: cannot find -lHSxml-1.3.14-ESp8cJy4XJ8BJKfvGeNymT
ld: cannot find -lHShostname-1.0-96RwzZJKf0mHYnt0kjXkqR
ld: cannot find -lHSansi-wl-pprint-0.6.9-Cz5pneQ8Hse3VAFYZHVfdH
ld: cannot find -lHSansi-terminal-0.9.1-KAtSkkD7GHFKoP9eT8kWXE
ld: cannot find -lHScolour-2.3.5-y0xjV3ONUd40VuBtReEvC
ld: cannot find -lHStemporary-1.3-6ZNx4aehhTA4byfuIkE25V
ld: cannot find -lHSsnap-server-1.1.1.1-IhUBk1dvGEwLHeKz5KF21X
ld: cannot find -lHSio-streams-haproxy-1.0.1.0-gPccU7qFPTBf1zhY26bB2
ld: cannot find -lHSclock-0.8-BIVdKeRNUfmD11RCVfJKrz
ld: cannot find -lHSblaze-builder-0.4.1.0-KrFxFv3kgua3BTNMsMBadC
ld: cannot find -lHSsnap-core-1.0.4.0-DczSASpTts1J4yMBIudB9c
ld: cannot find -lHSunix-compat-0.5.2-GYmNPGqdGR3DF85i5Y9m4X
ld: cannot find -lHSregex-posix-0.95.2-jmiKTXBn5tB7yYph2GqnC
ld: cannot find -lHSreadable-0.3.1-7I5EIROpRuwBi3cHo2WBVY
ld: cannot find -lHSnetwork-uri-2.6.1.0-K75fCYvLQE41EntOQ30cqK
ld: cannot find -lHSio-streams-1.5.1.0-FM1GOBjUfdSJ3bpideK8My
ld: cannot find -lHSzlib-bindings-0.1.1.5-2OcBr3eN9xgDj5U6uANlVV
ld: cannot find -lHSzlib-0.6.2.1-RBosn3LQPs8EtxGNLWmZR
ld: cannot find -lHSregex-pcre-0.94.4-7Ux5hIaDPUiEPcdothI0zK
ld: cannot find -lHSregex-base-0.93.2-8QGsCbNNqfw1S2nCPh78l5
ld: cannot find -lHSold-time-1.1.0.3-2XkcGgLYS3G4Bt8PCBG9iL
ld: cannot find -lHSlifted-base-0.2.3.12-HnP8Cm9llUCLAh7f9YyBcZ
ld: cannot find -lHSmonad-control-1.0.2.3-6xtn9QV87M15L8AnNrTmlz
ld: cannot find -lHSlens-4.17.1-68pxttctHvtCTyByOlgZ2t
ld: cannot find -lHSvector-0.12.0.3-2LEYu9M2i7lERDtz76XG3n
ld: cannot find -lHSreflection-2.1.5-COCfeq4SAqI4e4DelZUSV
ld: cannot find -lHSparallel-3.2.2.0-EGl5SOk48TWHAD161C93aQ
ld: cannot find -lHSkan-extensions-5.2-CzfGQZYK0unE2eaHpSulni
ld: cannot find -lHSinvariant-0.5.3-d7RpW05TIN3TMBDPM322j
ld: cannot find -lHSadjunctions-4.4-D7Oje2j3iy5Vdu5zV0UkP
ld: cannot find -lHSvoid-0.7.3-5xXWQQsTYbKFlr3KfNvyL8
ld: cannot find -lHSfree-5.1.2-3loUBBUyYBX8r609r3raCg
ld: cannot find -lHStransformers-base-0.4.5.2-396mW3nNBbNcNAE3ZplxN
ld: cannot find -lHSsemigroupoids-5.3.3-AcJYbiewxx2FRpslXUFAHQ
ld: cannot find -lHSunordered-containers-0.2.10.0-IxEX4gD8y7xFG1XVoZBXwV
ld: cannot find -lHSprofunctors-5.3-90Zi8IDCOOv1kKuRCOq787
ld: cannot find -lHSsemigroups-0.18.5-6T2lH5F6zyQIdwR3JYKMO3
ld: cannot find -lHSexceptions-0.10.3-BZy4XtH1BuX7zYRttZiTh5
ld: cannot find -lHScontravariant-1.5.2-4tubmgOpLIj5IwIaRQgygE
ld: cannot find -lHSStateVar-1.2-OvQScUJdslB4HgRfOXUfu
ld: cannot find -lHSbifunctors-5.5.5-knZ58itKbm3P5hsyhRW4x
ld: cannot find -lHSth-abstraction-0.3.1.0-KacyXGqFl6k8QB9PBisbIF
ld: cannot find -lHScomonad-5.0.5-1Ix7pspqNO88OqtikSRYZA
ld: cannot find -lHStransformers-compat-0.6.5-6PKzEe5EVLXd5Neg4mr6X
ld: cannot find -lHSdistributive-0.6.2-1vlBMZw7eCJ5vK0EkS9UBp
ld: cannot find -lHStagged-0.8.6-EiJ2F18RuD68LSMkg0Ly4r
ld: cannot find -lHSbase-orphans-0.8.1-B31dDt5Bc6961QNeuKJksE
ld: cannot find -lHSjson-0.9.3-FywqDV7BGEJI1N2HiDUZZ8
ld: cannot find -lHSsyb-0.7.1-8iVgCtiH46pAso6ilV0Je0
ld: cannot find -lHShslogger-1.2.12-AaeMgrm5rNI5Z24IIbtrYk
ld: cannot find -lHSold-locale-1.0.0.7-D4Rn5zPhtMJBwwirPJNu78
ld: cannot find -lHSnetwork-2.8.0.1-Hmt657UE3v349uYmvUXEvW
ld: cannot find -lHShinotify-0.4-64NJM7W0EUxBW8TQuGc3QU
ld: cannot find -lHSasync-2.2.2-7xNwq1PFb1Z80u6TRhO0ep
ld: cannot find -lHScurl-1.3.8-7WFKo4ShNey8jN5AeWZWkN
ld: cannot find -lHScryptonite-0.25-DTpFAtFmPj411oArRQLUSg
ld: cannot find -lHSmemory-0.14.18-EVX1021YbY3KBuSDHgu8AK
ld: cannot find -lHSbasement-0.0.11-C095fEhcIb5E8Z5F95kg3I
ld: cannot find -lHScase-insensitive-1.2.0.11-J2cgk1tTm8L9V2Lhdj6cNJ
ld: cannot find -lHSbase64-bytestring-1.0.0.2-9zRsxWrEm5zGbLjNlDas
ld: cannot find -lHSattoparsec-0.13.2.3-7mIbc0Jmo4I7q4ss1KZWOU
ld: cannot find -lHSscientific-0.3.6.2-AIsr5O39c7VFQK8KUk48PM
ld: cannot find -lHSprimitive-0.6.4.0-ILgywxtLpvnAOlEISPpP5b
ld: cannot find -lHSinteger-logarithms-1.0.3-4W5qGlfuhVgHAjlWk0Od8E
ld: cannot find -lHShashable-1.2.7.0-Hn2R07DgowqB1NMU1vHO6c
ld: cannot find -lHSQuickCheck-2.13.2-ELw76TsVduo6OXHYodvTIH
ld: cannot find -lHSsplitmix-0.0.3-BieKXhsPr5JADQFNGU6dLm
ld: cannot find -lHSrandom-1.1-3ypV4EIycgb35PKjTYYr5q
ld: cannot find -lHSPSQueue-1.1.0.1-4AWdCkukY01Ev5bal8JE5L
ld: cannot find -lHSHUnit-1.6.0.0-7f1hIalUNKKHyS01XXC5R6
ld: cannot find -lHScall-stack-0.1.0-J1eWgTNOnM4IGVyeW0v2YZ
--8<---------------cut here---------------end--------------->8---

A similar error occurs when adding #:extra-directories ("pcre") to the
ghc-regex-pcre arguments.

I don't understand haskell-build-system or the recent changes enough to
guess at what's going on.  Ideas?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#42934: Ganeti fails to build
  2020-08-19 15:23 bug#42934: Ganeti fails to build Marius Bakke
@ 2020-08-20  4:14 ` Timothy Sample
  2020-08-26 21:54   ` Marius Bakke
  0 siblings, 1 reply; 3+ messages in thread
From: Timothy Sample @ 2020-08-20  4:14 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 42934-done

Hi Marius,

Marius Bakke <marius@gnu.org> writes:

> Since the recent haskell-build-system changes, the 'ganeti' package
> fails to build [...]

This is fixed by 856def7bb3b4af85a1325bc732e81d705156a482 (and also
991ca49961d1066f7890644a40d629aca944f5b9).

You are right about ‘ghc-regex-pcre’ needing the ‘extra-directories’
option.  After that it was a matter of finding a way to get the Ganeti
build to tell GHC to use the new shared libraries the Haskell build
system produces.

Sorry for the breakage!


-- Tim




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#42934: Ganeti fails to build
  2020-08-20  4:14 ` Timothy Sample
@ 2020-08-26 21:54   ` Marius Bakke
  0 siblings, 0 replies; 3+ messages in thread
From: Marius Bakke @ 2020-08-26 21:54 UTC (permalink / raw)
  To: Timothy Sample; +Cc: 42934-done

[-- Attachment #1: Type: text/plain, Size: 636 bytes --]

Timothy Sample <samplet@ngyro.com> writes:

> Hi Marius,
>
> Marius Bakke <marius@gnu.org> writes:
>
>> Since the recent haskell-build-system changes, the 'ganeti' package
>> fails to build [...]
>
> This is fixed by 856def7bb3b4af85a1325bc732e81d705156a482 (and also
> 991ca49961d1066f7890644a40d629aca944f5b9).
>
> You are right about ‘ghc-regex-pcre’ needing the ‘extra-directories’
> option.  After that it was a matter of finding a way to get the Ganeti
> build to tell GHC to use the new shared libraries the Haskell build
> system produces.
>
> Sorry for the breakage!

Thanks for the quick fix!  :-)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-26 21:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-19 15:23 bug#42934: Ganeti fails to build Marius Bakke
2020-08-20  4:14 ` Timothy Sample
2020-08-26 21:54   ` Marius Bakke

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).