Coder Social home page Coder Social logo

llvm-config problem under Ubuntu 13.10 about nvc HOT 8 CLOSED

nickg avatar nickg commented on August 24, 2024
llvm-config problem under Ubuntu 13.10

from nvc.

Comments (8)

nickg avatar nickg commented on August 24, 2024

Can you find the relevant bit of config.log which has the error message? The following should do it:

grep -A 5 "checking for LLVM" config.log

from nvc.

tmeissner avatar tmeissner commented on August 24, 2024
tmeissner@msn:~/Projects/nvc/build$ grep -A 5 "checking for LLVM" config.log
configure:8174: checking for LLVM (engine bitreader bitwriter)
configure:8196: g++ -o conftest -g -O2     conftest.cpp -lz -ltcl  -lreadline  >&5
In file included from /usr/include/llvm-c/Core.h:18:0,
                 from conftest.cpp:69:
/usr/include/llvm/Support/DataTypes.h:49:3: error: #error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
 # error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
--
configure:8222: checking for LLVM shared library
configure:8250: g++ -o conftest -g -O2     conftest.cpp -lz -ltcl  -lreadline -Wl,-rpath  -lLLVM- >&5
In file included from /usr/include/llvm-c/Core.h:18:0,
                 from conftest.cpp:69:
/usr/include/llvm/Support/DataTypes.h:49:3: error: #error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
 # error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"

from nvc.

nickg avatar nickg commented on August 24, 2024

I tried configuring on Ubuntu 3.10 but ran into a different problem (fixed above).

In your case it hasn't captured any output from llvm-config. Did you run configure with --with-llvm=...? Can you try without it after doing a git pull to get the above change?

from nvc.

tmeissner avatar tmeissner commented on August 24, 2024

I did run configure with and without --with-llvm=... with your new patch included but nothing changes. I don't understand why there is no output of llvm-config, because the tool is there and in the $PATH.

from nvc.

nickg avatar nickg commented on August 24, 2024

You may need to run ./autogen.sh again to regenerate the configure script

from nvc.

tmeissner avatar tmeissner commented on August 24, 2024

Now configure runs. So, when doing make I get the following:

Making all in thirdparty
  CC       fstapi.o
  CC       lz4.o
  AR       libfst.a
  CC       lxt_write.o
In file included from .././../thirdparty/lxt_write.c:24:0:
.././../thirdparty/lxt_write.h:37:19: fatal error: bzlib.h: No such file or directory

which can be fixed by installing the libbz2-dev package.

Then it runs until this error:

AR       libnvc.a
  CC       nvc.o
  CXXLD    nvc
/usr/bin/ld: rt/libjit.a(libjit_a-jit.o): undefined reference to symbol 'dlopen@@GLIBC_2.1'
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libdl.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [nvc] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

from nvc.

nickg avatar nickg commented on August 24, 2024

Can you try again after pulling and re-running autogen.sh, etc.?

from nvc.

tmeissner avatar tmeissner commented on August 24, 2024

Now it works and all tests are passed. Thanks :)

from nvc.

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.