Git Product home page Git Product logo

Comments (8)

seibert avatar seibert commented on July 23, 2024

This kind of error would imply that gcc is not compiling with C++11 features enabled. What is the output from:

llvm-config --cxxflags

from llvmlite.

yaniv256 avatar yaniv256 commented on July 23, 2024
$ llvm-config --cxxflags
-I/usr/lib/llvm-3.5/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -O2 -fomit-frame-pointer -fvisibility-inlines-hidden -fno-exceptions -fPIC -Woverloaded-virtual -ffunction-sections -fdata-sections -Wcast-qual

from llvmlite.

seibert avatar seibert commented on July 23, 2024

Hmm... We should be adding the appropriate C++11 flag somewhere. As a workaround, can you try adding -std=c++11 to this line: https://github.com/numba/llvmlite/blob/master/ffi/Makefile.linux#L6

from llvmlite.

yaniv256 avatar yaniv256 commented on July 23, 2024

Thanks! Seems like it worked. Compile now does not raise any errors. The next error i'm getting is

/usr/bin/ld: cannot find -ledit

from llvmlite.

yaniv256 avatar yaniv256 commented on July 23, 2024

Found it. it was a missing dependency on libedit-dev. Now it it seems the build completes. By the way, Linker.h needed a symbolic link because LLVM moved it up one dir.

from llvmlite.

seibert avatar seibert commented on July 23, 2024

Oh, now I remember the source of this issue! The problem is that Ubuntu 14.04 ships a pre-release version of LLVM 3.5. It is from 5 months prior to the official LLVM 3.5 release, and there are various differences, like ones you have discovered.

You should be aware that we do not test Numba with this pre-release version of LLVM. If you run into trouble, you'll want to build the official LLVM release from scratch.

from llvmlite.

yaniv256 avatar yaniv256 commented on July 23, 2024

That seems to be the case. Apt-get fetched svn201651, dated Feb 19, but the release is Sep 3.
At any rate, I already managed to compile with the shipped version. LLVM have a binary for ubuntu, and Debian looks like it ships something more recent (it has the libedit dependency), so these are two options to look at before building. Something is broken in the supply chain in Ubuntu. Maybe put a note on the readme?

from llvmlite.

seibert avatar seibert commented on July 23, 2024

Yes, if an Ubuntu LTS release is shipping a pre-release LLVM, we should warn people.

from llvmlite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.