LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ERROR :MPC make error libgmp.la is not a valid libtool (https://www.linuxquestions.org/questions/linux-software-2/error-mpc-make-error-libgmp-la-is-not-a-valid-libtool-882823/)

bhupinderjitbawa 05-26-2011 08:30 AM

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.

bhupinderjitbawa 05-26-2011 09:54 AM

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?"??

knudfl 05-26-2011 12:02 PM

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 !

debguy 12-31-2014 02:33 PM

/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

Minok 11-23-2015 04:43 PM

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.


All times are GMT -5. The time now is 06:04 AM.