CxxWrap.jl icon indicating copy to clipboard operation
CxxWrap.jl copied to clipboard

Test failure in functions.jl

Open musm opened this issue 6 years ago • 1 comments

methods(CppHalfFunctions.half_d) = # 1 method for generic function "half_d":
[1] half_d(arg1::Union{Float64, Int64, Irrational}) in Main.CppHalfFunctions
functions.jl: Test Failed at C:\Users\Mus\.julia\packages\CxxWrap\KcmSi\test\functions.jl:17
  Expression: CppHalfFunctions.strict_half(3.0) == 1.5
   Evaluated: 0.0 == 1.5
Stacktrace:





Julia Version 1.0.1
Commit 0d713926f8 (2018-09-29 19:05 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, haswell)
Environment:
  JULIA_EDITOR = subl
  JULIA_NUM_THREADS = 4

musm avatar Nov 12 '18 20:11 musm

Yes, this is known and unfixable, it's a gcc bug: https://github.com/JuliaLang/julia/issues/28325 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64243

Do you need this functionality on Win64? If so, the only workaround I am aware of is to compile libcxxwrap-julia using MSVC (which is easy, thanks to CMake, see the appveyor script of libcxxwrap-julia).

barche avatar Nov 12 '18 21:11 barche