Coder Social home page Coder Social logo

Comments (9)

georgebisbas avatar georgebisbas commented on June 15, 2024 1

Hi Uday,

I managed to surpass the issue with FileCheck but now my new issue seems related to this one.
I could not find a solution based on the comments above.
Any help?

Attached you may find my config.log file
config.log

Thank you in advance,
George

False alarm.
I found out that I needed to do
sudo apt install libclang-dev
I thought I have done it before.

Thanks,
--George

from pluto.

bondhugula avatar bondhugula commented on June 15, 2024

It will only work with 3.4. Could you attach your config.log (or paste the relevant lines) when you obtain the error with clang 3.4? Thanks.

from pluto.

ThinhinaneIhadadene avatar ThinhinaneIhadadene commented on June 15, 2024

when I try
./configure
these are the last lines of the output

checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for a sed that does not truncate output... (cached) /bin/sed
checking which clang to use... system
checking for llvm-config... no
configure: error: llvm-config not found
checking for pet/Makefile... no
configure: error: configure in pet/ failed

It doesn't find the clang even though it's installed and it's the 3.4 version.

I tried with a llvm3.4, which i built locally
./configure --with-clang-prefix=/path_to_llvm3.4/build/
i get this :

checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for a sed that does not truncate output... (cached) /bin/sed
checking which clang to use... system
checking for llvm-config... no
checking for main in -lLLVM-3.4svn... no
checking clang/Basic/SourceLocation.h usability... no
checking clang/Basic/SourceLocation.h presence... no
checking for clang/Basic/SourceLocation.h... no
configure: error: clang header file not found
checking for pet/Makefile... no
configure: error: configure in pet/ failed

I hope that this explains the problem, which is that llvm-config and clang aren't being detected.

from pluto.

bondhugula avatar bondhugula commented on June 15, 2024

I actually meant the config.log in the pet directory. Could you paste the relevant lines from pet/config.log. That'll say exactly where exactly it was looking - it's of course clear it can't find it. Also, please don't use the SVN version, but instead the stable release. Do you have an llvm-config in your llvm build/bin?

from pluto.

ThinhinaneIhadadene avatar ThinhinaneIhadadene commented on June 15, 2024

Sorry, I didn't understand.
Here is the file :
config.log

from pluto.

bondhugula avatar bondhugula commented on June 15, 2024

It looks like you don't have the right libraries at the right place. From your config.log, it's looking for libLLVM-3.4svn.* in /home/tina/pfe/llvm-3.4/build/lib/.

configure:15638: gcc -o conftest -g -O2 -L/home/tina/pfe/llvm-3.4/build/lib -lrt -ldl -lpthread -lz conftest.c -lLLVM-3.4svn >&5
/usr/bin/ld: cannot find -lLLVM-3.4svn
collect2: error: ld returned 1 exit status
configure:15638: $? = 1
configure: failed program was:

What are the contents /home/tina/pfe/llvm-3.4/build/lib/? Could you also let me know the output when you run:
$ /home/tina/pfe/llvm-3.4/build/bin/llvm-config --version --cxxflags

You could just try with the stable 3.4 version from llvm.org - it will work.

from pluto.

ThinhinaneIhadadene avatar ThinhinaneIhadadene commented on June 15, 2024

The contents of /home/tina/pfe/llvm-3.4/build/lib/ :
content.txt
The results of
./home/tina/pfe/llvm-3.4/build/bin/llvm-config --version --cxxflags
is
-I/home/tina/pfe/llvm-3.4/include -I/home/tina/pfe/llvm-3.4/build/include -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wnon-virtual-dtor -O3 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
I've tried with a stable version I get the same result.

from pluto.

bondhugula avatar bondhugula commented on June 15, 2024

It's looking for the wrong library name suffix - you don't have anything libLLVM3.4svn* in your lib.

I've tried with a stable version I get the same result.

With the stable version, it's obviously not going to look for 3.4svn; so, you can't get the same result unless you did something wrong. (By the 3.4 stable version, I meant building from the sources here: http://releases.llvm.org/download.html#3.4
http://releases.llvm.org/3.4/clang-3.4.src.tar.gz, http://releases.llvm.org/3.4/llvm-3.4.src.tar.gz)

from pluto.

georgebisbas avatar georgebisbas commented on June 15, 2024

Hi Uday,

I managed to surpass the issue with FileCheck but now my new issue seems related to this one.
I could not find a solution based on the comments above.
Any help?

Attached you may find my config.log file
config.log

Thank you in advance,
George

from pluto.

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.