Skip to content

Undefined symbols #1

@aaalloc

Description

@aaalloc

Hi,

I'm trying to use this driver for my own OS but I'm getting stuck at compilation because it can't resolve dma-api functions, the error I'm getting at link stage

  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: rust-lld: error: undefined symbol: __dma_api_map
          >>> referenced by lib.rs:74 (src/lib.rs:74)
          >>>               dma_api-70fbb1d09593de58.dma_api.acd0ae003bd0f6fb-cgu.0.rcgu.o:(dma_api::map) in archive /Users/yanovskyy/Documents/projects/toy-os-true/os/target/riscv64gc-unknown-none-elf/release/deps/libdma_api-70fbb1d09593de58.rlib

          rust-lld: error: undefined symbol: __dma_api_alloc
          >>> referenced by lib.rs:90 (src/lib.rs:90)
          >>>               dma_api-70fbb1d09593de58.dma_api.acd0ae003bd0f6fb-cgu.0.rcgu.o:(dma_api::alloc) in archive /Users/yanovskyy/Documents/projects/toy-os-true/os/target/riscv64gc-unknown-none-elf/release/deps/libdma_api-70fbb1d09593de58.rlib

          rust-lld: error: undefined symbol: __dma_api_flush
          >>> referenced by lib.rs:82 (src/lib.rs:82)
          >>>               dma_api-70fbb1d09593de58.dma_api.acd0ae003bd0f6fb-cgu.0.rcgu.o:(dma_api::flush) in archive /Users/yanovskyy/Documents/projects/toy-os-true/os/target/riscv64gc-unknown-none-elf/release/deps/libdma_api-70fbb1d09593de58.rlib
          >>> referenced by lib.rs:82 (src/lib.rs:82)
          >>>               dma_api-70fbb1d09593de58.dma_api.acd0ae003bd0f6fb-cgu.0.rcgu.o:(<dma_api::Direction>::confirm_write) in archive /Users/yanovskyy/Documents/projects/toy-os-true/os/target/riscv64gc-unknown-none-elf/release/deps/libdma_api-70fbb1d09593de58.rlib

          rust-lld: error: undefined symbol: __dma_api_unmap
          >>> referenced by lib.rs:78 (src/lib.rs:78)
          >>>               dma_api-70fbb1d09593de58.dma_api.acd0ae003bd0f6fb-cgu.0.rcgu.o:(dma_api::unmap) in archive /Users/yanovskyy/Documents/projects/toy-os-true/os/target/riscv64gc-unknown-none-elf/release/deps/libdma_api-70fbb1d09593de58.rlib

          rust-lld: error: undefined symbol: __dma_api_dealloc
          >>> referenced by lib.rs:94 (src/lib.rs:94)
          >>>               dma_api-70fbb1d09593de58.dma_api.acd0ae003bd0f6fb-cgu.0.rcgu.o:(dma_api::dealloc) in archive /Users/yanovskyy/Documents/projects/toy-os-true/os/target/riscv64gc-unknown-none-elf/release/deps/libdma_api-70fbb1d09593de58.rlib

          rust-lld: error: undefined symbol: __dma_api_invalidate
          >>> referenced by mod.rs:10 (src/dma/mod.rs:10)
          >>>               dma_api-70fbb1d09593de58.dma_api.acd0ae003bd0f6fb-cgu.0.rcgu.o:(<dma_api::Direction>::preper_read) in archive /Users/yanovskyy/Documents/projects/toy-os-true/os/target/riscv64gc-unknown-none-elf/release/deps/libdma_api-70fbb1d09593de58.rlib

any idea on how to solve this ?

Thank you !

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