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

-g -e don't work together #404

Open
jckarter opened this issue Oct 10, 2012 · 2 comments
Open

-g -e don't work together #404

jckarter opened this issue Oct 10, 2012 · 2 comments

Comments

@jckarter
Copy link
Owner

% ./build/compiler/clay -g -e ''  
pseudo instructions should be removed before code emission
UNREACHABLE executed at /Users/joe/Documents/Code/others/llvm-3.1.src/lib/Target/X86/X86CodeEmitter.cpp:736!
Stack dump:
0.  Running pass 'X86 Machine Code Emitter' on function '@"core.errors.backtrace.showBacktrace() clay"'
signal 4!
zsh: illegal hardware instruction  ./build/compiler/clay -g -e ''
@ghost
Copy link

ghost commented Nov 13, 2012

After building with llvm 3.2 get the following error:

> compiler/clay -g -e ''
clay: DIBuilder.cpp:1003: llvm::Instruction *llvm::DIBuilder::insertDeclare(llvm::Value *, llvm::DIVariable, llvm::BasicBlock *): Assertion `VarInfo.Verify() && "invalid DIVariable passed to dbg.declare"' failed.
signal 6!

compilation context: 
    PrintfFmt(Static[Int32])
  /home/jeremy/dev/clay/clay/build/compiler/../../lib-clay/core/numbers/overflow/overflow.clay(278,52):
    errorWithPrintfNoThrow(Static["invalid integer math: integerConvertWithOverflow(UInt64, %d)"], Int32)
  /home/jeremy/dev/clay/clay/build/compiler/../../lib-clay/core/numbers/overflow/overflow.clay(276,30):
    checked(Static[integerConvertWithOverflow], Static[UInt64], Int32)
  /home/jeremy/dev/clay/clay/build/compiler/../../lib-clay/core/numbers/overflow/overflow.clay(308,13):
    doIntegerConvertChecked(Static[UInt64], Int32)
  /home/jeremy/dev/clay/clay/build/compiler/../../lib-clay/core/numbers/numbers.clay(478,27):
    UInt64(Int32)
  /home/jeremy/dev/clay/clay/build/compiler/../../lib-clay/core/arrays/arrays.clay(15,47):
    size(Array[Pointer[UInt8], 128])
  /home/jeremy/dev/clay/clay/build/compiler/../../lib-clay/core/errors/backtrace/platform/platform.unix.clay(26,16):
    Int32(UInt64)
  /home/jeremy/dev/clay/clay/build/compiler/../../lib-clay/core/errors/backtrace/platform/platform.unix.clay(26,11):
    call(ExternalCodePointer[AttributeCCall, false, [Pointer[Pointer[UInt8]], Int32], [Int32]], Pointer[Pointer[UInt8]], Int32)
  /home/jeremy/dev/clay/clay/build/compiler/../../lib-clay/core/errors/backtrace/platform/platform.unix.clay(24,29):
    captureBacktrace()
  /home/jeremy/dev/clay/clay/build/compiler/../../lib-clay/core/errors/backtrace/backtrace.clay(9,29):
    showBacktrace()
  /home/jeremy/dev/clay/clay/build/compiler/../../lib-clay/core/exceptions/exceptions.clay(146,17):
    errorMsg(Static["exception when initializing globals\n"])
fish: Job 1, 'compiler/clay -g -e ''' terminated by signal SIGABRT (Abort)

@ghost
Copy link

ghost commented Jan 7, 2013

Cannot reproduce this bug on Archlinux using llvm3.2 & clay/master. Still occurs on OSX, maybe OSX specific?

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

1 participant