Closed ak-coram closed 3 years ago
I'm using the gold linker because the above package doesn't seem to ship with lld and using the system lld results in a segmentation fault.
I've got USE_LLD = True
working, but it doesn't seem to make a difference.
The error is probably saying the bitcode file written in the previous line doesn't exist. Dunno what could be causing that.
You can get a better error and probably an actual backtrace by having USE_PARALLEL_BUILD = False
in the wscript config.
Thank you for your response. I'm getting the same error as before with USE_PARALLEL_BUILD = False
:
Compiling with COMPILE-SYSTEM-SERIAL / core:*use-parallel-build* -> NIL core:*number-of-jobs* -> 12
Compiling [3 of 57] #P"/home/ak/Projects/clasp/src/lisp/kernel/tag/min-start.lsp"
to #P"/home/ak/Projects/clasp/build/boehm/fasl/aclasp-boehm-bitcode/src/lisp/kernel/tag/min-start.o" - will reload: NIL
compile-file-serial #P"/home/ak/Projects/clasp/build/boehm/fasl/aclasp-boehm-bitcode/src/lisp/kernel/tag/min-start.o" image-startup-position: 2
; Compiling file: /home/ak/Projects/clasp/src/lisp/kernel/tag/min-start.lsp
; (*MAKE-SPECIAL '*MIN-START*)
Writing object to: /home/ak/Projects/clasp/build/boehm/fasl/aclasp-boehm-bitcode/src/lisp/kernel/tag/min-start.o
Writing temporary bitcode file to: #P"/home/ak/Projects/clasp/build/boehm/fasl/aclasp-boehm-bitcode/src/lisp/kernel/tag/min-start.bc"
datum: FILE-ERROR (:PATHNAME #P"/home/ak/Projects/clasp/build/boehm/fasl/aclasp-boehm-bitcode/src/lisp/kernel/tag/min-start.bc")
universalErrorHandler
../../src/core/foundation.cc:326 dbg_hook(...) was called
../../src/core/lisp.cc:2103 core__invoke_internal_debugger --> NIL
0: /home/ak/Projects/clasp/build/boehm/iclasp-boehm() [0x1ca49a1]
Is there anything I can use at the Frame-0-Dbg>
REPL to get more details on the error?
:b
will get you a backtrace, but i think an attempt at a backtrace is printed there anyway, so.
You should probably check whether the file at issue (blablabla/min-start.bc) does exist at that time. I don't know why it wouldn't, but that's probably what the error is saying.
The backtrace via :b doesn't look too useful, but I've included it below. The file min-start.bc
indeed doesn't exist when I run into the error. Anything else I can try?
Frame-0-Dbg> :b
0: /home/ak/Projects/clasp/build/boehm/iclasp-boehm() [0x1ca49a1]
1: core::call_with_frame(std::function<gctools::multiple_values<core::T_O> (gctools::smart_ptr<core::DebuggerFrame_O>)>)
2: core::early_debug(gctools::smart_ptr<core::T_O>, bool)
3: core::core__invoke_internal_debugger(gctools::smart_ptr<core::T_O>)
4: core::core__universal_error_handler(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::List_V>)
5: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::multiple_values<core::T_O> (*)(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::List_V>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
6: core::cl__error(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::List_V>)
7: core::clasp_open_stream(gctools::smart_ptr<core::T_O>, core::StreamMode, gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>, long, int, gctools::smart_ptr<core::T_O>)
8: core::cl__open(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>, bool, gctools::smart_ptr<core::T_O>, bool, gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
9: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::smart_ptr<core::T_O> (*)(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>, bool, gctools::smart_ptr<core::T_O>, bool, gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
10: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
11: core::eval::sp_let(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
12: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
13: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
14: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
15: core::eval::sp_let(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
16: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
17: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
18: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
19: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
20: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
21: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
22: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
23: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
24: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
25: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::multiple_values<core::T_O> (*)(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::Vaslist>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
26: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
27: core::eval::sp_unwindProtect(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
28: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
29: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
30: core::eval::sp_let(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
31: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
32: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
33: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
34: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
35: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
36: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
37: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
38: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
39: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
40: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
41: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
42: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
43: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
44: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
45: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
46: core::eval::sp_let(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
47: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
48: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
49: core::interpret::interpreter_cond(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
50: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
51: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
52: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
53: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
54: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
55: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
56: core::funcall_va_list_8(gctools::smart_ptr<core::Function_O>, gctools::smart_ptr<core::Vaslist>)
57: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
58: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
59: core::eval::sp_let(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
60: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
61: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
62: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
63: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::multiple_values<core::T_O> (*)(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::Vaslist>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
64: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
65: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
66: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
67: core::eval::sp_let(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
68: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
69: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
70: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
71: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
72: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
73: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
74: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
75: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
76: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
77: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
78: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
79: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
80: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::multiple_values<core::T_O> (*)(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::Vaslist>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
81: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
82: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
83: core::interpret::interpreter_cond(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
84: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
85: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
86: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
87: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
88: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
89: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
90: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
91: core::eval::sp_multipleValueProg1(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
92: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
93: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
94: core::eval::sp_letSTAR(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
95: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
96: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
97: core::interpret::interpreter_cond(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
98: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
99: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
100: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
101: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
102: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
103: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
104: core::funcall_va_list_7(gctools::smart_ptr<core::Function_O>, gctools::smart_ptr<core::Vaslist>)
105: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
106: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
107: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
108: core::eval::sp_letSTAR(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
109: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
110: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
111: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
112: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::multiple_values<core::T_O> (*)(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::Vaslist>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
113: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
114: core::eval::sp_unwindProtect(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
115: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
116: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
117: core::eval::sp_letSTAR(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
118: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
119: core::eval::sp_if(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
120: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
121: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
122: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
123: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
124: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
125: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
126: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
127: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
128: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
129: core::eval::sp_let(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
130: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
131: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
132: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
133: core::eval::sp_letSTAR(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
134: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
135: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
136: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
137: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
138: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
139: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
140: core::apply0_inner_list(gctools::smart_ptr<core::Function_O>, gctools::smart_ptr<core::T_O>)
141: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::multiple_values<core::T_O> (*)(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::Vaslist>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
142: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
143: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
144: core::eval::sp_let(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
145: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
146: core::eval::sp_if(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
147: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
148: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
149: core::eval::sp_let(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
150: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
151: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
152: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
153: core::eval::sp_if(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
154: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
155: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
156: core::eval::sp_letSTAR(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
157: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
158: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
159: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
160: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
161: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
162: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
163: core::funcall_va_list_13(gctools::smart_ptr<core::Function_O>, gctools::smart_ptr<core::Vaslist>)
164: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
165: core::eval::sp_tagbody(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
166: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
167: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
168: core::eval::sp_letSTAR(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
169: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
170: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
171: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
172: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
173: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
174: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
175: core::apply0_inner_list(gctools::smart_ptr<core::Function_O>, gctools::smart_ptr<core::T_O>)
176: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::multiple_values<core::T_O> (*)(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::Vaslist>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
177: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
178: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
179: core::eval::sp_let(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
180: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
181: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
182: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
183: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
184: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
185: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
186: core::funcall_va_list_9(gctools::smart_ptr<core::Function_O>, gctools::smart_ptr<core::Vaslist>)
187: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
188: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
189: core::eval::sp_let(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
190: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
191: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
192: core::eval::sp_letSTAR(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
193: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
194: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
195: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
196: core::eval::sp_if(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
197: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
198: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
199: core::eval::sp_let(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
200: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
201: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
202: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
203: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
204: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
205: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
206: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
207: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
208: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
209: core::compiler__implicit_compile_hook_default(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
210: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::multiple_values<core::T_O> (*)(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
211: core::eval::t1Evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
212: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::multiple_values<core::T_O> (*)(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
213: core::cl__eval(gctools::smart_ptr<core::T_O>)
214: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::multiple_values<core::T_O> (*)(gctools::smart_ptr<core::T_O>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
215: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
216: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
217: core::eval::sp_let(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
218: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
219: core::eval::sp_if(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
220: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
221: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
222: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
223: core::cl__mapcar(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::List_V>)
224: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::smart_ptr<core::T_O> (*)(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::List_V>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
225: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
226: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
227: core::eval::sp_block(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
228: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
229: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
230: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
231: core::eval::evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
232: core::eval::evaluateListReturnLast(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
233: core::interpretedClosureEntryPoint(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
234: core::compiler__implicit_compile_hook_default(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
235: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::multiple_values<core::T_O> (*)(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
236: core::eval::t1Evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
237: core::eval::t1Progn(gctools::smart_ptr<core::List_V>, gctools::smart_ptr<core::T_O>)
238: core::eval::t1EvalWhen(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
239: core::eval::t1Evaluate(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
240: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::multiple_values<core::T_O> (*)(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
241: core::load_stream(gctools::smart_ptr<core::T_O>, bool)
242: core::core__load_source(gctools::smart_ptr<core::T_O>, bool, bool, gctools::smart_ptr<core::T_O>)
243: clbind::TEMPLATED_FUNCTION_VariadicFunctor<gctools::smart_ptr<core::T_O> (*)(gctools::smart_ptr<core::T_O>, bool, bool, gctools::smart_ptr<core::T_O>), core::policy::clasp, clbind::pureOutsPack<> >::entry_point(core::T_O*, unsigned long, core::T_O*, core::T_O*, core::T_O*, core::T_O*, ...)
244: core::core__load_no_package_set(gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>, gctools::smart_ptr<core::T_O>)
245: core::Lisp::run()
246: /home/ak/Projects/clasp/build/boehm/iclasp-boehm() [0x1b3a118]
247: gctools::initializeBoehm(int (*)(int, char**, bool&, int&, int&), int, char**, bool, int, int)
248: gctools::startupGarbageCollectorAndSystem(int (*)(int, char**, bool&, int&, int&), int, char**, unsigned long, bool, int, int)
249: main
250: __libc_start_main
251: _start
I seem to be able to generate min-start.bc
by running the following command:
rlwrap /home/ak/Projects/clasp/build/boehm/iclasp-boehm --norc --type image --disable-mpi --ignore-image --feature clasp-min --eval '(setq *features* (cons :aclasp *features*))' --eval '(load "sys:kernel;clasp-builder.lsp")' --eval '(setq core::*number-of-jobs* 12)' --eval '(core:compile-aclasp :output-file #P"/home/ak/Projects/clasp/build/boehm/fasl/aclasp-boehm-bitcode/src/lisp/kernel/tag/start.o")' --eval '(core:exit)' -- src/lisp/kernel/tag/start src/lisp/kernel/lsp/prologue src/lisp/kernel/tag/min-start src/lisp/kernel/init src/lisp/kernel/tag/after-init src/lisp/kernel/cmp/runtime-info src/lisp/kernel/lsp/sharpmacros src/lisp/kernel/cmp/jit-setup src/lisp/kernel/clsymbols src/lisp/kernel/lsp/packages src/lisp/kernel/lsp/foundation src/lisp/kernel/lsp/export src/lisp/kernel/lsp/defmacro src/lisp/kernel/lsp/helpfile src/lisp/kernel/lsp/evalmacros src/lisp/kernel/lsp/claspmacros src/lisp/kernel/lsp/source-transformations src/lisp/kernel/lsp/arraylib src/lisp/kernel/lsp/setf src/lisp/kernel/lsp/listlib src/lisp/kernel/lsp/mislib src/lisp/kernel/lsp/defstruct src/lisp/kernel/lsp/predlib src/lisp/kernel/lsp/cdr-5 src/lisp/kernel/lsp/cmuutil src/lisp/kernel/lsp/seqmacros src/lisp/kernel/lsp/seq src/lisp/kernel/lsp/seqlib src/lisp/kernel/lsp/iolib src/lisp/kernel/lsp/trace src/lisp/kernel/cmp/cmpexports src/lisp/kernel/cmp/cmpsetup src/lisp/kernel/cmp/cmpglobals src/lisp/kernel/cmp/cmputil src/lisp/kernel/cmp/cmpintrinsics src/lisp/kernel/cmp/primitives src/lisp/kernel/cmp/cmpir src/lisp/kernel/cmp/cmpeh src/lisp/kernel/cmp/debuginfo src/lisp/kernel/cmp/codegen-vars src/lisp/kernel/cmp/arguments src/lisp/kernel/cmp/cmplambda src/lisp/kernel/cmp/cmprunall src/lisp/kernel/cmp/cmpliteral src/lisp/kernel/cmp/typeq src/lisp/kernel/cmp/codegen-special-form src/lisp/kernel/cmp/codegen src/lisp/kernel/cmp/compile src/lisp/kernel/cmp/codegen-toplevel src/lisp/kernel/cmp/compile-file src/lisp/kernel/cmp/external-clang src/lisp/kernel/cmp/cmpname src/lisp/kernel/cmp/cmpbundle src/lisp/kernel/cmp/cmprepl src/lisp/kernel/tag/min-pre-epilogue src/lisp/kernel/lsp/epilogue-aclasp src/lisp/kernel/tag/min-end
and then the following in the REPL:
Frame-0-Dbg> (core::compile-file #P"/home/ak/Projects/clasp/src/lisp/kernel/tag/min-start.lsp")
compile-file-serial #P"/home/ak/Projects/clasp/src/lisp/kernel/tag/min-start.fasl" image-startup-position: 2
; Compiling file: /home/ak/Projects/clasp/src/lisp/kernel/tag/min-start.lsp
; (*MAKE-SPECIAL '*MIN-START*)
Writing temporary bitcode file to: #P"/home/ak/Projects/clasp/src/lisp/kernel/tag/min-start.bc"
Writing fasl file to: #P"/home/ak/Projects/clasp/src/lisp/kernel/tag/min-start.fasl"
warning: overriding the module target triple with x86_64-unknown-linux-gnu [-Woverride-module]
1 warning generated.
#P"/home/ak/Projects/clasp/src/lisp/kernel/tag/min-start.fasl"
If I copy that file to the right location the build seems to progress further until failing at the next step. Any ideas?
Compiling with COMPILE-SYSTEM-SERIAL / core:*use-parallel-build* -> NIL core:*number-of-jobs* -> 12
Compiling [4 of 57] #P"/home/ak/Projects/clasp/src/lisp/kernel/init.lsp"
to #P"/home/ak/Projects/clasp/build/boehm/fasl/aclasp-boehm-bitcode/src/lisp/kernel/init.o" - will reload: NIL
compile-file-serial #P"/home/ak/Projects/clasp/build/boehm/fasl/aclasp-boehm-bitcode/src/lisp/kernel/init.o" image-startup-position: 3
; Compiling file: /home/ak/Projects/clasp/src/lisp/kernel/init.lsp
; (EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL ...) ...)
; (*MAKE-SPECIAL '*ECHO-REPL-TPL-READ*)
; (EXPORT '(*ECHO-REPL-TPL-READ* IHS-TOP ...))
; (EXPORT '*TRACE-STARTUP*)
; (SETQ *ECHO-REPL-READ* ...)
; (IF (MEMBER :DUMP-REPL-OBJECT-FILES ...) ...)
; (SETQ *ECHO-REPL-TPL-READ* ...)
; (SETQ *LOAD-PRINT* ...)
; (SETQ *PRINT-CIRCLE* ...)
; (*MAKE-SPECIAL '*CLANG-BIN*)
; (EXPORT '*CLANG-BIN*)
; (IF (MEMBER :FORCE-COMPILE-FILE-SERIAL ...) ...)
; (COND (# #) ...)
; (IF (MEMBER :GENERATE-FASO ...) ...)
; (SETQ COMPILER:*DEFAULT-OBJECT-TYPE* ...)
; (EVAL-WHEN (:COMPILE-TOPLEVEL :EXECUTE) ...)
; (SETQ *FEATURES* ...)
; (EXPORT '(STANDARD-CLASS) ...)
; (EVAL-WHEN (:EXECUTE :COMPILE-TOPLEVEL ...) ...)
; (SHADOW '(STREAM-ELEMENT-TYPE OPEN-STREAM-P ...))
; (EVAL-WHEN (:EXECUTE :COMPILE-TOPLEVEL ...) ...)
; (*MAKE-SPECIAL '*USE-CLEAVIR-COMPILER*)
; (*MAKE-SPECIAL '*EVAL-WITH-ENV-HOOK*)
; (EVAL-WHEN (:EXECUTE :COMPILE-TOPLEVEL ...) ...)
; (*MAKE-SPECIAL '*DBG-GENERATE-DWARF*)
; (SETQ *DBG-GENERATE-DWARF* ...)
; (EXPORT '(LLVM-LINK LINK-BITCODE-MODULES ...))
; (*MAKE-SPECIAL '*ACTIVATION-FRAME-OPTIMIZE*)
; (SETQ *ACTIVATION-FRAME-OPTIMIZE* ...)
; (SETQ *FEATURES* ...)
; (*MAKE-SPECIAL '*USE-HUMAN-READABLE-BITCODE*)
; (SETQ *USE-HUMAN-READABLE-BITCODE* ...)
; (*MAKE-SPECIAL '*COMPILE-FILE-DEBUG-DUMP-MODULE*)
; (*MAKE-SPECIAL '*DEBUG-COMPILE-FILE*)
; (IF (BOUNDP '*COMPILE-FILE-DEBUG-DUMP-MODULE*) ...)
; (*MAKE-SPECIAL '*COMPILE-DEBUG-DUMP-MODULE*)
; (IF (BOUNDP '*COMPILE-DEBUG-DUMP-MODULE*) ...)
; (SETQ *DEBUG-COMPILE-FILE* ...)
; (EXPORT '(*COMPILE-FILE-DEBUG-DUMP-MODULE* *COMPILE-DEBUG-DUMP-MODULE* ...))
; (USE-PACKAGE :CORE)
; (EVAL-WHEN (:EXECUTE :COMPILE-TOPLEVEL ...) ...)
; (IF (FIND-PACKAGE "C") ...)
; (EVAL-WHEN (:EXECUTE :COMPILE-TOPLEVEL ...) ...)
; (EVAL-WHEN (:EXECUTE :COMPILE-TOPLEVEL ...) ...)
; (EVAL-WHEN (:EXECUTE :COMPILE-TOPLEVEL ...) ...)
; (IMPORT 'QUIT ...)
; (IMPORT 'GETPID ...)
; (IMPORT 'ARGC ...)
; (IMPORT 'ARGV ...)
; (IMPORT 'RMDIR ...)
; (IMPORT 'MKSTEMP ...)
; (IMPORT 'WEAK-POINTER-VALUE ...)
; (IMPORT 'MAKE-WEAK-POINTER ...)
; (IMPORT 'WEAK-POINTER-VALID ...)
; (IMPORT 'HASH-TABLE-WEAKNESS ...)
; (EVAL-WHEN (:EXECUTE :COMPILE-TOPLEVEL ...) ...)
; (EXPORT '(*MODULE-PROVIDER-FUNCTIONS* *SOURCE-LOCATION-KINDS* ...))
; (CORE:*MAKE-SPECIAL '*MODULE-PROVIDER-FUNCTIONS*)
; (CORE:*MAKE-SPECIAL '*SOURCE-LOCATION*)
; (SETQ *SOURCE-LOCATION* ...)
; (EXPORT 'CURRENT-SOURCE-LOCATION)
; (CORE:FSET 'CURRENT-SOURCE-LOCATION ...)
; (EVAL-WHEN (:EXECUTE :COMPILE-TOPLEVEL ...) ...)
; (EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL ...) ...)
; (IF (BOUNDP '*VARIABLE-SOURCE-INFOS*) ...)
; (FSET 'DEFVAR ...)
; (EXPORT 'DEFVAR)
; (FSET 'DEFPARAMETER ...)
; (EXPORT 'DEFPARAMETER)
; (FSET 'DEFCONSTANT ...)
; (EXPORT 'DEFCONSTANT)
; (IF (BOUNDP '+ECL-SAFE-DECLARATIONS+) ...)
; (DEFVAR +IO-SYNTAX-PROGV-LIST+ ...)
; (EVAL-WHEN (:EXECUTE :COMPILE-TOPLEVEL ...) ...)
; (DEFVAR *PRINT-PRETTY* ...)
; (DEFVAR *PRINT-LEVEL* ...)
; (DEFVAR *PRINT-LENGTH* ...)
; (DEFVAR *PRINT-BASE* ...)
; (DEFVAR *PRINT-RADIX* ...)
; (DEFVAR *READ-DEFAULT-FLOAT-FORMAT* ...)
; (EXPORT 'DEFUN)
; (EVAL-WHEN (:EXECUTE :COMPILE-TOPLEVEL ...) ...)
; (EXPORT 'BIND-VA-LIST)
; (DEFPARAMETER *DEBUG-BCLASP* ...)
; (DEFVAR *SPECIAL-INIT-DEFUN-SYMBOL* ...)
; (EVAL-WHEN (:EXECUTE) ...)
; (EXPORT '(DEFUN))
; (DEFVAR *DEFUN-INLINE-HOOK* ...)
; (DEFVAR *DO-INLINE-HOOK* ...)
; (DEFVAR *PROCLAIM-HOOK* ...)
; (EXPORT '(*DEFUN-INLINE-HOOK* *DO-INLINE-HOOK* ...))
; (DEFUN SET-DOCUMENTATION ...)
; (DEFUN PROCLAIM ...)
; (DEFUN GLOBAL-INLINE-STATUS ...)
; (EXPORT '(GLOBAL-INLINE-STATUS DECLARED-GLOBAL-NOTINLINE-P ...))
; (DEFVAR *ALIEN-DECLARATIONS* ...)
; (EXPORT '*ALIEN-DECLARATIONS*)
; (DEFUN SPLIT-AT-WHITE-SPACE ...)
; (DEFUN DEFAULT-LINK-FLAGS ...)
; (DEFUN LINK-FLAGS ...)
; (EXPORT 'LINK-FLAGS)
; (FSET 'AND ...)
; (FSET 'OR ...)
; (EXPORT '(AND OR))
; (DEFUN BUILD-TARGET-DIR ...)
; (DEFUN DEFAULT-TARGET-STAGE ...)
; (DEFUN BUILD-CONFIGURATION ...)
; (DEFUN ENSURE-RELATIVE-PATHNAME ...)
; (DEFUN BUILD-INLINE-BITCODE-PATHNAME ...)
; (DEFUN BUILD-COMMON-LISP-BITCODE-PATHNAME ...)
; (EXPORT '(BUILD-INLINE-BITCODE-PATHNAME BUILD-COMMON-LISP-BITCODE-PATHNAME))
; (DEFUN BITCODE-EXTENSION ...)
; (EXPORT 'BITCODE-EXTENSION)
; (DEFUN BUILD-EXTENSION ...)
; (DEFUN BUILD-LIBRARY-TYPE ...)
; (DEFUN BUILD-PATHNAME ...)
; (EXPORT '(BUILD-PATHNAME BUILD-EXTENSION))
; (EVAL-WHEN (:EXECUTE) ...)
; (DEFUN ENTRY-FILENAME ...)
; (DEFUN ENTRY-COMPILE-FILE-OPTIONS ...)
; (DEFUN DELETE-INIT-FILE ...)
; (DEFUN DEFAULT-TARGET-BACKEND ...)
; (EXPORT 'DEFAULT-TARGET-BACKEND)
; (DEFVAR *TARGET-BACKEND* ...)
; (EXPORT '*TARGET-BACKEND*)
; (DEFUN BITCODE-EXISTS-AND-UP-TO-DATE ...)
; (DEFUN DEFAULT-PROLOGUE-FORM ...)
; (EXPORT '*EXTENSION-STARTUP-LOADS*)
; (DEFVAR *EXTENSION-STARTUP-LOADS* ...)
; (EXPORT 'PROCESS-EXTENSION-LOADS)
; (DEFUN PROCESS-EXTENSION-LOADS ...)
; (EXPORT 'PROCESS-COMMAND-LINE-LOAD-EVAL-SEQUENCE)
; (DEFUN PROCESS-COMMAND-LINE-LOAD-EVAL-SEQUENCE ...)
; (EXPORT 'MAYBE-LOAD-CLASPRC)
; (DEFUN MAYBE-LOAD-CLASPRC ...)
; (DEFUN TPL-DEFAULT-PATHNAME-DEFAULTS-COMMAND ...)
; (DEFUN TPL-CHANGE-DEFAULT-PATHNAME-DEFAULTS-DIR-COMMAND ...)
; (IF (MEMBER :CLASP-BUILDER ...) ...)
; (DEFUN TPL-HOOK ...)
; (SETQ *TOP-LEVEL-COMMAND-HOOK* ...)
; (EXPORT 'TOP-LEVEL)
; (EVAL-WHEN (:EXECUTE :LOAD-TOP-LEVEL) ...)
Writing object to: /home/ak/Projects/clasp/build/boehm/fasl/aclasp-boehm-bitcode/src/lisp/kernel/init.o
Writing temporary bitcode file to: #P"/home/ak/Projects/clasp/build/boehm/fasl/aclasp-boehm-bitcode/src/lisp/kernel/init.bc"
datum: FILE-ERROR (:PATHNAME #P"/home/ak/Projects/clasp/build/boehm/fasl/aclasp-boehm-bitcode/src/lisp/kernel/init.bc")
universalErrorHandler
../../src/core/foundation.cc:326 dbg_hook(...) was called
../../src/core/lisp.cc:2103 core__invoke_internal_debugger --> NIL
0: /home/ak/Projects/clasp/build/boehm/iclasp-boehm() [0x1ca49a1]
@Bike Ok, I think I've finally figured something out! If I change this line to :output-type :faspbc
the build starts progressing.
I think when default-library-type
maps :object
to :fasl
, then write-bitcode
(from cmputil.lsp
) doesn't actually do anything (leaving us with the missing .bc
files). Would :faspbc
be the appropriate value here even when CLASP_BUILD_MODE
is set to "object"
? Even if so, default-library-type
seems to be used in various other places: is this the only place this would need to be changed? I wonder how this currently works on other platforms as it doesn't seem to be specific to the OS or the Linux distribution.
I'd be glad to submit a PR if you can confirm what needs to be changed.
Also the build now fails at the [200/205] compile_bclasp
step with the following error:
../../src/llvmo/llvmoExpose.cc:4978:operator() CLASP_NO_JIT_GDB not defined Adding ObjLinkingLayer plugin for orc::createJITLoaderGDBRegistrar
../../src/core/exceptions.cc:168 core__signal_simple_error caught because signal-simple-error is not installed yet
../../src/core/exceptions.cc:169 baseCondition: SIMPLE-PROGRAM-ERROR
../../src/core/exceptions.cc:170 formatControl: "~a"
../../src/core/exceptions.cc:171 formatArgs: ("Depreciated!!! function(core__load_binary) file(../../src/core/compiler.cc) lineNumber(947)")
../../src/core/exceptions.cc:176 About to try and FORMAT the error
Depreciated!!! function(core__load_binary) file(../../src/core/compiler.cc) lineNumber(947)
core__signal_simple_error
../../src/core/foundation.cc:326 dbg_hook(...) was called
../../src/core/lisp.cc:2103 core__invoke_internal_debugger --> NIL
0: /home/ak/Projects/clasp/build/boehm/iclasp-boehm() [0x1ca49a1]
Maybe try just removing the CLASP_BUILD_MODE
set in the config? I don't use that one when I build on Linux.
Thanks, I was already experimenting with different values for it: setting it to "faso"
made the build succeed without any other changes. It seems to be the only value working at the moment (for me on Linux at least).
I guess it would be helpful for the config templates to advertise this in one way or another. Currently comments in wscript.config.template
say that "object"
is the default, mentioning "bitcode"
as the alternative (meanwhile neither of those seem to work currently).
Maybe configure shouldn't even accept them either.
Now that I finally got the build working, the debugger seems to be crashing... I guess I'll give up for today :)
../../src/llvmo/llvmoExpose.cc:4978:operator() CLASP_NO_JIT_GDB not defined Adding ObjLinkingLayer plugin for orc::createJITLoaderGDBRegistrar
Starting cclasp-boehm-0.4.2-4827-g3ec388b93-cst ... loading image...
Top level in: #<PROCESS TOP-LEVEL @0x7fa539cbef09 (Running)>.
COMMON-LISP-USER> (mod 1 0)
Condition of type: DIVISION-BY-ZERO
Condition of type DIVISION-BY-ZERO was signaled.
Available restarts:
(use :r1 to invoke restart 1, etc.)
1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f77404b but it isn't
../../src/core/backtrace.cc:160:args_from_offset There are too many arguments 140347417760425
../../src/core/backtrace.cc:160:args_from_offset There are too many arguments 140347484593609
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0xd0 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ff09 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7c4a59 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0xd0 but it isn't
Condition of type: SEGMENTATION-VIOLATION
Segmentation fault. Attempted to access resticted memory address #x399472A0.
This is due either to a problem in foreign code (e.g., C++), or a bug in Clasp itself.
Available restarts:
(use :r1 to invoke restart 1, etc.)
1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6974e110 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ff09 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7172d9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6974eef8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7c0829 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ff59 but it isn't
../../src/core/backtrace.cc:160:args_from_offset There are too many arguments 140347484593609
../../src/core/backtrace.cc:160:args_from_offset There are too many arguments 140347442257593
Condition of type: SEGMENTATION-VIOLATION
Segmentation fault. Attempted to access resticted memory address #x4002FF00.
This is due either to a problem in foreign code (e.g., C++), or a bug in Clasp itself.
Available restarts:
(use :r1 to invoke restart 1, etc.)
1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6974c090 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54046c758 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f002819 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6974ce78 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6974dab0 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa531f6dd79 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ff09 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7c0829 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6974f2c8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:160:args_from_offset There are too many arguments 140347417760425
../../src/core/backtrace.cc:160:args_from_offset There are too many arguments 140347442257593
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ff09 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ff09 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7c2919 but it isn't
Condition of type: SEGMENTATION-VIOLATION
Segmentation fault. Attempted to access resticted memory address #x399472A0.
This is due either to a problem in foreign code (e.g., C++), or a bug in Clasp itself.
Available restarts:
(use :r1 to invoke restart 1, etc.)
1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6974a010 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54046c758 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f182f99 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6974adf8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6974ba30 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa531f6dd79 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6974d248 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
Condition of type: SEGMENTATION-VIOLATION
Segmentation fault. Attempted to access resticted memory address #x399472A0.
This is due either to a problem in foreign code (e.g., C++), or a bug in Clasp itself.
Available restarts:
(use :r1 to invoke restart 1, etc.)
1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69747f90 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54046c758 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f22f939 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69748d78 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe697499b0 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa531f6dd79 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6974b1c8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
Condition of type: SEGMENTATION-VIOLATION
Segmentation fault. Attempted to access resticted memory address #x4002FF00.
This is due either to a problem in foreign code (e.g., C++), or a bug in Clasp itself.
Available restarts:
(use :r1 to invoke restart 1, etc.)
1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69745f10 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54046c758 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f27c6f9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69746cf8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69747930 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa531f6dd79 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69749148 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
Condition of type: SEGMENTATION-VIOLATION
Segmentation fault. Attempted to access resticted memory address #x399472A0.
This is due either to a problem in foreign code (e.g., C++), or a bug in Clasp itself.
Available restarts:
(use :r1 to invoke restart 1, etc.)
1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69743e90 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54046c758 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52eca94b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69744c78 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe697458b0 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa531f6dd79 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe697470c8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
Condition of type: SEGMENTATION-VIOLATION
Segmentation fault. Attempted to access resticted memory address #x399472A0.
This is due either to a problem in foreign code (e.g., C++), or a bug in Clasp itself.
Available restarts:
(use :r1 to invoke restart 1, etc.)
1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69741e10 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54046c758 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52ef22279 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69742bf8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69743830 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa531f6dd79 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69745048 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
Condition of type: SEGMENTATION-VIOLATION
Segmentation fault. Attempted to access resticted memory address #x4002FF00.
This is due either to a problem in foreign code (e.g., C++), or a bug in Clasp itself.
Available restarts:
(use :r1 to invoke restart 1, etc.)
1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6973fd90 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54046c758 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52ea5d039 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69740b78 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe697417b0 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa531f6dd79 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69742fc8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x399472a9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69744c78 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69745048 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa539929c09 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe697458f8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54046c758 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa531e9c92b but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7f3009 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe697470c8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa539929c09 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69747130 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0xfffffffffffffee8 but it isn't
Condition of type: SEGMENTATION-VIOLATION
Segmentation fault. Attempted to access resticted memory address #xFFFFFFD03A7C4E60.
This is due either to a problem in foreign code (e.g., C++), or a bug in Clasp itself.
Available restarts:
(use :r1 to invoke restart 1, etc.)
1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6973dd10 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54046c758 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52e69fde9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6973eaf8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6973f730 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa531f6dd79 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69740f48 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x399472a9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69742bf8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69742fc8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa539929c09 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69743878 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54046c758 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa531e9c92b but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7f3009 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69745048 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa539929c09 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe697450b0 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0xfffffffffffffee8 but it isn't
Condition of type: SEGMENTATION-VIOLATION
Segmentation fault. Attempted to access resticted memory address #xFFFFFFD03A7C4E60.
This is due either to a problem in foreign code (e.g., C++), or a bug in Clasp itself.
Available restarts:
(use :r1 to invoke restart 1, etc.)
1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6973bc90 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54046c758 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52e1a6f99 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6973ca78 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6973d6b0 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa531f6dd79 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe6973eec8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x4002ff09 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54002ffa9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa52f7346eb but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69740b78 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7954b9 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69740f48 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa539929c09 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure (nil) but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe697417f8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa54046c758 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa531e9c92b but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa53a7f3009 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69742fc8 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7fa539929c09 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0x7ffe69743030 but it isn't
../../src/core/backtrace.cc:154:args_from_offset When trying to get arguments from CL frame read what should be a closure 0xfffffffffffffee8 but it isn't
../../src/core/lisp.cc:2130 -- *nested-error-depth* --> 11 datum: SEGMENTATION-VIOLATION
initializers: (:ADDRESS 18446743868532346464)
Dumping backtrace
../../src/core/debugger.cc:552:dbg_safe_backtrace This is where we would have clasp dump a backtrace that doesn't use the printer or allocate memory
We don't currently have that functionality - but if we did it would use backtrace(), backtrace_symbols()
and scrape the DWARF accessible through _lisp->_Roots._AllObjectFiles to build a backtrace with JIT function names
we can use the ObjectFile_O and Code_O objects to figure out what return addresses are JITted code and what DWARF
belongs to each return address.
It might be better to use the gdb JIT API (https://sourceware.org/gdb/current/onlinedocs/gdb/JIT-Interface.html)
What I'm missing to make the gdb JIT API work is how do we know where the code lives for the object file/symfile?
It would be useful to examine __jit_debug_descriptor and look at the symfile_addr/symfile_size entries to figure out
where they point relative to what we have in _lisp->_Roots._AllObjectFiles.
As of May 2, 2021 only ELF files work with the gdb JIT API - so this wouldn't work on macOS
Aborted (core dumped)
Yeah, I think that build option documentation is old, sorry. The actual default is faso I think.
The backtraces are because we have trouble specifically with that kind of error, since it's mediated by a POSIX signal handler. Other conditions should have backtraces fine. As in #961 and you already filed #1030. It's very unfortunate, but tricky to debug since we kind of want to throw an exception from a signal handler, which is necessarily undefined behavior in C/C++/POSIX.
Right, regarding #1030: I assumed it was an issue on BSD only, thanks for the clarification. I think we can close this issue, although I'd like to submit a PR for updating the configuration templates so others don't run into this in the future.
Thank you for your help with debugging the build.
I've also encountered some issues building main (3ec388b) on Linux (Arch Linux).
Config:
I'm using the following for LLVM13: https://aur.archlinux.org/packages/llvm13/
I'm using the gold linker because the above package doesn't seem to ship with lld and using the system lld results in a segmentation fault.
The error seems to be the following:
Full build logs are available here.