Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make fails with segfault in inference.ji on version 0.5 #17645

Closed
colbec opened this issue Jul 27, 2016 · 7 comments
Closed

make fails with segfault in inference.ji on version 0.5 #17645

colbec opened this issue Jul 27, 2016 · 7 comments

Comments

@colbec
Copy link

colbec commented Jul 27, 2016

In last 24 hours there have been a number of changes resulting from a git pull including an llvm recompile. Yesterday make and make testall ran fine, but this morning make is failing:

> make
    JULIA usr/lib/julia/inference.ji
/bin/sh: line 1: 21656 Segmentation fault      /home/colin/Downloads/julia/usr/bin/julia -C native --output-ji /home/colin/Downloads/julia/usr/lib/julia/inference.ji --startup-file=no coreimg.jl
Makefile:215: recipe for target '/home/colin/Downloads/julia/usr/lib/julia/inference.ji' failed
make[1]: *** [/home/colin/Downloads/julia/usr/lib/julia/inference.ji] Error 139
Makefile:96: recipe for target 'julia-inference' failed
make: *** [julia-inference] Error 2

If this is not enough info, I can provide the entire output but it is quite long.

@yuyichao
Copy link
Contributor

Do you see warnings about _MSC_VER during llvm re-compilation?

@colbec
Copy link
Author

colbec commented Jul 27, 2016

@yuyichao Yes, 80 instances in the entire output beginning with:

In file included from /home/colin/Downloads/julia/usr/include/llvm/ADT/SmallVector.h:20:0,
                 from /home/colin/Downloads/julia/usr/include/llvm/ADT/ArrayRef.h:14,
                 from /home/colin/Downloads/julia/src/APInt-C.cpp:4:
/home/colin/Downloads/julia/usr/include/llvm/Support/MathExtras.h:74:7: warning: "_MSC_VER" is not defined [-Wundef]
 #elif _MSC_VER
       ^
/home/colin/Downloads/julia/usr/include/llvm/Support/MathExtras.h:90:7: warning: "_MSC_VER" is not defined [-Wundef]
 #elif _MSC_VER
       ^
/home/colin/Downloads/julia/usr/include/llvm/Support/MathExtras.h:143:7: warning: "_MSC_VER" is not defined [-Wundef]
 #elif _MSC_VER
       ^
/home/colin/Downloads/julia/usr/include/llvm/Support/MathExtras.h:159:7: warning: "_MSC_VER" is not defined [-Wundef]
 #elif _MSC_VER

......

@yuyichao
Copy link
Contributor

yuyichao commented Jul 27, 2016

I believe Jeff has seen the same. make -C deps distclean-llvm might fix it.

Both #17592 and c31c5f6 falls in the right time frame so @tkelman

@colbec
Copy link
Author

colbec commented Jul 27, 2016

As suggested, make -C deps distclean-llvm fixes. Thanks.

@goldfita
Copy link

Were these issues resolved? I'm failing on the same line on v0.6-rc2 (Win 7, Intel Xeon CPU E5-1620). I will try it on a newer machine at some point. A fresh clone of git and 'make -C deps distclean-llvm' does not fix the problem.

I attempted to build with MKL and ran into the following.

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

XC_HOST = x86_64-w64-mingw32
USE_GPL_LIBS = 0
MARCH = native
USEICC = 0
USEIFC = 0
USE_INTEL_MKL = 1
USE_INTEL_MKL_FFT = 1
USE_INTEL_LIBM = 1

So I tried LLVM 4, but it fails sooner in the build.

/bin/sh: line 1: 489268 Segmentation fault /home/goldfing/tmp/julia/usr/bin/julia.exe -C native --outpu t-ji cygpath -w /home/goldfing/tmp/julia/usr/lib/julia/inference.ji--startup-file=no -g0 -O0 coreimg.jl make[1]: *** [Makefile:214: /home/goldfing/tmp/julia/usr/lib/julia/inference.ji] Error 139 make: *** [Makefile:100: julia-inference] Error 2

XC_HOST = x86_64-w64-mingw32
LLVM_VER = 4.0.0
USE_GPL_LIBS = 0
MARCH = native (or x86-64)

@vtjnash
Copy link
Sponsor Member

vtjnash commented May 23, 2017

Looks like you're missing libopenlibm

@goldfita
Copy link

Does setting USE_INTEL_LIBM replace libopenlibm? I tried it without success setting only MKL_FFT=1 but I can't remember now if it was on a fresh git clone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants