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

dev-lang/ispc-1.8.2: .../InstIterator.h: No such file or directory #1096

Closed
toralf opened this issue Sep 9, 2015 · 5 comments
Closed

dev-lang/ispc-1.8.2: .../InstIterator.h: No such file or directory #1096

toralf opened this issue Sep 9, 2015 · 5 comments

Comments

@toralf
Copy link

toralf commented Sep 9, 2015

  1. Add $LLVM_HOME/bin-3.5/bin path to your PATH.

    echo Updating dependencies
    Updating dependencies
    x86_64-pc-linux-gnu-g++ -MM -march=native -O2 -pipe -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I. -Iobjs/ -I/usr/include -DLLVM_3_3 -Wall -DBUILD_DATE=""20150909"" -DBUILD_VERSION="""no_version_info""" -Wno-sign-compare -Wno-unused-function -Werror ast.cpp builtins.cpp cbackend.cpp ctx.cpp decl.cpp expr.cpp func.cpp ispc.cpp llvmutil.cpp main.cpp module.cpp opt.cpp stmt.cpp sym.cpp type.cpp util.cpp | sed 's_^([a-z])_objs/\1_g' > depend
    cbackend.cpp:71:36: fatal error: llvm/IR/InstIterator.h: No such file or directory
    #include "llvm/IR/InstIterator.h"
    ^

details are in https://bugs.gentoo.org/show_bug.cgi?id=560038

@junghans
Copy link
Contributor

junghans commented Oct 4, 2015

Fixed in master branch, so please create new release.

@dbabokin
Copy link
Collaborator

dbabokin commented Oct 5, 2015

I'm not sure how you compile ISPC, but you are doing it incorrectly. You are adding LLVM 3.5 to the path, but using -DLLVM_3_3 macro, which is obviously incorrect and almost for sure leads to this problem.

@dbabokin
Copy link
Collaborator

dbabokin commented Oct 5, 2015

If you use ispc Makefile as is, it will detect LLVM version you are using and you won't get such problem.

@junghans
Copy link
Contributor

junghans commented Oct 7, 2015

The line

4.) Add $LLVM_HOME/bin-3.5/bin path to your PATH. 

is part of the ispc warning from its Makefile.

I researched the issue a little bit on the gentoo site and it boils down to the fact that ispc-1.8.2 does not compile with llvm-3.3 anymore.

@dbabokin
Copy link
Collaborator

dbabokin commented Oct 7, 2015

v1.8.2 has a problem building with LLVM 3.3, thought it's fixed in trunk.

Also it's NOT recommended to build with stock LLVM 3.3 due to multiple known issues (folder llvm_patches has fixes for these problems, but still).

v1.8.2 binaries are shipped with LLVM 3.6 and it's recommended LLVM version, though 3.4 and 3.5 are also ok.

@dbabokin dbabokin closed this as completed Oct 7, 2015
junghans added a commit to gentoo/gentoo that referenced this issue Oct 7, 2015
Details on github ispc/ispc#1096

Gentoo-Bug: #560038

Package-Manager: portage-2.2.20.1
TemptorSent pushed a commit to TemptorSent/overlay-toolchain-llvm that referenced this issue May 13, 2019
Details on github ispc/ispc#1096

Gentoo-Bug: #560038

Package-Manager: portage-2.2.20.1
TemptorSent pushed a commit to TemptorSent/overlay-toolchain-llvm that referenced this issue May 15, 2019
Details on github ispc/ispc#1096

Gentoo-Bug: #560038

Package-Manager: portage-2.2.20.1
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