-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
LLVM 3.3 crash on OSX: /bin/sh: line 1: 84249 Floating point exception: 8 #436
Comments
|
ping ? |
|
i also tried building ldc using the latest llvm git master : [ 30%] Generating src/core/thread-debug.o |
|
update: ok it compiles and runs with llvm 3.2, not 3.3 |
|
reopening because it should be made to work on 3.3 |
|
I am working on the LLVM 3.4 issue. They introduced new functionality and extended the checks on debug info which leads to this crash. |
|
please don't neglect OSX users :) ! |
|
@timotheecour: On OS X, LDC will never run on LLVM 3.3, because of a regression the LLVM team deliberately chose to leave unfixed: http://llvm.org/bugs/show_bug.cgi?id=15972 Of course, once it became obvious that this also affects Clang (I guess I should have spelt that out explicitly), they fixed it, but… |
|
Also added that piece of information to the "Building from source" page. Do you think it makes sense to add checks for known bad versions to CMake? |
|
yes, until it's fixed. Took me some time to figure out it was because I was using 3.3 instead of 3.2. Also, seems like they DID fix it in that thread you mentioned, so can LDC run
|
|
Nope, the fix was done after the 3.3 release (Clang also shipped with the regression, and it turns out that people have thread-local statics in C++ templates too…). I don't know a reason why LLVM trunk shouldn't work in theory, but then again, API changes are pretty frequent, and there still seems be an issue concerning debug info (https://travis-ci.org/ldc-developers/ldc/jobs/10686173). |
|
Also, regarding "until it's fixed": As far as I am aware, there are are no point releases of LLVM, so this is never going to get fixed in LLVM 3.3. |
|
There is ongoing work to prepare a LLVM 3.3.1 release. But I don't know if this particular problem is fixed in this release. |
Remove long-deprecated time-related functions.
cd path/to/ldc
git pull
git submodule update --init
mkdir build2
cd build2
ccmake ..
cmake ..
make -j8
[ 51%] Generating std/metastrings.o
[ 51%] /bin/sh: line 1: 84249 Floating point exception: 8 /Users/timothee/shortcuts/git_clone/D/ldc/build2/bin/ldc2 --output-o -c -I/Users/timothee/shortcuts/git_clone/D/ldc/runtime/druntime/src -I/Users/timothee/shortcuts/git_clone/D/ldc/runtime/druntime/src/gc /Users/timothee/shortcuts/git_clone/D/ldc/runtime/phobos/std/file.d -of/Users/timothee/shortcuts/git_clone/D/ldc/build2/runtime/std/file.o -w -d -O3 -release -I/Users/timothee/shortcuts/git_clone/D/ldc/runtime/phobos
make[2]: *** [runtime/std/file.o] Error 136
make[2]: *** Waiting for unfinished jobs....
The text was updated successfully, but these errors were encountered: