From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH v4 3/3] gnu: Update ldc to 0.17.1. Date: Tue, 13 Sep 2016 12:55:21 -0400 Message-ID: <20160913165521.GC20731@jasmine> References: <20160913103042.7302-1-dannym@scratchpost.org> <20160913103042.7302-4-dannym@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjqzi-0006yl-SA for guix-devel@gnu.org; Tue, 13 Sep 2016 12:55:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjqze-0000ft-Bn for guix-devel@gnu.org; Tue, 13 Sep 2016 12:55:37 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:53923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjqzd-0000Vo-0x for guix-devel@gnu.org; Tue, 13 Sep 2016 12:55:34 -0400 Content-Disposition: inline In-Reply-To: <20160913103042.7302-4-dannym@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel@gnu.org On Tue, Sep 13, 2016 at 12:30:42PM +0200, Danny Milosavljevic wrote: > * gnu/packages/ldc.scm (ldc): Update to 0.17.1. With this patch, LDC fails to build on my x86_64 machine with the familiar errors about isnan and isinf: [ 11%] Building CXX object CMakeFiles/LDCShared.dir/dmd2/scope.c.o /gnu/store/frrj3bfbmg5vrd0flh9cf8j64h7cr2v4-gcc-4.9.3/bin/c++ -DDMDV2 -DH= AVE_SC_ARG_MAX -DIN_LLVM -DLDC_INSTALL_PREFIX=3D\"/gnu/store/4p7hh4a7dyp2wg= 7zd08lvlxafayrjznx-ldc-0.17.1\" -DLDC_LLVM_VER=3D307 -DLLVM_INTRINSIC_TD_PA= TH=3D\"/gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.1/include\" -DO= PAQUE_VTBLS -D__LITTLE_ENDIAN__ -I/tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17= =2E1/. -I/tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1/dmd2 -I/tmp/guix-build= -ldc-0.17.1.drv-0/ldc-0.17.1/dmd2/root -I/tmp/guix-build-ldc-0.17.1.drv-0/b= uild/dmd2 -I/tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1 -isystem /gnu/store= /vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.1/include -isystem /gnu/store/1v= 4anv1dwvskkav1zj08gicwaibachr1-libconfig-1.5/include -O2 -g -DNDEBUG -I/= gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.1/include -fPIC -fvisi= bility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast= -qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-u= ninitialized -Wno-comment -std=3Dc++11 -ffunction-sections -fdata-sections = -O3 -DNDEBUG -fno-exceptions -fno-rtti -D_GNU_SOURCE -D__STDC_CONSTANT_MAC= ROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -w -DPOSIX -DLDC_POSIX = -o CMakeFiles/LDCShared.dir/dmd2/scope.c.o -c /tmp/guix-build-ldc-0.17.1.dr= v-0/ldc-0.17.1/dmd2/scope.c /tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1/dmd2/root/port.c: In static mem= ber function =E2=80=98static int Port::isNan(double)=E2=80=99: /tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1/dmd2/root/port.c:773:19: error:= =E2=80=98isnan=E2=80=99 was not declared in this scope return isnan(r); ^ /tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1/dmd2/root/port.c:773:19: note: = suggested alternative: In file included from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/Support/DataTypes.h:35:0, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/Support/SwapByteOrder.h:19, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/Support/MathExtras.h:18, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/ADT/SmallVector.h:20, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/ADT/ArrayRef.h:14, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/ADT/APInt.h:19, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/ADT/APFloat.h:20, from /tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1/dmd2/root= /port.c:677: /gnu/store/frrj3bfbmg5vrd0flh9cf8j64h7cr2v4-gcc-4.9.3/include/c++/cmath:632= :5: note: =E2=80=98std::isnan=E2=80=99 isnan(_Tp __x) ^ /tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1/dmd2/root/port.c: In static mem= ber function =E2=80=98static int Port::isNan(longdouble)=E2=80=99: /tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1/dmd2/root/port.c:789:19: error:= =E2=80=98isnan=E2=80=99 was not declared in this scope return isnan(r); ^ /tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1/dmd2/root/port.c:789:19: note: = suggested alternative: In file included from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/Support/DataTypes.h:35:0, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/Support/SwapByteOrder.h:19, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/Support/MathExtras.h:18, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/ADT/SmallVector.h:20, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/ADT/ArrayRef.h:14, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/ADT/APInt.h:19, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/ADT/APFloat.h:20, from /tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1/dmd2/root= /port.c:677: /gnu/store/frrj3bfbmg5vrd0flh9cf8j64h7cr2v4-gcc-4.9.3/include/c++/cmath:632= :5: note: =E2=80=98std::isnan=E2=80=99 isnan(_Tp __x) ^ /tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1/dmd2/root/port.c: In static mem= ber function =E2=80=98static int Port::isInfinity(double)=E2=80=99: /tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1/dmd2/root/port.c:817:19: error:= =E2=80=98isinf=E2=80=99 was not declared in this scope return isinf(r); ^ /tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1/dmd2/root/port.c:817:19: note: = suggested alternative: In file included from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/Support/DataTypes.h:35:0, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/Support/SwapByteOrder.h:19, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/Support/MathExtras.h:18, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/ADT/SmallVector.h:20, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/ADT/ArrayRef.h:14, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/ADT/APInt.h:19, from /gnu/store/vy5wrh1igqlcswxi6bmfdl16frpjw7nf-llvm-3.7.= 1/include/llvm/ADT/APFloat.h:20, from /tmp/guix-build-ldc-0.17.1.drv-0/ldc-0.17.1/dmd2/root= /port.c:677: /gnu/store/frrj3bfbmg5vrd0flh9cf8j64h7cr2v4-gcc-4.9.3/include/c++/cmath:614= :5: note: =E2=80=98std::isinf=E2=80=99 isinf(_Tp __x) ^ make[2]: *** [CMakeFiles/LDCShared.dir/build.make:1517: CMakeFiles/LDCShare= d.dir/dmd2/root/port.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/tmp/guix-build-ldc-0.17.1.drv-0/build' make[1]: *** [CMakeFiles/Makefile2:220: CMakeFiles/LDCShared.dir/all] Error= 2 make[1]: Leaving directory '/tmp/guix-build-ldc-0.17.1.drv-0/build' make: *** [Makefile:164: all] Error 2 phase `build' failed after 50.8 seconds builder for `/gnu/store/h01skxl6jasx9ckf47abgsq9s4v3my4i-ldc-0.17.1.drv' fa= iled with exit code 1 @ build-failed /gnu/store/h01skxl6jasx9ckf47abgsq9s4v3my4i-ldc-0.17.1.drv -= 1 builder for `/gnu/store/h01skxl6jasx9ckf47abgsq9s4v3my4i-ldc-0.17.1.drv'= failed with exit code 1 guix build: error: build failed: build of `/gnu/store/h01skxl6jasx9ckf47abg= sq9s4v3my4i-ldc-0.17.1.drv' failed > diff --git a/gnu/packages/patches/ldc-0.17.1-disable-tests.patch b/gnu/pa= ckages/patches/ldc-0.17.1-disable-tests.patch Can you add a comment to this patch explaining where it came from and what it does?