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
1.8.2-r1 : builtins.cpp:794:86: error: conversion from ‘llvm::ErrorOr<std::unique_ptr<llvm::Module> >’ to non-scalar type ‘llvm::ErrorOr<llvm::Module*>’ requested #1106
Comments
What gcc version is it? |
gcc-4.8.5, glibc-2.21-r1 and b/c it is Gentoo - all is build from source (using the ebuild from Gentoo): tor-relay / # emerge --info llvm Portage 2.2.23 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.5, glibc-2.21-r1, 4.2.3-hardened-r1 x86_64)
System uname: Linux-4.2.3-hardened-r1-x86_64-Intel-R-_Core-TM-i7-3770_CPU@_3.40GHz-with-gentoo-2.2 local gentoo ACCEPT_KEYWORDS="amd64 ~amd64"
sys-devel/llvm-3.7.0-r1::gentoo was built with the following: |
I'm not familiar with Gentoo internals, so I'm not sure what dev-lang/ispc-1.8.2-r1 means. I.e. what git revision it's based on? What makefile is used for the build? |
Gentoo uses ispc-1.8.2 the
|
At the time of ISPC 1.8.2, LLVM 3.7 was not released. I see 2 bugs preventing compiling with LLVM 3.7:
I think the easiest way to solve the problem, is to use LLVm 3.6, which is also reasonably new for 1.8.2. |
I really don't want to patch more than two think into the Gentoo package. Couldn't you just make a new release? |
We'll do new release some time soon the most likely, but not right now. Why not building with LLVM 3.6? |
Gentoo Linux system now come with llvm-3.7 and we cannot hold back that package update due to ispc. |
In this case applying the patches I've mentioned is perfectly fine and Current trunk has too many regressions to release right now. On Tue, Oct 20, 2015 at 6:49 PM, Christoph Junghans <
|
Details on github ispc/ispc#1106 Gentoo-Bug: #562630 Package-Manager: portage-2.2.20.1
I blocked the build with llvm-3.7 for now! Please mail me a patch and I can bump it again! |
I failed to located your email. Here's the patch: https://goo.gl/GXcCiR Let me know if you have any other issues. |
@toralf : Can you test that patch? |
Details on github ispc/ispc#1106 Gentoo-Bug: #562630 Package-Manager: portage-2.2.20.1
Done, this issue can be closed now! |
Details on github ispc/ispc#1106 Gentoo-Bug: #562630 Package-Manager: portage-2.2.20.1
Details on github ispc/ispc#1106 Gentoo-Bug: #562630 Package-Manager: portage-2.2.20.1
Details on github ispc/ispc#1106 Gentoo-Bug: #562630 Package-Manager: portage-2.2.20.1
Details on github ispc/ispc#1106 Gentoo-Bug: #562630 Package-Manager: portage-2.2.20.1
origin is in https://bugs.gentoo.org/show_bug.cgi?id=562630 ::
x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe -I/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I. -Iobjs/ -I/usr/include -DLLVM_3_7 -Wall -DBUILD_DATE=""20151009"" -DBUILD_VERSION="""no_version_info""" -Wno-sign-compare -Wno-unused-function -Werror -std=c++11 -Wno-c99-extensions -Wno-deprecated-register -o objs/builtins.o -c builtins.cpp
builtins.cpp: In function ‘void AddBitcodeToModule(const unsigned char_, int, llvm::Module_, SymbolTable_, bool)’:
builtins.cpp:794:86: error: conversion from ‘llvm::ErrorOrstd::unique_ptr<llvm::Module >’ to non-scalar type ‘llvm::ErrorOrllvm::Module_’ requested
::ErrorOr<llvm::Module *> ModuleOrErr = llvm::parseBitcodeFile(bcBuf, *g->ctx);
The text was updated successfully, but these errors were encountered: