unofficial mirror of help-guix@gnu.org 
 help / color / 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	[flat|nested] 2+ messages in thread

end of thread, back to index

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

unofficial mirror of help-guix@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git