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

Segfault while compiling on Ubuntu 11.10 64-bit #379

Closed
cndreisbach opened this issue Feb 18, 2012 · 6 comments
Closed

Segfault while compiling on Ubuntu 11.10 64-bit #379

cndreisbach opened this issue Feb 18, 2012 · 6 comments

Comments

@cndreisbach
Copy link

I'm trying to compile Julia on Ubuntu 11.10 64-bit, and having a segfault. Here is what I'm seeing:

llvm[3]: Building Intrinsics.gen.tmp from Intrinsics.td
0  llvm-tblgen    0x000000000053856f
1  llvm-tblgen    0x00000000005389d9
2  libc.so.6      0x00002b9784440420
3  libstdc++.so.6 0x00002b9783fa5886 __dynamic_cast + 102
4  llvm-tblgen    0x000000000050832a
5  llvm-tblgen    0x000000000051c75e
6  llvm-tblgen    0x000000000051d0e6
7  llvm-tblgen    0x000000000051fcaa
8  llvm-tblgen    0x00000000004f5d2f
9  llvm-tblgen    0x00000000004eacb0
10 libc.so.6      0x00002b978442b30d __libc_start_main + 237
11 llvm-tblgen    0x0000000000404379
Stack dump:
0.  Program arguments: /usr/local/src/julia/external/llvm-3.0/Release/bin/llvm-tblgen -I /usr/local/src/julia/external/llvm-3.0/lib/VMCore -I /usr/local/src/julia/external/llvm-3.0/include -I /usr/local/src/julia/external/llvm-3.0/include -I /usr/local/src/julia/external/llvm-3.0/lib/Target /usr/local/src/julia/external/llvm-3.0/include/llvm/Intrinsics.td -o /usr/local/src/julia/external/llvm-3.0/lib/VMCore/Release/Intrinsics.gen.tmp -gen-intrinsic 
make[3]: *** [/usr/local/src/julia/external/llvm-3.0/lib/VMCore/Release/Intrinsics.gen.tmp] Segmentation fault
make[2]: *** [all] Error 1
make[1]: *** [llvm-3.0/Release/lib/libLLVM-3.0.so] Error 2
make: *** [julia-release] Error 2

I'm not sure what's causing this, but can send any information about my machine that's needed. Here's /proc/cpuinfo to start with:


processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 20
model       : 1
model name  : AMD E-350 Processor
stepping    : 0
cpu MHz     : 800.000
cache size  : 512 KB
physical id : 0
siblings    : 2
core id     : 0
cpu cores   : 2
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 6
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt arat npt lbrv svm_lock nrip_save pausefilter
bogomips    : 3192.98
TLB size    : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor   : 1
vendor_id   : AuthenticAMD
cpu family  : 20
model       : 1
model name  : AMD E-350 Processor
stepping    : 0
cpu MHz     : 800.000
cache size  : 512 KB
physical id : 0
siblings    : 2
core id     : 1
cpu cores   : 2
apicid      : 1
initial apicid  : 1
fpu     : yes
fpu_exception   : yes
cpuid level : 6
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt arat npt lbrv svm_lock nrip_save pausefilter
bogomips    : 3193.26
TLB size    : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
@Keno
Copy link
Member

Keno commented Feb 19, 2012

This is a problem while building llvm. I think the thing to do would be to try the current trunk of llvm and see if it has been fixed already (quite likely) and otherwise file a bug at http://llvm.org/bugs/

@JeffBezanson
Copy link
Member

If Ubuntu has a binary package for LLVM 3.0, you can install that and set USE_SYSTEM_LLVM=1 in Make.inc.

@Keno
Copy link
Member

Keno commented Feb 19, 2012

I'm running Ubuntu 11.10 on 64bit too, but it does not seem like the llvm3.0 packages are available yet. For the record, I have llvm 3.1 installed locally and had julia download and build llvm3.0. I didn't encounter any problems with either.

@cndreisbach
Copy link
Author

I downloaded the LLVM 3.0 binaries for Ubuntu 11.10 from the LLVM website and things seem to be going better. I had to also go into external/Makefile and remove llvm from the LIBS variable to prevent it from trying to download and compile it, which it does whether or not USE_SYSTEM_LLVM=1 or not.

@Keno
Copy link
Member

Keno commented Feb 19, 2012

Also, if somebody else has the same issue, I just found out there are packages for llvm3.0-dev packages for Ubuntu 12.04, so those might work for those ready to experiment (as in using the 12.04 ppa on 11.10). The ones found on the llvm website should work just fine though. The only problem is removing them...

@jckarter
Copy link

LLVM binaries for Ubuntu are available from http://llvm.org/releases/download.html#3.0 .

fredrikekre added a commit that referenced this issue May 20, 2018
this commit removes cor, cov, median, median!,
middle, quantile, quantile!, std, stdm, var,
varm and linreg and moves them to StatsBase

fix #25571 (comment) (included in StatsBase.jl/#379)
fix #23769 (included in StatsBase.jl/#379)
fix #27140
cmcaine pushed a commit to cmcaine/julia that referenced this issue Nov 11, 2022
Concept names shouldn't contain some kind of hierarchy according to the v3 docs/spec.
Keno pushed a commit that referenced this issue Oct 9, 2023
PR #363 broke certain types of structure definition.
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