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

Fail to build MICA #9

Closed
twang15 opened this issue Jul 13, 2018 · 5 comments
Closed

Fail to build MICA #9

twang15 opened this issue Jul 13, 2018 · 5 comments

Comments

@twang15
Copy link

twang15 commented Jul 13, 2018

I download Pin-2.10-45467 (https://drive.google.com/file/d/0B-AkmAlNRsymNVl1RndzbFVpZEU/view?usp=sharing), and follow instructions to build mica.

However, make fails with the following messages:

Makefile:7: ../Config/makefile.config: No such file or directory
Makefile:8: /Config/makefile.default.rules: No such file or directory
make: *** No rule to make target `/Config/makefile.default.rules'. Stop.

The reason is that mica's Makefile tries to find makefile.config and makefile.default.rules under ../Config, which does not exist.

@twang15
Copy link
Author

twang15 commented Jul 13, 2018

The version of MICA is v1.0 in this repository, not the one (mica-v0.4) in the downloaded Pin-2.10-45467.

@twang15
Copy link
Author

twang15 commented Jul 13, 2018

Apparently, the documentation should be updated along with the code.

To build MICA 1.0, we need Pin3 from Intel, https://software.intel.com/en-us/articles/pin-a-binary-instrumentation-tool-downloads

After download Pin3, put mica-1.0 under source/tools, and then build it.

@twang15
Copy link
Author

twang15 commented Jul 13, 2018

With GCC, the build would fail with -Werror flags, which can be removed it from source/tool/Config/makefile.unix.config, line 109

@twang15
Copy link
Author

twang15 commented Jul 13, 2018

To run MICA with ls (replace it with other app of your interest), do the following:

  1. cp mica.conf.example mica.conf
  2. add extras/xed-intel64/lib/, intel64/runtime/pincrt/, intel64/lib-ext/ into LD_LIBRARY_PATH
  3. cd source/tools/mica_v1.0/
  4. cp obj-intel64/mica.so ../
  5. ../../../pin -t mica.so -- ls -l

@twang15 twang15 mentioned this issue Jul 13, 2018
@amirjamez
Copy link
Collaborator

Thanks, @twang15 for mentioning this. I confirm this is the correct way.

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

2 participants