LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-26-2011, 08:30 AM   #1
bhupinderjitbawa
LQ Newbie
 
Registered: Apr 2011
Posts: 8

Rep: Reputation: 0
Exclamation ERROR :MPC make error libgmp.la is not a valid libtool


I am trying to make mpc .
i first configured using following

Code:
./configure --prefix=/usr  --with-mpfr=$LFS/gcc-build/gcc-4.5.2/mpfr  --with-gmp-lib=$LFS/gcc-build/gcc-4.5.2/gmp/.libs
then i make using
Code:
Code:
root@bhupinder:/mnt/lfs/gcc-build/gcc-4.5.2/mpc# make
make  all-recursive
make[1]: Entering directory `/mnt/lfs/gcc-build/gcc-4.5.2/mpc'
Making all in src
make[2]: Entering directory `/mnt/lfs/gcc-build/gcc-4.5.2/mpc/src'

..
.
.
libtool: link: ranlib .libs/libmpc.a
/bin/sed: can't read /usr/local/lib/libgmp.la: No such file or directory
libtool: link: `/usr/local/lib/libgmp.la' is not a valid libtool archive
make[2]: *** [libmpc.la] Error 1
make[2]: Leaving directory `/mnt/lfs/gcc-build/gcc-4.5.2/mpc/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc-4.5.2/mpc'
make: *** [all] Error 2
root@bhupinder:/mnt/lfs/gcc-build/gcc-4.5.2/mpc#
googled a lot but not able to find solution.
 
Old 05-26-2011, 09:54 AM   #2
bhupinderjitbawa
LQ Newbie
 
Registered: Apr 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs down Oooops any solution??????????

ooops ok can anybody suggest me what should i do..?
i have posted in other forums too.
Either nobody has knowledge about it(which is impossible) or no one interested in replying.
i have googled again till no solution..can anyone guide me where can i find help about this?"??
 
Old 05-26-2011, 12:02 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
1) Answering your own thread with a "post # 2" will mark the thread as answered.
Please don't do that. Use the 'Edit' button instead (When adding extra comments.)

2) If this is about LFS, 'Linux From Scratch' : Use the report button
to ask a mod to get the thread moved to the 'LFS Forum'.


3) LFS : Don't know what you are doing. Everything looks wrong.
The version of LFS and the 'Book chapter' must be specified by every question.
http://www.linuxfromscratch.org/lfs/...skforhelp.html
>>> § 1.5.1 !
 
Old 12-31-2014, 02:33 PM   #4
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207

Rep: Reputation: 19
/bin/sed: can't read /usr/local/lib/libgmp.la: No such file or directory

a gnu autotools (automake libtool autoconf) project creates Makefile make uses. of those, only libtool is run during make.

when libtool is invoked as GCC (which it is) to make .o, it makes the .la - obviously this either didn't happen , or libgmp did not install in /usr/local , or libgmp did not install .la files (but new libgmp does i'm sure)

when libtool is invoked as GCC (which it is) to make .so, it uses the info in .la to make .so

you cannot whilly nilly edit the .la to change how .so are made because when you make(1) again, they are clobbered. setting envronment there's no sure way to alter with confidence GCC="libtool gcc ..." either (in any given build).

you can copy the .la file to /usr/local if you can find it. it must be from a build that built gmp on the same OS you are using
 
Old 11-23-2015, 04:43 PM   #5
Minok
LQ Newbie
 
Registered: Nov 2015
Posts: 1

Rep: Reputation: Disabled
Angry Something is wonky about MPC's cofigure script...

It appears the Makefile that MPC's ./configure script produces is broken, because it isn't honoring what you tell it via --prefix.

In my case, after having successfully made my two prerequisite components, I'm tilling the MPC configure to use that prefix location, but despite that the created Makefile insists on looking in '/usr/local/lib/' for the libgmp files.

Not all of us want to install these things in the system locations, and we should be able to use the process to build these libraries on our 'off to the side' directories.... and you can, except for MPC 1.0.3 at least. Maybe newer versions fixed this bug. GRRR.
 
  


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
ERROR :MPC make error libgmp.la is not a valid libtool bhupinderjitbawa Linux - General 1 05-26-2011 11:58 AM
libtool error xushi Slackware 4 01-27-2009 02:28 PM
Slackware 10.1 - libgmp error zutt Slackware 1 02-12-2006 05:10 PM
FreeBSD PHP5 ports error - libphp5.la is not a valid libtool archive BizHat.com *BSD 2 08-18-2005 10:27 AM
make error "libtool: link: cannot find the library `' " jdolluc Linux - Software 2 10-15-2003 09:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:27 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
Open Source Consulting | Domain Registration