Skip to content

Build fails when building in ./build directory: "/bin/ld: cannot open linker script file libzwerg.map: No such file or directory" #38

@ackalker

Description

@ackalker

Trying to build dwgrep from Git master using a common procedure used with CMake projects:

$ # In dwgrep Git checkout directory
$ mkdir build && cd build
$ cmake ..
$ make

I get the following error:

Scanning dependencies of target libzwerg
[ 87%] Linking CXX shared library libzwerg.so
/bin/ld: cannot open linker script file libzwerg.map: No such file or directory
collect2: error: ld returned 1 exit status

I've read the comment in libzwerg/CMakeLists.txt:99 about the problem of specifying a dependency between the DSO and its map file. I was wondering if any of the links below could be of help with fixing this problem.

[CMake] How to use a generated linker map with a shared library?
Re: [CMake] How to use a generated linker map with a shared library?
[CMake] adding dependencies on generated files to source code files

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