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

so many errors #49

Closed
lewisl opened this issue Mar 2, 2015 · 2 comments
Closed

so many errors #49

lewisl opened this issue Mar 2, 2015 · 2 comments

Comments

@lewisl
Copy link

lewisl commented Mar 2, 2015

You'll note that the problem is not with LLVM_CONFIG.

Just lots of compile errors. On OS X 10.10.2. I have installed llvm 3.6 binaries from llvm.org.

I have no clue. Hopefully someone other than pitrou will actually answer.

Here is the output:

pip3 install llvmlite
Collecting llvmlite
Using cached llvmlite-0.2.2.tar.gz
Installing collected packages: llvmlite
Running setup.py install for llvmlite
got version from file /private/var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-build-fvo2cpt1/llvmlite/llvmlite/_version.py {'full': 'c6e72f55cb10bccdcba2f31e9d52c528b12c5a0e', 'version': '0.2.2'}
/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 /private/var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-build-fvo2cpt1/llvmlite/ffi/build.py
LLVM version... 3.6.0
MACOSX_DEPLOYMENT_TARGET=10.7 clang++ -std=c++11 -stdlib=libc++ -dynamiclib /usr/local/clangllvm/bin/llvm-config --cxxflags assembly.cpp bitcode.cpp core.cpp initfini.cpp module.cpp value.cpp executionengine.cpp transforms.cpp passmanagers.cpp targets.cpp dylib.cpp linker.cpp -o libllvmlite.dylib /usr/local/clangllvm/bin/llvm-config --ldflags /usr/local/clangllvm/bin/llvm-config --system-libs --libs all
assembly.cpp:25:17: error: use of undeclared identifier 'ParseAssemblyString'
Module m = ParseAssemblyString(ir, NULL, error, *unwrap(context));
^
1 error generated.
executionengine.cpp:11:5: error: use of undeclared identifier 'LLVMLinkInJIT'; did you mean 'LLVMLinkInMCJIT'?
LLVMLinkInJIT();
^~~~~~~~~~~~~
LLVMLinkInMCJIT
/usr/local/clangllvm/include/llvm-c/ExecutionEngine.h:37:6: note: 'LLVMLinkInMCJIT' declared here
void LLVMLinkInMCJIT(void);
^
executionengine.cpp:70:25: error: no matching constructor for initialization of 'llvm::EngineBuilder'
llvm::EngineBuilder eb(llvm::unwrap(M));
^ ~~~~~~~~~~~~~~~
/usr/local/clangllvm/include/llvm/ExecutionEngine/ExecutionEngine.h:490:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'llvm::Module *' to 'const llvm::EngineBuilder' for 1st argument
class EngineBuilder {
^
/usr/local/clangllvm/include/llvm/ExecutionEngine/ExecutionEngine.h:510:3: note: candidate constructor not viable: no known conversion from 'llvm::Module *' to 'std::unique_ptr' for 1st argument
EngineBuilder(std::unique_ptr M);
^
2 errors generated.
linker.cpp:13:19: error: no matching function for call to 'LinkModules'
bool failed = Linker::LinkModules(unwrap(Dest), unwrap(Src), Mode,
^~~~~~~~~~~~~~~~~~~
/usr/local/clangllvm/include/llvm/Linker/Linker.h:73:15: note: candidate function not viable: requires 3 arguments, but 4 were provided
static bool LinkModules(Module *Dest, Module *Src,
^
/usr/local/clangllvm/include/llvm/Linker/Linker.h:76:15: note: candidate function not viable: requires 2 arguments, but 4 were provided
static bool LinkModules(Module *Dest, Module *Src);
^
1 error generated.
make: *
* [all] Error 1
Traceback (most recent call last):
File "/private/var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-build-fvo2cpt1/llvmlite/ffi/build.py", line 112, in
main()
File "/private/var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-build-fvo2cpt1/llvmlite/ffi/build.py", line 106, in main
main_posix('osx', '.dylib')
File "/private/var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-build-fvo2cpt1/llvmlite/ffi/build.py", line 96, in main_posix
subprocess.check_call(['make', '-f', makefile])
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 561, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-f', 'Makefile.osx']' returned non-zero exit status 2
error: command '/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4' failed with exit status 1
Complete output from command /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 -c "import setuptools, tokenize;file='/private/var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-build-fvo2cpt1/llvmlite/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-gg7wjhi2-record/install-record.txt --single-version-externally-managed --compile:
running install

running build

got version from file /private/var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-build-fvo2cpt1/llvmlite/llvmlite/_version.py {'full': 'c6e72f55cb10bccdcba2f31e9d52c528b12c5a0e', 'version': '0.2.2'}

running build_ext

/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 /private/var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-build-fvo2cpt1/llvmlite/ffi/build.py

LLVM version... 3.6.0

MACOSX_DEPLOYMENT_TARGET=10.7 clang++ -std=c++11 -stdlib=libc++ -dynamiclib `/usr/local/clangllvm/bin/llvm-config --cxxflags` assembly.cpp bitcode.cpp core.cpp initfini.cpp module.cpp value.cpp executionengine.cpp transforms.cpp passmanagers.cpp targets.cpp dylib.cpp linker.cpp -o libllvmlite.dylib `/usr/local/clangllvm/bin/llvm-config --ldflags` `/usr/local/clangllvm/bin/llvm-config --system-libs --libs all`

assembly.cpp:25:17: error: use of undeclared identifier 'ParseAssemblyString'

    Module *m = ParseAssemblyString(ir, NULL, error, *unwrap(context));

                ^

1 error generated.

executionengine.cpp:11:5: error: use of undeclared identifier 'LLVMLinkInJIT'; did you mean 'LLVMLinkInMCJIT'?

    LLVMLinkInJIT();

    ^~~~~~~~~~~~~

    LLVMLinkInMCJIT

/usr/local/clangllvm/include/llvm-c/ExecutionEngine.h:37:6: note: 'LLVMLinkInMCJIT' declared here

void LLVMLinkInMCJIT(void);

     ^

executionengine.cpp:70:25: error: no matching constructor for initialization of 'llvm::EngineBuilder'

    llvm::EngineBuilder eb(llvm::unwrap(M));

                        ^  ~~~~~~~~~~~~~~~

/usr/local/clangllvm/include/llvm/ExecutionEngine/ExecutionEngine.h:490:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'llvm::Module *' to 'const llvm::EngineBuilder' for 1st argument

class EngineBuilder {

      ^

/usr/local/clangllvm/include/llvm/ExecutionEngine/ExecutionEngine.h:510:3: note: candidate constructor not viable: no known conversion from 'llvm::Module *' to 'std::unique_ptr<Module>' for 1st argument

  EngineBuilder(std::unique_ptr<Module> M);

  ^

2 errors generated.

linker.cpp:13:19: error: no matching function for call to 'LinkModules'

    bool failed = Linker::LinkModules(unwrap(Dest), unwrap(Src), Mode,

                  ^~~~~~~~~~~~~~~~~~~

/usr/local/clangllvm/include/llvm/Linker/Linker.h:73:15: note: candidate function not viable: requires 3 arguments, but 4 were provided

  static bool LinkModules(Module *Dest, Module *Src,

              ^

/usr/local/clangllvm/include/llvm/Linker/Linker.h:76:15: note: candidate function not viable: requires 2 arguments, but 4 were provided

  static bool LinkModules(Module *Dest, Module *Src);

              ^

1 error generated.

make: *** [all] Error 1

Traceback (most recent call last):

  File "/private/var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-build-fvo2cpt1/llvmlite/ffi/build.py", line 112, in <module>

    main()

  File "/private/var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-build-fvo2cpt1/llvmlite/ffi/build.py", line 106, in main

    main_posix('osx', '.dylib')

  File "/private/var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-build-fvo2cpt1/llvmlite/ffi/build.py", line 96, in main_posix

    subprocess.check_call(['make', '-f', makefile])

  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 561, in check_call

    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['make', '-f', 'Makefile.osx']' returned non-zero exit status 2

error: command '/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4' failed with exit status 1

----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 -c "import setuptools, tokenize;__file__='/private/var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-build-fvo2cpt1/llvmlite/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-gg7wjhi2-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/fs/8cyvwzv51jbddydgh6_lgslr0000gn/T/pip-build-fvo2cpt1/llvmlite
@lewisl
Copy link
Author

lewisl commented Mar 2, 2015

It would be sort of nice if you pointed out that you didn't support LLVM 3.6. A lot of searches finally turned that up.

Now I have the problem that import numba doesn't work: can't find the dynlib for llvmlite.

@lewisl lewisl closed this as completed Mar 2, 2015
@lewisl
Copy link
Author

lewisl commented Mar 2, 2015

Numba import problem caused by standard Python installation altered with conda. Had to reinstall Python. Fixed. I'd say either go all the way with Anaconda or stay pure. Don't mix.

@lewisl lewisl reopened this Mar 2, 2015
@lewisl lewisl closed this as completed Mar 2, 2015
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