dhoegh / BuildExecutable.jl

Build a standalone executables from a Julia script
Other
156 stars 21 forks source link

Portable cpu_target on Windows #47

Open joaquimg opened 7 years ago

joaquimg commented 7 years ago

I have successfully compiled all my programs and used them in my computer (windows 10). But I am having portability issues.

When I compile on my "windows 10 64bits core i7-5500U" with cpu_target="core2" it works on all other i7 I could test on. However, when I use that on an amazon "Windows Server2012-R2 with Intel Xeon E5-2670 v2" I get the following error:

LLVM ERROR: Program used external function 'rint' which could not be resolved!

rint seems to be from openlibm.

If I compile on the amazon windows server with cpu_target="native" everything works smoothly. However, I could not compile it with no other cpu_target, I tried: core2, i686, generic, i386 .

Any Ideas? Which cpu_target is used for the julia distribution?

Note that the same julia distribution (0.5.1 64bits) works perfectly on all the machines mentioned here, I copied and pasted the whole folder to confirm.

joaquimg commented 7 years ago

More on the julia release (running versioninfo() on the amazon server):

Julia Version 0.5.1
Commit 6445c82 (2017-03-05 13:25 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, ivybridge)