From owner-freebsd-fortran@freebsd.org Sat Jul 4 16:51:13 2020 Return-Path: Delivered-To: freebsd-fortran@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3A5A5353079 for ; Sat, 4 Jul 2020 16:51:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49zdBn0rB1z3fNN for ; Sat, 4 Jul 2020 16:51:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 1CBB3353078; Sat, 4 Jul 2020 16:51:13 +0000 (UTC) Delivered-To: fortran@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1C7E6352F2F for ; Sat, 4 Jul 2020 16:51:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49zdBm6zklz3f96 for ; Sat, 4 Jul 2020 16:51:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D34231F757 for ; Sat, 4 Jul 2020 16:51:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 064GpCwZ090712 for ; Sat, 4 Jul 2020 16:51:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 064GpCKS090710 for fortran@FreeBSD.org; Sat, 4 Jul 2020 16:51:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: fortran@FreeBSD.org Subject: maintainer-feedback requested: [Bug 247763] [patch] math/suitesparse: build fails because of implicit conversion from long to double Date: Sat, 04 Jul 2020 16:51:12 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fortran@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-fortran@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Fortran on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jul 2020 16:51:13 -0000 Bugzilla Automation has asked freebsd-fortran (Nobod= y) for maintainer-feedback: Bug 247763: [patch] math/suitesparse: build fails because of implicit conversion from long to double https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247763 --- Description --- When building the new suitesparse 5.8.0, I get the following error: gmake[4]: Entering directory '/usr/ports/math/suitesparse/work/SuiteSparse-5.8.0/SLIP_LU/Lib' gmake install INSTALL=3D/usr/ports/math/suitesparse/work/SuiteSparse-5.8.0 gmake[5]: Entering directory '/usr/ports/math/suitesparse/work/SuiteSparse-5.8.0/SLIP_LU/Lib' cc -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wall -Wextra -Wpedantic -Werror -Wall -Wextra -Wpeda= ntic -Werror -isystem /usr/local/include -O3 -fexceptions -fPIC -fopenmp -I../Include -I../../COLAMD/Include -I../../AMD/Include -I../../SuiteSparse_config -c ../Source/slip_matrix_div.c cc -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wall -Wextra -Wpedantic -Werror -Wall -Wextra -Wpeda= ntic -Werror -isystem /usr/local/include -O3 -fexceptions -fPIC -fopenmp -I../Include -I../../COLAMD/Include -I../../AMD/Include -I../../SuiteSparse_config -c ../Source/slip_create_mpq_array.c cc -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wall -Wextra -Wpedantic -Werror -Wall -Wextra -Wpeda= ntic -Werror -isystem /usr/local/include -O3 -fexceptions -fPIC -fopenmp -I../Include -I../../COLAMD/Include -I../../AMD/Include -I../../SuiteSparse_config -c ../Source/SLIP_free.c cc -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wall -Wextra -Wpedantic -Werror -Wall -Wextra -Wpeda= ntic -Werror -isystem /usr/local/include -O3 -fexceptions -fPIC -fopenmp -I../Include -I../../COLAMD/Include -I../../AMD/Include -I../../SuiteSparse_config -c ../Source/SLIP_LU_factorize.c In file included from ../Source/slip_create_mpq_array.c:15: ../Source/slip_internal.h:663:18: error: implicit conversion from 'long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-int-float-conversion] else if (x > INT64_MAX) ~ ^~~~~~~~~ /usr/include/x86/_stdint.h:90:19: note: expanded from macro 'INT64_MAX' #define INT64_MAX 0x7fffffffffffffff ^~~~~~~~~~~~~~~~~~ In file included from ../Source/slip_matrix_div.c:26: ../Source/slip_internal.h:663:18: error: implicit conversion from In file included from ../Source/SLIP_free.c:13: ../Source/slip_internal.h:663:18: error: implicit conversion from 'long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-int-float-conversion] 'long' else if (x > INT64_MAX) ~ ^~~~~~~~~ /usr/include/x86/_stdint.h:90:19: note: expanded from macro 'INT64_MAX' to#define INT64_MAX 0x7fffffffffffffff ^~~~~~~~~~~~~~~~~~ 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-int-float-conversion] else if (x > INT64_MAX) ~ ^~~~~~~~~ /usr/include/x86/_stdint.h:90:19: note: expanded from macro 'INT64_MAX' #define INT64_MAX 0x7fffffffffffffff1 error generated. ^~~~~~~~~~~~~~~~~~ 1 error generated. In file included from ../Source/SLIP_LU_factorize.c:40: ../Source/slip_internal.h:663:18: error: implicit conversion from 'long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-int-float-conversion] else if (x > INT64_MAX) ~ ^~~~~~~~~ /usr/include/x86/_stdint.h:90:19: note: expanded from macro 'INT64_MAX' gmake[5]: *** [Makefile:46: SLIP_free.o] Error 1 #define INT64_MAX 0x7fffffffffffffffgmake[5]: *** Waiting for unfinished jobs.... ^~~~~~~~~~~~~~~~~~ gmake[5]: *** [Makefile:46: slip_create_mpq_array.o] Error 1 1 error generated. gmake[5]: *** [Makefile:46: slip_matrix_div.o] Error 1 1 error generated. gmake[5]: *** [Makefile:46: SLIP_LU_factorize.o] Error 1 gmake[5]: Leaving directory '/usr/ports/math/suitesparse/work/SuiteSparse-5.8.0/SLIP_LU/Lib' gmake[4]: *** [Makefile:53: library] Error 2 gmake[4]: Leaving directory '/usr/ports/math/suitesparse/work/SuiteSparse-5.8.0/SLIP_LU/Lib' gmake[3]: *** [Makefile:32: library] Error 2 gmake[3]: Leaving directory '/usr/ports/math/suitesparse/work/SuiteSparse-5.8.0/SLIP_LU' gmake[2]: *** [Makefile:144: library] Error 2 gmake[2]: Leaving directory '/usr/ports/math/suitesparse/work/SuiteSparse-5.8.0' =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure = to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/math/suitesparse *** Error code 1 Stop. make: stopped in /usr/ports/math/suitesparse A small modification to slip__internal.h (making the conversion explicit) f= ixes this issue.