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

Labelmap and llvm-link fail #47

Open
tawfiqabuaita1 opened this issue May 21, 2022 · 0 comments
Open

Labelmap and llvm-link fail #47

tawfiqabuaita1 opened this issue May 21, 2022 · 0 comments

Comments

@tawfiqabuaita1
Copy link

tawfiqabuaita1 commented May 21, 2022

Hi,

I am trying to run some benchmarks with LLVM-Tracer. They use the header file "ap_int.h" and it seems that it is causing a problem when generating the labelmap and when running llvm-link. I am using LLVM and Clang version 3.4.

When generating labelmap, it gives the following error: /usr/lib/llvm-3.4/include/clang/AST/Decl.h:130: llvm::String clang::NamedDecl::getName() const: Assertion 'Name.isIdentifier() && "Name not a simple identifier"' failed. Aborted (core dumped)

Then when running llvm-link it gives some errors that say: undefined reference to 'std::ios_base::Init::Init(). But maybe this is because labelmap failed in the first place.

Here are the two commands I am using:

To generate labelmap:

${TRACER_HOME}/bin/get-labeled-stmts harness.cpp -- -Iinclude -Isrc -Icommon -I/usr/lib/gcc/x86_64-linux-gnu/3.4.6/include -I${LLVM_HOME}/lib/clang/3.4/include

To run LLVM link:

llvm-link-3.4 -o full.llvm harness-opt.llvm ${TRACER_HOME}/profile-func/trace_logger.llvm

I am specifically trying to run rodinia-hls benchmarks after I modified them to run on the CPU: https://github.com/SFU-HiAccel/rodinia-hls

The benchmarks that do not have "ap_int.h" included work well, and when I try to comment out "ap_int.h" then the labelmap will execute correctly but the compilation will give errors of course because of the missing header file, so I believe this header file is causing the problem.

This might be more related to the benchmarks I am using so I understand if you don't have a solution in mind but any suggestion will be helpful. Thanks in advance!

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

1 participant