LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2016, 10:19 AM   #1
FrankPutnamJr
LQ Newbie
 
Registered: Sep 2016
Location: Cypress, TX
Posts: 5

Rep: Reputation: Disabled
Cool Why can I see llvm-config with "which" but not "./configure"?


when using
./configure --with-llvm=/usr/bin --with-gsl=/usr/bin --prefix=/usr/local
I get the error message
checking for perl module Text::Balanced... ok
checking for perl module Digest::MD5... ok
checking for llvm-config... no-llvm-config
configure: error: could not find llvm-config
When I
which llvm-config
I get
/usr/bin/llvm-config

QUESTION:
Why can I see llvm-config with which but not ./configure?
 
Old 09-20-2016, 04:30 PM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 2,018

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Why can I see llvm-config with "which" but not "./configure"?

Sorry, I misread the question.

Last edited by rkelsen; 09-20-2016 at 07:33 PM.
 
Old 09-20-2016, 04:53 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,688

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
./configure is looking for development libraries which appear to be missing from your install.

Most of the time it is looking for include files. Some of the time it actually attempts to compile a small file that uses the include AND links to a specific function. If either compile or link fail, you get the missing message.
 
Old 09-20-2016, 09:39 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
but i have to ask ...
WHY are you passing DEFAULT values to configure ?
the DEFAULT install is almost always "/usr/local"
the DEFAULT bin search path is "/usr/bin"

it is normally a VERY!!! good idea to read the output of
Code:
./configure --help
FIRST , then pass values that are needed
 
Old 09-21-2016, 02:57 PM   #5
FrankPutnamJr
LQ Newbie
 
Registered: Sep 2016
Location: Cypress, TX
Posts: 5

Original Poster
Rep: Reputation: Disabled
John VV,

What does it matter if I specify the defaults? That only makes the error message even more disturbing.

llvm-config was installed in /usr/bin/.
/usr/bin is in the PATH.
and I'm telling configure to look for it in /usr/bin.

What part of "usr/bin" does configure not understand?
 
Old 09-21-2016, 04:40 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
no the error is informing you that something is missing
"configure" uses the autotools m4 macros and the package config files "/usr/lib64/pkgconfig/"
and uses the presence of the header files in /usr/include

install the devel rpm's(llvm-devel.rpm) or dev deb's or the source for whatever operating system you are using

Last edited by John VV; 09-21-2016 at 04:42 PM.
 
Old 09-23-2016, 01:29 PM   #7
FrankPutnamJr
LQ Newbie
 
Registered: Sep 2016
Location: Cypress, TX
Posts: 5

Original Poster
Rep: Reputation: Disabled
Question Should libLVMSupport.a link to libLVMSupport.so?

I ran ./configure with no arguments and it found /usr/bin/llvm-config.

In the next step it couldn't find /usr/lib64/libLLVMSupport.a.

I checked /usr/lib64/ and found libLLVMSupport.so, libLLVMSupport.so.3.7, and libLLVMSupport.so.3.7.0.

Checking Yast2 I saw that package libLLVM was installed and it listed the the above 3 files.

Should libLVMSupport.a be a link to libLVMSupport.so?
 
Old 09-23-2016, 01:50 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
Should libLVMSupport.a be a link to libLVMSupport.so?
NO -- *.a libs are static and *.so are shared

what is this unknown program you are trying to build on suse , and from where did you get this unknown program ?
Also what version of suse / opensuse is it ?
 
Old 09-23-2016, 02:15 PM   #9
FrankPutnamJr
LQ Newbie
 
Registered: Sep 2016
Location: Cypress, TX
Posts: 5

Original Poster
Rep: Reputation: Disabled
The program, called Trick, allows you to run simulations. It is from NASA. I am running openSUSE Leap 42.1 inside of VirtualBox version 5.1.6r110634 (Qt5.5.1). My hardware is an HP Pavillion laptop with AMD A8 processor with virtualization enabled.
 
Old 09-23-2016, 02:54 PM   #10
FrankPutnamJr
LQ Newbie
 
Registered: Sep 2016
Location: Cypress, TX
Posts: 5

Original Poster
Rep: Reputation: Disabled
Smile configure script successfully completed

I modified the configure script file by changing libLLVMSupport.a to libLLVMSupport.so and it reported "configure script successfully completed".
 
Old 09-23-2016, 03:05 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
from the install INSTRUCTIONS
https://github.com/nasa/Trick/wiki/Installing-Trick

install llvm-static!!!!!!
and Clang and openMotiff

i use a lot of NASA/JPL/USGS code and the software can sometimes be a pain to compile without errors

suse uses a different version of motif this may or may not cause a issue
 
Old 09-23-2016, 08:26 PM   #12
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,688

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
Quote:
Originally Posted by FrankPutnamJr View Post
I modified the configure script file by changing libLLVMSupport.a to libLLVMSupport.so and it reported "configure script successfully completed".
It won't necessarily work.

The problem is the symbols exported by the shared library - they don't have to match what is required. Second, the linking operation itself may be expecting the object files - and shared libraries don't have any. Third, the modules the program calls for may not even be in the shared libraries or have additional operating modes (such as debugging).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] X: "loading extension glx" "no screens found" "fatal server error" (w/ nvidia driver) Geremia Slackware 7 12-29-2014 11:00 AM
".config" and ".kde" folders are being created under root directory (Slack Current) piratesmack Slackware 8 03-12-2011 11:06 PM
"dpkg error in --configure" in most all (508) programs after "apt-get dist-upgrade" fluffymuffins Debian 3 08-09-2010 03:47 AM
Bios config: "ahci" or "standard ide" for a sata drive ? Danodare Slackware 1 11-05-2006 12:31 AM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM


All times are GMT -5. The time now is 01:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration