Skip to content
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

make install not working on latest master #160

Closed
jdetter opened this issue Aug 23, 2016 · 13 comments · Fixed by #164
Closed

make install not working on latest master #160

jdetter opened this issue Aug 23, 2016 · 13 comments · Fixed by #164
Labels
Milestone

Comments

@jdetter
Copy link
Contributor

jdetter commented Aug 23, 2016

On the latest master, make install won't complete on Fedora 23:

[detter@localhost dyninst]$ make install
[  0%] Building DyninstRT
[ 25%] Built target dyninstAPI_RT
[ 51%] Built target dyninstAPI_RT_m32
[ 75%] Built target dyninstAPI_RT_m32_static
[100%] Built target dyninstAPI_RT_static
[  0%] Built target DyninstRT
[  9%] Built target common
[ 10%] Built target dynElf
[ 13%] Built target dynDwarf
[ 14%] Built target symLite
[ 18%] Built target instructionAPI
[ 27%] Built target symtabAPI
[ 47%] Built target parseAPI
[ 56%] Built target pcontrol
[ 62%] Built target stackwalk
[ 68%] Built target patchAPI
[ 95%] Built target dyninstAPI
[ 97%] Built target parseThat
[100%] Built target dynC_API
Install the project...
-- Install configuration: "Debug"
CMake Error at dyninstAPI_RT/cmake_install.cmake:44 (file):
  file INSTALL cannot find
  "/home/detter/Workspace/dyninst/dyninstAPI_RT/CMakeFiles/CMakeRelink.dir/libdyninstAPI_RT.so.9.2.0".
Call Stack (most recent call first):
  cmake_install.cmake:36 (include)



Makefile:61: recipe for target 'install' failed
make: *** [install] Error 1
@jdetter jdetter added the bug label Aug 23, 2016
@jdetter jdetter added this to the Release 9.2.1 milestone Aug 23, 2016
@jdetter
Copy link
Contributor Author

jdetter commented Aug 23, 2016

Is anyone else able to reproduce this or is this a local issue for me?

@wrwilliams
Copy link
Member

Does this persist with a clean cache/clean build?

@jdetter
Copy link
Contributor Author

jdetter commented Aug 25, 2016

I'm having issues with this on Fedora 23 and Ubuntu 16.04, however it seems to be a non issue on RHEL 6.

@wrwilliams
Copy link
Member

What are we generating in that relink directory? Anything that looks remotely sane?

@jdetter
Copy link
Contributor Author

jdetter commented Aug 25, 2016

That relink directory doesn't exist when the install script is ran.

@jdetter
Copy link
Contributor Author

jdetter commented Aug 25, 2016

Sorry wait yes it does, but it's empty.

@jdetter
Copy link
Contributor Author

jdetter commented Aug 25, 2016

@wrwilliams Do you have some extra bandwidth to look at this today? This is kind of blocking my development. If you need an Ubuntu environment, you should be able to log into pepperjack. All of the libraries you should need for dyninst are installed by default except libdwarf.

@jdetter
Copy link
Contributor Author

jdetter commented Aug 25, 2016

All of the libraries are being generated in their respective CMakeFiles/CMakeRelink.dir/ except dyninstAPI_RT. That's the only one that has an empty relink directory.

@wrwilliams
Copy link
Member

make VERBOSE=1 and see what shows up; there's got to be something going weird with the RTlib build.

@jdetter
Copy link
Contributor Author

jdetter commented Aug 25, 2016

I had to change the generated install script to copy from the right location. I'm not sure why it's trying to grab the libraries out of the relink directory. Here is what I changed:

file(INSTALL DESTINATION "/usr/lib" TYPE SHARED_LIBRARY FILES
    "/home/detter/Workspace/dyninst/dyninstAPI_RT/CMakeFiles/CMakeRelink.dir/libdyninstAPI_RT.so.9.2.0"
    "/home/detter/Workspace/dyninst/dyninstAPI_RT/CMakeFiles/CMakeRelink.dir/libdyninstAPI_RT.so.9.2"
    "/home/detter/Workspace/dyninst/dyninstAPI_RT/CMakeFiles/CMakeRelink.dir/libdyninstAPI_RT.so"
    )

to:

file(INSTALL DESTINATION "/usr/lib" TYPE SHARED_LIBRARY FILES
    "/home/detter/Workspace/dyninst/dyninstAPI_RT/libdyninstAPI_RT.so.9.2.0"
    "/home/detter/Workspace/dyninst/dyninstAPI_RT/libdyninstAPI_RT.so.9.2"
    "/home/detter/Workspace/dyninst/dyninstAPI_RT/libdyninstAPI_RT.so"
    )

and now it will install without any issues.

@jdetter
Copy link
Contributor Author

jdetter commented Aug 26, 2016

@pefoley2 It looks like 09b01aa introduced this issue with newer versions of cmake, would you know how to fix it?

@pefoley2
Copy link
Contributor

Odd. Maybe try reverting the file(remove_recurse) change?

@jdetter
Copy link
Contributor Author

jdetter commented Aug 26, 2016

That seems to have fixed the problem, I will open a PR soon with the fix.

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

Successfully merging a pull request may close this issue.

3 participants