From: Josh Marshall <joshua.r.marshall.1991@gmail.com>
To: help-guix@gnu.org
Subject: Fwd: Packaging a cmake C++ header only library requiring C++17
Date: Thu, 28 Nov 2019 13:11:51 -0500 [thread overview]
Message-ID: <CAFkJGRdMtH6SXEEGO9=p+=4s-ydQ+mnhLxOLFZ_jMug9VOPSyw@mail.gmail.com> (raw)
In-Reply-To: <CAFkJGRfDz7iwLtVZxDoPOLgYOsPEUvpT+qarGpLTv-scJV30nw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 541 bytes --]
Hello,
nckd and I have gone back and forth over a few days in IRC trying to
help me out here. I am trying to package magic-enum (
https://github.com/Neargye/magic_enum ) which is a C++ header only
library requiring at least C++ 17, and uses the cmake build system.
The problem which we can't figure out is why the compiler being used
is the default for `gcc` at 7.4 while there is explicit use and
dependency on `gcc` 9.2 via `gcc-9`. We're stumped.
Attached are the latest package definitions, build log, and cli
invocation and output.
[-- Attachment #2: 0545hcvyz4p07jc5xz4crak2cvpxpv-magic-enum-0.6.3.drv.bz2 --]
[-- Type: application/bzip2, Size: 3779 bytes --]
[-- Attachment #3: magic-enum.scm --]
[-- Type: application/octet-stream, Size: 1205 bytes --]
(define-module (gnu packages magic-enum)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system cmake)
#:use-module (guix licenses)
#:use-module (gnu packages gcc))
(define-public magic-enum
(package
(name "magic-enum")
(version "0.6.3")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/Neargye/magic_enum/archive/v" version ".tar.gz" ))
(sha256
(base32
"0g22jiykx7dznskvkba6qmdasr7pbqp8a15sp0738kw9yjfgx6ak"))))
(build-system cmake-build-system)
(arguments
'(#:tests? #t ;
#:configure-flags '("-DCMAKE_CXX_FLAGS='-std=gnu17 --version'")))
; #:make-flags '("CMAKE_CXX_FLAGS=-std=gnu17")))
(inputs `(("gcc", gcc-9)))
(synopsis "Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code")
(description "Header-only C++17 library provides static reflection for enums, work with any enum type without any macro or boilerplate code.")
(home-page "https://github.com/Neargye/magic_enum")
(license expat)))
magic-enum
[-- Attachment #4: stdout --]
[-- Type: application/octet-stream, Size: 1226 bytes --]
anadon@goodadvicemallard:~/Documents/code/guix-packages$ guix package --install-from-file=magic-enum.scm
substitute: /gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
substitute: /gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
/gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
/gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
building /gnu/store/l90545hcvyz4p07jc5xz4crak2cvpxpv-magic-enum-0.6.3.drv...
- 'check' phasebuilder for `/gnu/store/l90545hcvyz4p07jc5xz4crak2cvpxpv-magic-enum-0.6.3.drv' failed with exit code 1
build of /gnu/store/l90545hcvyz4p07jc5xz4crak2cvpxpv-magic-enum-0.6.3.drv failed
View build log at '/var/log/guix/drvs/l9/0545hcvyz4p07jc5xz4crak2cvpxpv-magic-enum-0.6.3.drv.bz2'.
guix package: error: build of `/gnu/store/l90545hcvyz4p07jc5xz4crak2cvpxpv-magic-enum-0.6.3.drv' failed
next parent reply other threads:[~2019-11-28 18:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAFkJGRfDz7iwLtVZxDoPOLgYOsPEUvpT+qarGpLTv-scJV30nw@mail.gmail.com>
2019-11-28 18:11 ` Josh Marshall [this message]
2019-11-29 14:58 ` Fwd: Packaging a cmake C++ header only library requiring C++17 Marius Bakke
2019-11-29 13:22 ` Josh Marshall
2019-11-29 14:16 ` sirgazil
2019-11-29 14:16 ` Tobias Geerinckx-Rice
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='CAFkJGRdMtH6SXEEGO9=p+=4s-ydQ+mnhLxOLFZ_jMug9VOPSyw@mail.gmail.com' \
--to=joshua.r.marshall.1991@gmail.com \
--cc=help-guix@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.
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).