Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Jan 2019 07:19:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 234605] math/libpgmath: Fails to build with argument value outside valid range
Message-ID:  <bug-234605-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234605

            Bug ID: 234605
           Summary: math/libpgmath: Fails to build with argument value
                    outside valid range
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jmd@freebsd.org
          Reporter: rhurlin@gwdg.de
             Flags: maintainer-feedback?(jmd@freebsd.org)
          Assignee: jmd@freebsd.org

When I try to build math/libpgmath on a recent FreeBSD !3.0-CURRENT amd64 w=
ith
up to date ports tree, I get the following error:

[..snip..]
[1/31] /usr/bin/c++  -DLINUX -DLINUX86 -DLINUX8664 -DMAXCPUS=3D256 -DMAXCPU=
SL=3D8
-DMAXCPUSR=3D8 -DPG_PIC -DTARGET_LINUX -DTARGET_LINUX_X86 -DTARGET_LINUX_X8=
664
-DTARGET_X86 -DTARGET_X8664 -D__gnu_linux__
-I/usr/ports/math/libpgmath/work/flang-53e368b/runtime/libpgmath/lib/common
-I/usr/ports/math/libpgmath/work/flang-53e368b/runtime/libpgmath/lib/x86_64
-I/usr/ports/math/libpgmath/work/flang-53e368b/runtime/libpgmath/lib/common=
/log/fma3
-O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector
-fno-strict-aliasing -fPIC   -m64 -O3 -mtune=3Dcore-avx2 -march=3Dcore-avx2=
 -MD -MT
lib/common/log/fma3/CMakeFiles/common_log_fma3.dir/fdlog1.cpp.o -MF
lib/common/log/fma3/CMakeFiles/common_log_fma3.dir/fdlog1.cpp.o.d -o
lib/common/log/fma3/CMakeFiles/common_log_fma3.dir/fdlog1.cpp.o -c
/usr/ports/math/libpgmath/work/flang-53e368b/runtime/libpgmath/lib/common/l=
og/fma3/fdlog1.cpp
FAILED: lib/common/log/fma3/CMakeFiles/common_log_fma3.dir/fdlog1.cpp.o=20
/usr/bin/c++  -DLINUX -DLINUX86 -DLINUX8664 -DMAXCPUS=3D256 -DMAXCPUSL=3D8
-DMAXCPUSR=3D8 -DPG_PIC -DTARGET_LINUX -DTARGET_LINUX_X86 -DTARGET_LINUX_X8=
664
-DTARGET_X86 -DTARGET_X8664 -D__gnu_linux__
-I/usr/ports/math/libpgmath/work/flang-53e368b/runtime/libpgmath/lib/common
-I/usr/ports/math/libpgmath/work/flang-53e368b/runtime/libpgmath/lib/x86_64
-I/usr/ports/math/libpgmath/work/flang-53e368b/runtime/libpgmath/lib/common=
/log/fma3
-O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector
-fno-strict-aliasing -fPIC   -m64 -O3 -mtune=3Dcore-avx2 -march=3Dcore-avx2=
 -MD -MT
lib/common/log/fma3/CMakeFiles/common_log_fma3.dir/fdlog1.cpp.o -MF
lib/common/log/fma3/CMakeFiles/common_log_fma3.dir/fdlog1.cpp.o.d -o
lib/common/log/fma3/CMakeFiles/common_log_fma3.dir/fdlog1.cpp.o -c
/usr/ports/math/libpgmath/work/flang-53e368b/runtime/libpgmath/lib/common/l=
og/fma3/fdlog1.cpp
/usr/ports/math/libpgmath/work/flang-53e368b/runtime/libpgmath/lib/common/l=
og/fma3/fdlog1.cpp:39:9:
error: argument value 85 is outside the valid range [0, 15]
[-Wargument-outside-range]
    t =3D _mm_blend_epi32(INT2DBL_HI, t, H55_D);=20
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/clang/7.0.1/include/avx2intrin.h:766:12: note: expanded from macro
'_mm_blend_epi32'
  (__m128i)__builtin_ia32_pblendd128((__v4si)(__m128i)(V1), \
           ^


I wasn't able to check, but possibly this is the reason for two newer
patches[1][2] in libpgmath sources?


[1]
https://github.com/flang-compiler/flang/commit/3660d02c4290abdeac1dca8b2ede=
71554033482d
[2]
https://github.com/flang-compiler/flang/commit/76894366d6435780a7d1a1ae7638=
2bb40c651ded

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234605-7788>