From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: Fwd: Packaging a cmake C++ header only library requiring C++17 Date: Fri, 29 Nov 2019 15:16:27 +0100 Message-ID: <87lfry939g.fsf@nckx> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35048) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iah4Z-0004ND-Nv for help-guix@gnu.org; Fri, 29 Nov 2019 09:16:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iah4T-00032H-RM for help-guix@gnu.org; Fri, 29 Nov 2019 09:16:36 -0500 Received: from tobias.gr ([2001:470:7405::1]:36894) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iah4R-0002lZ-IF for help-guix@gnu.org; Fri, 29 Nov 2019 09:16:33 -0500 Received: by tobias.gr (OpenSMTPD) with ESMTP id deebb4fe for ; Fri, 29 Nov 2019 14:16:28 +0000 (UTC) Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 20274722 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Fri, 29 Nov 2019 14:16:28 +0000 (UTC) In-reply-to: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Josh, Welcome! Josh Marshall =E5=86=99=E9=81=93=EF=BC=9A > The problem which we can't figure out is why the compiler being=20 > 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. Well=E2=80=A6 I'm easily stumped but that's actually not the case here. You've added gcc-9 to =E2=80=98inputs=E2=80=99. If you rename your =E2=80= =98inputs=E2=80=99 field=20 to =E2=80=98native-inputs=E2=80=99 you'll the see the magic kick in: $ guix build -f magic_enum.scm [=E2=80=A6] g++ (GCC) 9.2.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions.=20 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A=20 PARTICULAR PURPOSE. :-) After removing the debugging =E2=80=98 --version=E2=80=99, it complains tha= t: cc1plus: error: command line option ?-std=3Dgnu17? is valid for=20 C/ObjC but not for C++ [-Werror] True dat. So I edit your code to read: #:configure-flags '("-DCMAKE_CXX_FLAGS=3D-std=3Dc++17") Note that there's no need for 'quotes' here. Guix doesn't pass=20 command lines to a shell like many other build systems. Et pouf! $ guix build -f magic_enum.scm [=E2=80=A6] /gnu/store/h9npwdihnwr11xdbqjr20q5w2r6dbw1x-magic-enum-0.6.3 $ tree=20 /gnu/store/h9npwdihnwr11xdbqjr20q5w2r6dbw1x-magic-enum-0.6.3 /gnu/store/h9npwdihnwr11xdbqjr20q5w2r6dbw1x-magic-enum-0.6.3 =E2=94=9C=E2=94=80=E2=94=80 include =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 magic_enum.hpp =E2=94=9C=E2=94=80=E2=94=80 lib =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 cmake =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 magic_enum =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 magic_enumConfi= g.cmake =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 magic_enumConfi= gVersion.cmake =E2=94=94=E2=94=80=E2=94=80 share =E2=94=94=E2=94=80=E2=94=80 doc =E2=94=94=E2=94=80=E2=94=80 magic-enum-0.6.3 =E2=94=94=E2=94=80=E2=94=80 LICENSE Glorious. > Resending because I didn't get a post acknowledgement. I don't think (first) posts are explicitly acknowledged. The=20 mailing lists are sometimes delayed (seldom more than a few=20 minutes). The Web archives have a similar but often longer delay. > nckd and I have gone back and forth over a few days in IRC Close ;-) I know, weird nick, see my real name for an=20 explanation. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfo+u0AlEeO9y5k0W2Imw8BjFSTwFAl3hKDsACgkQ2Imw8BjF STz06w/6Aik4dpV9XYZZKKCvbzg5r2ZtuelKOoAiFQHIxVrFQpzs7aHo1I9vDfUm 4Cgeheb3CTbnLDQ/1VhGYrjXErhyamhLTvmulnMkhSKevoYwwzWpEs9JIE86jZQp 0ALGRhQtMhQbreM5cI2n3tipOpxq0+fKW5Zlsi2j4nHJ8IPGoUYCtydASE+6aW7l rmQ+jIg9l3q3kRQDSnJLWrRZc+gaeLw+uP42no6eyAncdZqgFj5XPCGzEe2MqSmW 3h4eCcr+r5+XFFtATKdiSx9zmWVSpmGzPxFlgKP7gogvF3etK04lAKfmKZaAcN63 zm+Qm7v1JP5yJes8o8yoA6gybbEURA7g6mcywKmKrDymTkmbmuvvXLpT9NRpyANz 6xkaqhqirLuXaqvk0b6w9mYRqktKhVaUQTEOnXkcJCWNdKh+Pxh1GqaPoc37jorA 4pEDlYJQCjvnjT3r0VJ0vXonRhqU183QK1sJE6w542L8ULOY8yxn0OyADKdE2gym Y22EC5/wD48syTepGcjgKC9CYISq/guVO1EVhWptRNr+M5GfSXcsaJFxpJW9ZJrU Hv+XCidyWQQTkz5HpYMFGCfKZNQ7ZvSZNOZmcBl4CGHYPlefW3ioYnQVuMfZ+tio LqpWHZlQV6Xj4ow1Xd7vWheDtYHXhxw7lJwYnTuOAR4O7+mV0pg= =nXJF -----END PGP SIGNATURE----- --=-=-=--