Skip to content

Crate build fails with message: "recipe for target 'zic' failed" #54

@rasouli

Description

@rasouli

Hi,

I added postgres-parser crate version 0.2.3 as dependency and it failed when cargo build was issued with the following errors:

  [stderr] Writing bitcode...
  [stderr] /usr/bin/ld: skipping incompatible ../../src/common/libpgcommon.a when searching for -lpgcommon
  [stderr] /usr/bin/ld: cannot find -lpgcommon
  [stderr] /usr/bin/ld: skipping incompatible ../../src/port/libpgport.a when searching for -lpgport
  [stderr] /usr/bin/ld: cannot find -lpgport
  [stderr] clang: error: linker command failed with exit code 1 (use -v to see invocation)
  [stderr] make[2]: *** [zic] Error 1
  [stderr] make[1]: *** [all-timezone-recurse] Error 2
  [stderr] make: *** [all-src-recurse] Error 2
  [stderr] + exit 1
  Error: Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }

I am building the crate on ubuntu 18.04.5 LTS and I have gone through installing required dependencies, but I cannot figure out what has gone wrong here. I would appreciate if you can give your thoughts on this. Please kindly find the full build log in build.log.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions