From: Marius Bakke <mbakke@fastmail.com>
To: Jonathan Brielmaier <jonathan.brielmaier@web.de>, 41213@debbugs.gnu.org
Subject: bug#41213: boost-for-mysql fails to build
Date: Wed, 20 May 2020 22:31:32 +0200 [thread overview]
Message-ID: <87367ubb6j.fsf@devup.no> (raw)
In-Reply-To: <a625efcb-6675-f302-8ab4-a09af9291f6b@web.de>
[-- Attachment #1: Type: text/plain, Size: 2365 bytes --]
Jonathan Brielmaier <jonathan.brielmaier@web.de> writes:
> `tools/build/src/engine/execunix.cpp` was named
> `tools/build/src/engine/execunix.c` before. So the following patch
> allows to build boost@1.59 again.
>
> ```
> diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm
> index 2f2ca289ab..d44b534939 100644
> --- a/gnu/packages/boost.scm
> +++ b/gnu/packages/boost.scm
> @@ -120,10 +120,11 @@
> (let ((icu (assoc-ref inputs "icu4c"))
> (python (assoc-ref inputs "python"))
> (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/Jambase")
> + (substitute* (append
> + (find-files "tools/build/src/engine/"
> "execunix\\.c.*")
> + '("libs/config/configure"
> +
> "libs/spirit/classic/phoenix/test/runtest.sh"
> + "tools/build/src/engine/Jambase"))
> (("/bin/sh") (which "sh")))
>
> (setenv "SHELL" (which "sh"))
> ```
>
> Although it fails with
> ```
> libs/python/src/converter/builtin_converters.cpp: In function ‘void*
> boost::python::converter::{anonymous}::convert_to_cstring(PyObject*)’:
> libs/python/src/converter/builtin_converters.cpp:51:35: error: invalid
> conversion from ‘const void*’ to ‘void*’ [-fpermissive]
> return PyUnicode_Check(obj) ? _PyUnicode_AsString(obj) : 0;
>
> "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
> -pthread -fPIC -m64 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG
> -I"."
> -I"/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/include/python3.8"
> -c -o
> "bin.v2/libs/python/build/gcc-7.5.0/release/threading-multi/converter/builtin_converters.o"
> "libs/python/src/converter/builtin_converters.cpp"
> ```
I think our efforts are better spent on updating the packages that use
this ancient Boost instead of hacking it to work with Python 3.8.
Though disabling Python support might work around the issue for now...
Do you use any packages that depend on this?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2020-05-20 20:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-12 16:22 bug#41213: boost-for-mysql fails to build Jonathan Brielmaier
2020-05-19 23:46 ` Jonathan Brielmaier
2020-05-20 20:31 ` Marius Bakke [this message]
2020-05-20 20:40 ` Jonathan Brielmaier
2020-05-21 8:36 ` Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87367ubb6j.fsf@devup.no \
--to=mbakke@fastmail.com \
--cc=41213@debbugs.gnu.org \
--cc=jonathan.brielmaier@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).