harvard-acc / LLVM-Tracer

An LLVM pass to profile dynamic LLVM IR instructions and runtime values
Other
135 stars 35 forks source link

How to set the LLVM_HOME? #44

Open peterhchen opened 2 years ago

peterhchen commented 2 years ago

export LLVM_HOME=/path/to/your/llvm/installation

  1. What is "/llvm/installation" example?
  2. Do we have to build "llvm/installation"?
  3. Can you give us the link of step-by-step how to build "llvm/installtion"?

Thanks, Peter H. Chen

peterhchen commented 2 years ago

My email address: peter,hp.chen@gmail.com Thanks for the help.

xyzsam commented 2 years ago

I recommend you use the Docker image. Installing LLVM-Tracer and LLVM on a regular machine has been notoriously difficult and riddled with system-specific errors that are hard for us to diagnose and debug.

To answer your question: you will need to build and install LLVM and Clang from source. The Dockerfile shows how it is done here, but you can also just follow their installation instructions on the LLVM website.

peterhchen commented 2 years ago

We have old gem5-Aladdin based on old python 2.7 I need to ask system admin to pull the new xyzsam/gem5-Aladdin image

On Wed, Nov 3, 2021 at 10:08 AM Sam Xi @.***> wrote:

I recommend you use the Docker image. Installing LLVM-Tracer and LLVM on a regular machine has been notoriously difficult and riddled with system-specific errors that are hard for us to diagnose and debug.

To answer your question: you will need to build and install LLVM and Clang from source. The Dockerfile shows how it is done here https://github.com/harvard-acc/gem5-aladdin/blob/master/docker/Dockerfile#L73-L98, but you can also just follow their installation instructions on the LLVM website.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/harvard-acc/LLVM-Tracer/issues/44#issuecomment-959740499, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBSBDY45EZAD6N5DB4F7ITUKF3CBANCNFSM5HHZ5BIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Sincerely Yours, Peter H. Chen