Commit a4f8041
committed
Enable gcc-14 build rv_histogram on macOS/arm64
Error:
Undefined symbols for architecture arm64:
"_ebreak_handler", referenced from:
lC0 in riscv.o
"_ecall_handler", referenced from:
lC0 in riscv.o
"_log_impl", referenced from:
_rv_create in riscv.o
_rv_create in riscv.o
_rv_create in riscv.o
_rv_profile in riscv.o
_rv_profile in riscv.o
_rv_run in riscv.o
"_log_level_string", referenced from:
_rv_create in riscv.o
"_log_set_level", referenced from:
_rv_create in riscv.o
"_log_set_stdout_stream", referenced from:
_rv_remap_stdstream in riscv.o
"_memcpy_handler", referenced from:
lC0 in riscv.o
"_memory_delete", referenced from:
_rv_delete in riscv.o
_rv_create in riscv.o
"_memory_ifetch", referenced from:
_on_mem_ifetch in riscv.o
"_memory_new", referenced from:
_rv_create in riscv.o
"_memory_read_b", referenced from:
_on_mem_read_b in riscv.o
"_memory_read_s", referenced from:
_on_mem_read_s in riscv.o
"_memory_read_w", referenced from:
_on_mem_read_w in riscv.o
"_memory_write_b", referenced from:
_on_mem_write_b in riscv.o
"_memory_write_s", referenced from:
_on_mem_write_s in riscv.o
"_memory_write_w", referenced from:
_on_mem_write_w in riscv.o
"_memset_handler", referenced from:
lC0 in riscv.o
"_rv", referenced from:
_rv_async_block_clear in riscv.o
"_rv_step", referenced from:
_rv_run in riscv.o
_rv_run in riscv.o
"_trap_handler", referenced from:
lC0 in riscv.o
ld: symbol(s) not found for architecture arm64
collect2: error: ld returned 1 exit status
make: *** [build/rv_histogram] Error 1
Add emulate.o, syscall.o, syscall_sdl.o, io.o, and log.o objects and
conditional build rv_async_block_clear() fixes the error and passes the
build.1 parent 51f7d2e commit a4f8041
2 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
| |||
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
12 | 21 | | |
13 | 22 | | |
14 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
| |||
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
| 379 | + | |
378 | 380 | | |
379 | 381 | | |
380 | 382 | | |
| |||
383 | 385 | | |
384 | 386 | | |
385 | 387 | | |
| 388 | + | |
386 | 389 | | |
387 | 390 | | |
| 391 | + | |
388 | 392 | | |
389 | 393 | | |
390 | 394 | | |
| |||
0 commit comments