Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I install glibc-2.3.4 in chapter 6.11,there is an error :checking for suffix of object files... configure: error: cannot compute suffix of object files:cannot compile
See 'config.log' for more details.
Hi,
I get the same error(checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
) above after running the command below:
BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
../glibc-2.6.1/configure --prefix=/usr \
--libexecdir=/usr/lib/glibc --host=${CLFS_TARGET} --build=${CLFS_HOST} \
--disable-profile --enable-add-ons --with-tls --enable-kernel=2.6.0 \
--with-__thread --with-binutils=${CLFS}/cross-tools/bin \
--with-headers=${CLFS}/usr/include --cache-file=config.cache
But I don't know how must I set LD_LIBRARY_PATH or LD_LIBRARYN32_PATH and fix
Can you say according to what clearly?
Thanks in advance.
When I install glibc-2.3.4 in chapter 6.11,there is an error :checking for suffix of object files... configure: error: cannot compute suffix of object files:cannot compile
See 'config.log' for more details.
Why?And how can I continue.thanks!
I encountered this problem on my RHEL 5.5 Server, the solution to which is rather trickey: first, you should install gmp by ./configure && make && make install; second, install mpfr by ./configure --with-gmp=/usr/local && make && make install; third, it is vital to move any .so files pertaining to gmp or mpfr from /usr/local to another place while leaving .a files untouched; fourth, you can now go into the gcc folder and do make clean && ./configure --prefix=/usr --with-gmp=/usr/local --with-mpfr=/usr/local && make -j 4 && make install; last, restore those .so files you moved.
I encountered this problem on my RHEL 5.5 Server, the solution to which is rather trickey: first, you should install gmp by ./configure && make && make install; second, install mpfr by ./configure --with-gmp=/usr/local && make && make install; third, it is vital to move any .so files pertaining to gmp or mpfr from /usr/local to another place while leaving .a files untouched; fourth, you can now go into the gcc folder and do make clean && ./configure --prefix=/usr --with-gmp=/usr/local --with-mpfr=/usr/local && make -j 4 && make install; last, restore those .so files you moved.
Thanks to cjrcl for this post - it solved the problem I was having compiling gcc-4.5.1 on
Fedora 13, running on a Mac under VMWare. I note that the latest gcc now needs an
additional library mpc, so I just continued the system mentioned above with configure and
--with-mpc=/usr/local and everything worked brilliantly.
Thanks again.
works for gcc 4.3.6 on itanium ia64 novell sles 10
thanks for the hint. moved the *.so files out of the directories where I have them installed to a temporary location for
/usr/local/gmp-5.0.1
/usr/local/mpfr-3.0.0
/usr/local/mpc-0.8.2
started fresh with ./configure, then make all and it built gcc 4.3.6.
this was on a server running Novell Linux Enterprise Server (SLES) version 10 for Itanium (ia64) that originally came with gcc 4.1.2. I had in the past built gcc-4.2.4 and I used 4.2.4 to build 4.3.6 successfully following the above.
I needed a 2 steps compiling.
I moved mpfr, gmp, and mpc shared librairies from /usr/local/lib. Then, running make led to "missing gmp lib". So, I moved back the libraries and ran make once again(without any make clean between), and it succeeded.
I came across this thread when investigating a failing install process for GCC. Lakeat had a good tip, if vague. You should add to your LD_LIBRARY_PATH the path to your installations for MPFR, MPC, and GMP. This works regardless of whether you install in your home directory or not.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.