[M3devel] LLVM builder modes Int/Ext/StAlone

Jay K jay.krell at cornell.edu
Fri Sep 11 03:53:36 CEST 2015


Here is what I get: some "crash", some "fail", some get the file format mixed up, some work!6 modes. 4 crash, 1 appears to work, 1 appears close

jair:m3core jay$ for a in \IntLlvmObj \IntLlvmAsm \ExtLlvmObj \ExtLlvmAsm \StAloneLlvmObj \StAloneLlvmAsm; \
do rm AMD64_DARWIN/RT0.io ; echo $a;cm3 -DM3_BACKEND_MODE=$a -keep -commands; done
IntLlvmObj*** runtime error:***    Segmentation violation - possible attempt to dereference NIL***    pc = 0x1030edca3 = set_error_handler + 0x5b in ../src/M3CG.m3***
IntLlvmAsm*** runtime error:***    Segmentation violation - possible attempt to dereference NIL***
ExtLlvmObj*** runtime error:***    Segmentation violation - possible attempt to dereference NIL***    pc = 0x10e8b0ca3 = set_error_handler + 0x5b in ../src/M3CG.m3
ExtLlvmAsm*** runtime error:***    Segmentation violation - possible attempt to dereference NIL
StAloneLlvmObjm3llvm -b -d -o RT0.ib RT0.icllc -disable-fp-elim -filetype=obj  -relocation-model=pic RT0.ib -o RT0.io
=> success?
except for:error: /Library/Developer/CommandLineTools/usr/bin/libtool: file: RT0.io is not an object file (not allowed in a library)

StAloneLlvmAsmclose, maybe just a config problemm3llvm -b -d -o RT0.ib RT0.icllc -disable-fp-elim -filetype=asm  -relocation-model=pic RT0.ib -o RT0.isfg++ -m64 -arch x86_64 -c -x assembler RT0.is -o RT0.ioRT0.is:5:2: error: unknown directive

I assume we should ignore Int and Ext and focus on StAlone for now.

 - Jay 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150911/68e0787b/attachment-0001.html>


More information about the M3devel mailing list