Skip to content

"ld: unknown option: -nostdlib" on macos #4959

Closed

Description

@stellaraccident

Looks like the linker tool updates need some more attention paid to them for MacOS.

2021-02-27T23:26:09.5427130Z FAILED: iree/test/e2e/tosa_ops/check_dylib-llvm-aot_dylib_floor.mlir_module.vmfb 
2021-02-27T23:26:09.5442770Z cd /Users/runner/work/iree/iree/iree-build/iree/test/e2e/tosa_ops && /Users/runner/work/iree/iree/iree-build/iree/tools/iree-translate -iree-mlir-to-vm-bytecode-module --iree-hal-target-backends=dylib-llvm-aot /Users/runner/work/iree/iree/main_checkout/iree/test/e2e/tosa_ops/floor.mlir -o check_dylib-llvm-aot_dylib_floor.mlir_module.vmfb
2021-02-27T23:26:09.5445370Z ld: unknown option: -nostdlib
2021-02-27T23:26:09.5446290Z Linking failed; command line returned exit code 256:
2021-02-27T23:26:09.5446940Z 
2021-02-27T23:26:09.5448850Z /usr/bin/ld -nostdlib -shared -undefined suppress -o /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tensor_float_ex_dispatch_0-7a32af.so -dylib -flat_namespace /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tensor_float_ex_dispatch_0-7a32af.obj
2021-02-27T23:26:09.5450030Z 
2021-02-27T23:26:09.5451220Z /Users/runner/work/iree/iree/main_checkout/iree/test/e2e/tosa_ops/floor.mlir:3:13: error: failed to link executable and generate target dylib using linker toolchain /usr/bin/ld
2021-02-27T23:26:09.5453060Z   %result = "tosa.floor"(%0) : (tensor<4xf32>) -> tensor<4xf32>

Activity

  1. added
    platform/macos 🍎
    on Feb 28, 2021
  2. ScottTodd commented on Mar 1, 2021

    @ScottTodd
    Member

    Also discussed here: #4719 (comment)

  3. added
    bug 🐞
    codegen/llvm
    on Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞codegen/llvmplatform/macos 🍎

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions