From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: Fwd: Packaging a cmake C++ header only library requiring C++17 Date: Fri, 29 Nov 2019 15:58:00 +0100 Message-ID: <87v9r2vifb.fsf@devup.no> 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]:45880) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iahiu-0002n6-1l for help-guix@gnu.org; Fri, 29 Nov 2019 09:58:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iahiq-0007Jw-Ru for help-guix@gnu.org; Fri, 29 Nov 2019 09:58:18 -0500 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:35321) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iahim-0006wD-PU for help-guix@gnu.org; Fri, 29 Nov 2019 09:58:16 -0500 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: Josh Marshall , help-guix@gnu.org --=-=-= Content-Type: text/plain Hi Josh, Josh Marshall writes: > 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. If you change 'inputs' to 'native-inputs', then CMake will pick up the correct GCC, and you can remove the (arguments ...) block. (you probably wanted -std=gnu++17 instead of -std=gnu17 too, but no need when using GCC 9) Pro tip: use 'guix build -f magic-enum.scm' to get the build output right in your terminal. :-) HTH, Marius --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl3hMfkACgkQoqBt8qM6 VPrPvQf/dO0hgVw/QMm0U1XNm5bO6+ofKWqTkp4dVH9kFiphH13Har8CMQ+FJN2t M3FWCvA32Rb0OiwnAaaswKKOD8sqnh6tSeUSSatDwp20S6G+2UGkfQuo6hF/nNqe b6fxeXDx6Sb/Jbq5siM98yvQw0aDGCqBmG8Y9OGnfTqgNaZ5F/RwFqhhiUSqg70R rkIrCbAaEuXRGmprg0Z70aup/ap0AwB3kcsQOKv/zVZqcxfEEaaQkxJQZ1FcEOLQ wqhMgTxZmcHuuB52jX8r71PlIJ6Oooln4bXCOPd+0tREjLOAi3PucHTQb+q8G3+Q w2585UxqIQ5WV4IZrQSvA0Us+Ud6Tw== =32Y0 -----END PGP SIGNATURE----- --=-=-=--