unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Problem compiling boost for mysql
@ 2020-05-14  7:50 Emmanuel Medernach
  2020-05-14  9:56 ` Vincent Legoll
  0 siblings, 1 reply; 2+ messages in thread
From: Emmanuel Medernach @ 2020-05-14  7:50 UTC (permalink / raw)
  To: help-guix

Hello Guixers,

I have an error when trying to build a package, the following gnu packages
derivation does not compile:

# guix build -e '(@ (gnu packages boost) boost-for-mysql)'

phase `more-bin-sh-patching' succeeded after 0.0 seconds
starting phase `configure'
Backtrace:
          10 (primitive-load "/gnu/store/bsfksp6c63zj3ynx46ck87sip7a…")
In ice-9/eval.scm:
   191:35  9 (_ _)
In guix/build/gnu-build-system.scm:
    838:2  8 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #)
In ice-9/boot-9.scm:
  1736:10  7 (with-exception-handler _ _ #:unwind? _ # _)
In srfi/srfi-1.scm:
   857:16  6 (every1 #<procedure 7ffff2b98d80 at guix/build/gnu-bui…> …)
In guix/build/gnu-build-system.scm:
   847:30  5 (_ _)
In ice-9/eval.scm:
    619:8  4 (_ #(#(#(#<directory (guile-user) 7ffff3bb7f00>) # #) …))
In srfi/srfi-1.scm:
    634:9  3 (for-each #<procedure substitute-one-file (a)> _)
In guix/build/utils.scm:
   736:30  2 (with-atomic-file-replacement "tools/build/src/engine/…" …)
In unknown file:
           1 (stat "tools/build/src/engine/execunix.cpp" #<undefined>)
In ice-9/boot-9.scm:
  1669:16  0 (raise-exception _ #:continuable? _)


Any help is appreciated

Best regards,

Emmanuel

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

* Re: Problem compiling boost for mysql
  2020-05-14  7:50 Problem compiling boost for mysql Emmanuel Medernach
@ 2020-05-14  9:56 ` Vincent Legoll
  0 siblings, 0 replies; 2+ messages in thread
From: Vincent Legoll @ 2020-05-14  9:56 UTC (permalink / raw)
  To: Emmanuel Medernach, help-guix

Hello Emmanuel,

On 14/05/2020 09:50, Emmanuel Medernach wrote:
> I have an error when trying to build a package, the following
> gnu packages derivation does not compile:
> 
> # guix build -e '(@ (gnu packages boost) boost-for-mysql)'

I'm reproducing the problem, I tried to use boost instead of
boost-for-mysql in the mysql package, but is still requires boost
1.59.0, which is not building.

First because execunix.c got translated into C++, in a later version of 
boost, so the guix recipe to build it changed, see:
02fef9619bd96086aa9255ffb0944d4cda617c84

But boost-for-mysql inherits that configure phase, whereas it still has
the c version of that file.

And second, if you fix^Whack that, then you get a compilation error on
some const * being used as non-const *.

Here is that whitespace-damaged hack:

diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm
index 2f2ca289ab..a9b463ca92 100644
--- a/gnu/packages/boost.scm
+++ b/gnu/packages/boost.scm
@@ -122,7 +124,7 @@
                     (out (assoc-ref outputs "out")))
                 (substitute* '("libs/config/configure"
 
"libs/spirit/classic/phoenix/test/runtest.sh"
-                              "tools/build/src/engine/execunix.cpp"
+                              "tools/build/src/engine/execunix.c"
                                "tools/build/src/engine/Jambase")
                   (("/bin/sh") (which "sh")))

I don't know how to fix that properly, maybe copy/paste the whole
(arguments ...) from boost into boost-for-mysql, but that does not
look right.

-- 
Vincent Legoll


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

end of thread, other threads:[~2020-05-14  9:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14  7:50 Problem compiling boost for mysql Emmanuel Medernach
2020-05-14  9:56 ` Vincent Legoll

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).