Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

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

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

./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
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/ No such file or directory
libtool: link: `/usr/local/lib/' is not a valid libtool archive
make[2]: *** [] 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
googled a lot but not able to find solution.
Old 05-26-2011, 09:54 AM   #2
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
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
>>> 1.5.1 !
Old 12-31-2014, 02:33 PM   #4
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/ 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
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.


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 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 - is not a valid libtool archive *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 > Forums > Linux Forums > Linux - Software

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

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