Skip to content

Regression configuring IGC: INSTALL TARGETS given no LIBRARY DESTINATION #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dvrogozh opened this issue Mar 20, 2019 · 8 comments
Closed

Comments

@dvrogozh
Copy link
Contributor

I am configuring IGC as follows:
cmake -DLLVM_DIR=/home/dvrogozh/git/github/install.llvm8/lib/cmake/llvm -DCMAKE_INSTALL_PREFIX=/home/dvrogozh/git/github/install.llvm8 -DIGC_PREFERRED_LLVM_VERSION=8 ../igc/IGC

And get this error:

CMake Error at /home/dvrogozh/git/github/tmp/igc/visa/iga/IGALibrary/CMakeLists.txt:336 (INSTALL):
  INSTALL TARGETS given no LIBRARY DESTINATION for shared library target
  "IGA_DLL".

This is a regression:

I did not bisect yet.

@dvrogozh
Copy link
Contributor Author

@tripzero, @tjaalton : FYI

@paigeale
Copy link
Contributor

Hey Dmitry,

Yes I saw this yesterday. This regression is caused by adding the GNUInstallDirs change (0770a37) I reverted the change internally and will be porting the change here today.

@dvrogozh
Copy link
Contributor Author

I think 0770a37 might have 2 issues:

  1. Some paths likely miss include(GnuInstallDirs) as a result these variables are simply not initialized by default. I would suggest to have single GnuInstallDirs include on the uppermost level if possible.
  2. When you specify installation paths via GnuInstallDirs variables, you need to write this:
    LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}
    instead of:
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    since the later one might be relative to CMAKE_INSTALL_PREFIX

@tripzero
Copy link

reverting patch may be a good temporary workaround, but are you working on debugging the issue for a real fix? One way to check if GnuInstallDirs is working is to do a message("muh libdir: ${CMAKE_INSTALL_LIBDIR}") right before the line with the error and make sure the variable is set when running cmake.

@dvrogozh
Copy link
Contributor Author

Yes, work is in progress.

@tripzero
Copy link

I also noticed that most of the headers are not being installed with this patch. They appear to be installed with my version though but last time I tried mine, it was a slightly older commit. Did something change where headers are no longer being installed?

@dvrogozh
Copy link
Contributor Author

There was cleanup of header installation targets per #35 request. This was done in 630d16b. In #35 I list the variants of install headers which we had before and after fix. That's the only thing I am aware of regarding headers.

@dvrogozh
Copy link
Contributor Author

The bug in a title got fixed via revert (see 87d61ef). Let's close this one and reopen #74.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants