Skip to content

x86_64-pc-solaris linking error /usr/bin/ld: cannot find -l??? : No such file or directory #1729

@Wyvern

Description

@Wyvern

cross build x86_64-pc-solaris with -Zbuild-std got error below:

error: linking with `cc` failed: exit status: 1
  │
  ├ note:  "cc" "-m64" "<1 object files omitted>" "-Wl,-z,ignore" "-Wl,-Bstatic" "/home/runner/work/Img/Img/build-dir/x86_64-pc-solaris/src/build/compiler_builtins/bb811be13cdd77e1/deps/libcompiler_builtins-bb811be13cdd77e1.rlib" "-Wl,-Bdynamic" "-lsendfile" "-llgrp" "-lsocket" "-lposix4" "-lpthread" "-lresolv" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lsendfile" "-llgrp" "-L" "/tmp/rustcgnN4cf/raw-dylibs" "-o" "/home/runner/work/Img/Img/build-dir/x86_64-pc-solaris/src/build/Img/06d38d5eff3f8de0/deps/Img" "-Wl,--strip-all" "-nodefaultlibs"
  ├ note: some arguments are omitted. use `--verbose` to show all linker arguments
  ╰ note: /usr/bin/ld: warning: -z ignore ignored
          /usr/bin/ld: cannot find -lsendfile: No such file or directory
          /usr/bin/ld: cannot find -llgrp: No such file or directory
          /usr/bin/ld: cannot find -lsocket: No such file or directory
          /usr/bin/ld: cannot find -lposix4: No such file or directory
          collect2: error: ld returned 1 exit status

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