You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm novice on C. First of all, sorry if the question might look basic, but I'm confused with an error message trying to link LLVM IR code with gc.
Here is the context:
I'm generating LLVM IR from uBasic source code (see my uBasic project for more context)
l've make gc which gave me log.o in gc/build/src directory (I though I would have a gc.o...)
l made compile.o from compile.ll using llc -filetype=obj compile.ll
l tried to link compile.o and log.o to build my executable: clang compile.o gc/build/src/log.o -o compile
this gave me the following errors:
Undefined symbols for architecture arm64:
"_gc", referenced from:
_main in compile.o
_main in compile.o
_.main in compile.o
"_gc_malloc", referenced from:
_.main in compile.o
_.main in compile.o
_.main in compile.o
_.main in compile.o
_.main in compile.o
_.main in compile.o
_.main in compile.o
...
"_gc_start", referenced from:
_main in compile.o
"_gc_stop", referenced from:
_main in compile.o
"_llvm_gcda_emit_arcs", referenced from:
___llvm_gcov_writeout in log.o
"_llvm_gcda_emit_function", referenced from:
___llvm_gcov_writeout in log.o
"_llvm_gcda_end_file", referenced from:
___llvm_gcov_writeout in log.o
"_llvm_gcda_start_file", referenced from:
___llvm_gcov_writeout in log.o
"_llvm_gcda_summary_info", referenced from:
___llvm_gcov_writeout in log.o
"_llvm_gcov_init", referenced from:
___llvm_gcov_init in log.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm a missing a gc.o file or is there something else I'm missing?
The text was updated successfully, but these errors were encountered:
Hi,
I'm novice on C. First of all, sorry if the question might look basic, but I'm confused with an error message trying to link LLVM IR code with gc.
Here is the context:
llc -filetype=obj compile.ll
clang compile.o gc/build/src/log.o -o compile
I'm a missing a gc.o file or is there something else I'm missing?
The text was updated successfully, but these errors were encountered: