Open
Description
I'm trying to compile the code below:
int main () {
return 1;
}
With Clang/LLVM 18.6.1 targeting Synopsys ARC with the following command:
$ clang --target=arc main.c -v
clang version 18.1.6 (https://github.com/llvm/llvm-project.git 1118c2e05e67a36ed8ca250524525cdb66a55256)
Target: arc
Thread model: posix
InstalledDir: /home/giulia/llvm-project/build/bin
"/home/giulia/llvm-project/build/bin/clang-18" -cc1 -triple arc -emit-obj -mrelax-all -dumpdir a- -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name main.c -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -debugger-tuning=gdb -fdebug-compilation-dir=/home/giulia/arc_example -v -fcoverage-compilation-dir=/home/giulia/arc_example -resource-dir /home/giulia/llvm-project/build/lib/clang/18 -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcolor-diagnostics -faddrsig -o /tmp/main-1c1923.o -x c main.c
clang -cc1 version 18.1.6 based upon LLVM 18.1.6 default target x86_64-unknown-linux-gnu
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/home/giulia/llvm-project/build/lib/clang/18/include
/usr/include
End of search list.
error: unable to interface with target machine
1 error generated.
Is the target functional?