Skip to content

Could not determine the host path corresponding to '/work/windows/.libs' #320

@tresf

Description

@tresf

This is a request for help, not a bug report.

When cross-compiling hidapi using llvm-mingw wrapper (a mingw-w64 wrapper around clang, capable of producing ARM64 binaries for Windows, it shows the following error:

Bad output from llvm-mingw build logs:

  make[2]: Entering directory '/work/hidtest'
    CCLD     hidtest.exe
- libtool:   error: Could not determine the host path corresponding to
- libtool:   error:   '/work/windows/.libs'
  libtool:   error: Continuing, but uninstalled executables may not work.
  libtool:   error: Could not determine the host path corresponding to
  libtool:   error:   '/work/windows/.libs:/usr/local/lib:/usr/local/bin'
  libtool:   error: Continuing, but uninstalled executables may not work.

I assume this is due to /work/hidtest/hidtest.exe not being knowledgeable of /work/windows/.libs, but if that's the case, why does this NOT fail when building using mingw-w64 directly?

Good output from mingw-w64 build logs:

make[2]: Entering directory '/work/hidtest'
  CC       test.o
  CCLD     hidtest.exe
make[2]: Leaving directory '/work/hidtest'
make[2]: Entering directory '/work'
make[2]: Leaving directory '/work'
make[1]: Leaving directory '/work'

Naturally, the build produces usable binaries, only the hidtest.exe seems to fail, which is benign to this particular build system.

Questions:

  1. Can I configure make to skip building hidtest.exe to eliminate the error?
  2. What types of things can I look at to patch this? Why would the build system fail for this environment only?

Note 1: As a reminder, llvm-mingw uses clang under the covers, so if there are any GNU-specific assumptions in the compiler, I'd be happy to dig deeper. Any help is appreciated!

Note 2: I've searched before asking and found #187, #68. Neither seem to be the same exact problem, but I wanted to link them incase they are. 🍻

Metadata

Metadata

Assignees

No one assigned

    Labels

    build system/CIAnything related to building the project or running on CIquestionInformation is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions