unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Ivan Vilata i Balaguer <ivan@selidor.net>
To: Ivan Vilata i Balaguer <ivan@selidor.net>, 53325@debbugs.gnu.org
Subject: bug#53325: povray: Fails to build (_Pragma errors)
Date: Wed, 26 Jan 2022 22:57:18 +0100	[thread overview]
Message-ID: <YfHDvr415kmjjrgW@sax.terramar.selidor.net> (raw)
In-Reply-To: <YeXKcBNztx65lpvt@sax.terramar.selidor.net>

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

Ivan Vilata i Balaguer (2022-01-17 20:58:40 +0100) wrote:

> Hi!  When trying to upgrade package `povray 3.7.0.8` from Guix commit
> `404f6953` to that of commit `4a943cfd`, the build fails showing errors like
> these: […]

I found what looks like the same issue reported in
<https://github.com/POV-Ray/povray/issues/438>.

As a commenter suggested, I succeeded to build the package using Boost 1.78,
not in the most orthodox way as Guix ships 1.77 and I don't have much
knowledge about Guix packaging, following the package definition:

    $ guix build --source povray
    /gnu/store/xc4l18mwxzxfvrqmymvkr7yirw1sc6ff-povray-3.7.0.8-checkout
    $ guix build boost \
      --with-source=boost@1.78.0=https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.tar.bz2
    /gnu/store/yiiqd3c7h4f6z0zia5br7wis3wpisgnr-boost-1.78.0
    $ cp -r /gnu/store/xc4l18mwxzxfvrqmymvkr7yirw1sc6ff-povray-3.7.0.8-checkout povray-3.7.0.8-checkout
    $ chmod -R u+w povray-3.7.0.8-checkout; cd povray-3.7.0.8-checkout
    $ guix environment -C --expose=/gnu/store/yiiqd3c7h4f6z0zia5br7wis3wpisgnr-boost-1.78.0 povray
    env$ cd unix/
    env$ sh prebuild.sh
    env$ cd ..
    env$ env COMPILED_BY=Guix ./configure \
      --with-boost=/gnu/store/yiiqd3c7h4f6z0zia5br7wis3wpisgnr-boost-1.78.0 \
      --with-boost-lib=/gnu/store/yiiqd3c7h4f6z0zia5br7wis3wpisgnr-boost-1.78.0/lib \
      --disable-optimiz-arch
    env$ make  # succeeds

So one solution would be to upgrade Boost to 1.78, though that may affect many
packages.  However, given the nature of the error, other packages may
eventually get bitten by it.  BTW, this is where I think they fixed the Boost
issue for 1.78: <https://github.com/boostorg/math/pull/676/files>

Cheers!

-- 
Ivan Vilata i Balaguer -- https://elvil.net/

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

  reply	other threads:[~2022-01-26 21:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-17 19:58 bug#53325: povray: Fails to build (_Pragma errors) Ivan Vilata i Balaguer
2022-01-26 21:57 ` Ivan Vilata i Balaguer [this message]
2022-02-07 22:43   ` Ivan Vilata i Balaguer
2023-06-10 15:27     ` bug#53325: povray: Fails to build (_Pragma errors) [FIXED] Ivan Vilata i Balaguer

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=YfHDvr415kmjjrgW@sax.terramar.selidor.net \
    --to=ivan@selidor.net \
    --cc=53325@debbugs.gnu.org \
    /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).