Skip to content

Ld error  #27

@diorga

Description

@diorga

I have attempted to compile a small C file using the following command:

clang main.c

I tried using the prebuilt Ubuntu toolchain and the provided docker (pulp-llvm.Dockerfile). However, I always get the following error:

/usr/bin/ld: unrecognised emulation mode: elf32lriscv
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om i386pep i386pe
clang-12: error: ld command failed with exit code 1 (use -v to see invocation)

Is there something I am missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions