Re: [lfs-support] GCC-4.7.1-Pass 2 MPC configure fails
On Fri, Sep 21, 2012 at 1:08 PM, Ken Moffat zarniwh...@ntlworld.com wrote: On Wed, Aug 08, 2012 at 07:01:02PM +0100, Richard Melville wrote: I realise that I'm building the dev edition, but my host is Linux Mint Cinnamon 64 bit and the host requirements appeared to fit better. Also it looked as though the dev edition was at a reasonably stable stage. I'm building a 64 bit edition on a 64 bit host (OS and hardware). The failure is:- checking for MPFR... no configure: error: libmpfr not found or uses a different ABI (including static vs shared). make[1]: *** [configure-mpc] Error 1 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' make: *** [all] Error 2 Everything has built fine up to this stage and the sanity checks were OK. MPFR and GMP have compiled OK with the libraries installed in .libs. I've even checked to make sure that the MPFR libraries were 64 bit, and now I've run out of ideas. I'd be really grateful for any help. I've tried rebuilding GCC four times now with the same result. Richard Richard - since this is still bugging you, I've come back to your original post. I notice one thing which nobody has mentioned: *when* you get this error, look at the *appropriate* config.log file [ gcc, like binutils, runs configure in multiple directories]. Even if this error happens/happened when running 'make', the error was within one of the configure scripts - gcc builds everything several times, and each time it configures the directories within it. Whenever configure fails (I usually point this out for cannot create executables messages), the key to understanding the problem is to find the appropriate config.log file, open that up in 'view' (or 'less'), search for 'a different ABI', and then look for the error messages in the lines before that. Probably, an error from gcc or ld. Once you have the error message, there are two possibilities: 1. it will indicate an error you made, and perhaps be blindingly obvious (I've had that when I was building for multiple archs and accidentally fell through to passing some ppc-only options in my CFLAGS :) - if so, please give the list a brief summary of what went wrong so that the next person who eventually does that can fix it. or, more likely: 2. Something new, which needs to be addressed. The ABI in the message reminds me of a past problem with gmp where, if CFLAGS were set, a processor capable of running 64-bit code would default to building 64-bit even though the rest of hte build was 32-bit. But, the variability in your results suggests this is not something easy like that. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce Bruce - Can you help me with what I need to do to get gcc to recognize the mpfr source code in the root directory of gcc, cause its looking for the mpfr library, and not building the source code. gmp and mpc are building now. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC-4.7.1-Pass 2 MPC configure fails
On Wed, Sep 19, 2012 at 9:11 PM, Bruce Dubbs bruce.du...@gmail.com wrote: Whitequill Riclo wrote: On Wed, Sep 19, 2012 at 9:35 AM, Feuerbacher, Alan afeuerbac...@allegromicro.com wrote: William Harrington wrote: Sometimes you can't build mpfr mpc and gmp within the gcc source tree for some targets. We found that out in CLFS. That's we we don't build gmp mpc and mpfr within the tree. Works okay for x86 and x86_64, however, when you start building for other targets, it becomes hairy. You may want to try to build gmp mpfr and mpc separately. I've been mostly quietly keeping up with this question on several lists: is it better to build those programs in the source tree or separately? There's a discussion somewhere (on a gcc list?) that comes down strongly on the side of building them in the source tree. It even asks why anyone would want to do it differently. Yet the programs contain instructions for tuning, which requires them to be built separately. During the 1 1/2 years I've been playing around with compiling gcc and all of the LFS programs, I've experimented with building separately many times. No problem building them, but gcc usually fails to find at least one of them. Now, I'm a real newbie when it comes to all this, but if anyone knows why gcc can't seem to find the programs, I'd sure like to know. I'm trying to understand all the ins and outs of everything covered by LFS and a lot more besides. Alan I've already succeeded at building gmp, and mpc with in the gcc build directory, I need to make mpfr, what do you suggest I do? Is there a way to just build the following code block; Needs #include mpfr.h 1. | int 2. | main () 3. | { 4. | mpfr_t x; mpfr_init(x) ; mpfr_clear(x); 5. | 6. | ; 7. | return 0; 8. | } and then re-run make? After lfs is completed, there are the files /usr/lib/libmpfr.{a,so). How about: gcc -o xyz xyz.c -lmpfr Works for me. $ ldd xyz linux-gate.so.1 (0xe000) libmpfr.so.4 = /usr/lib/libmpfr.so.4 (0xb7735000) libc.so.6 = /lib/libc.so.6 (0xb7584000) libgmp.so.10 = /usr/lib/libgmp.so.10 (0xb751f000) /lib/ld-linux.so.2 (0xb77a7000) -- Bruce I think I know what I'm doing wrong finally, all the command flags I'm using to find mpfr are to find the mpfr library/header file, rather then find the source to build the library. What is the appropriate flag to tell gcc the source path rather then the library path? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC-4.7.1-Pass 2 MPC configure fails
On Wed, Sep 19, 2012 at 9:35 AM, Feuerbacher, Alan afeuerbac...@allegromicro.com wrote: William Harrington wrote: Sometimes you can't build mpfr mpc and gmp within the gcc source tree for some targets. We found that out in CLFS. That's we we don't build gmp mpc and mpfr within the tree. Works okay for x86 and x86_64, however, when you start building for other targets, it becomes hairy. You may want to try to build gmp mpfr and mpc separately. I've been mostly quietly keeping up with this question on several lists: is it better to build those programs in the source tree or separately? There's a discussion somewhere (on a gcc list?) that comes down strongly on the side of building them in the source tree. It even asks why anyone would want to do it differently. Yet the programs contain instructions for tuning, which requires them to be built separately. During the 1 1/2 years I've been playing around with compiling gcc and all of the LFS programs, I've experimented with building separately many times. No problem building them, but gcc usually fails to find at least one of them. Now, I'm a real newbie when it comes to all this, but if anyone knows why gcc can't seem to find the programs, I'd sure like to know. I'm trying to understand all the ins and outs of everything covered by LFS and a lot more besides. Alan I've already succeeded at building gmp, and mpc with in the gcc build directory, I need to make mpfr, what do you suggest I do? Is there a way to just build the following code block; 1. | int 2. | main () 3. | { 4. | mpfr_t x; mpfr_init(x) ; mpfr_clear(x); 5. | 6. | ; 7. | return 0; 8. | } and then re-run make? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC-4.7.1-Pass 2 MPC configure fails
On Wed, Sep 12, 2012 at 5:19 AM, Richard Melville richard.melvill...@googlemail.com wrote: We won't criticize. It's your system. However, LFS is not designed to run with cygwin. I would be very suprised if our instructions worked in that environment. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page I'm not using cygwin, I'm trying to do system based on msys/mingw64. all I'm having problems with is that it won't find MPFR checking for MPFR... no configure: error: libmpfr not found or uses a different ABI. make[1] *** [configure-mpc] error 1 make[1] Leaving `/home/lfs/build.gcc2' make: *** [all] Error 2 This shouldn't be a magical problem relating to what I'm doing I'd think. There are some good tips here:- http://www.mailinglistarchive.com/html/lfs-support@linuxfromscratch.org/2012-09/msg00180.html Richard It appears to be looking for 'mpfr.h', which of course has not been built yet. http://pastebin.com/UZWSpTci This bugs me. I checked the link, and mpfr is never made so there isn't anything in the build directory, and the path is correct and goes to mpfr 3.0.1 source code. I tried --with-mpfr-lib instead of, --with-mpfr-include, which didn't do anything different; and I'm not sure how to build conftest on its own either. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC-4.7.1-Pass 2 MPC configure fails
On Sun, Aug 12, 2012 at 12:37 PM, Bruce Dubbs bruce.du...@gmail.com wrote: Whitequill Riclo wrote: On Thu, Aug 9, 2012 at 4:38 PM, Bruce Dubbs bruce.du...@gmail.com wrote: Whitequill Riclo wrote: I've been looking for this for a very long time, I have this problem too! and I've had it for months, and months... I can't figure it out. Which problem? We need your specific details in order to help. Also the output from the Host System Requirements script is often the right place to start. I'm trying to cross compile... well its not even gotten that far. it just won't find mpfr, though I've done everything I can think of. http://pastebin.com/hsgiNcvB and please don't criticize what I'm doing. I've gotten a lot of that. We won't criticize. It's your system. However, LFS is not designed to run with cygwin. I would be very suprised if our instructions worked in that environment. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page I'm not using cygwin, I'm trying to do system based on msys/mingw64. all I'm having problems with is that it won't find MPFR checking for MPFR... no configure: error: libmpfr not found or uses a different ABI. make[1] *** [configure-mpc] error 1 make[1] Leaving `/home/lfs/build.gcc2' make: *** [all] Error 2 This shouldn't be a magical problem relating to what I'm doing I'd think. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC-4.7.1-Pass 2 MPC configure fails
On Thu, Aug 9, 2012 at 4:38 PM, Bruce Dubbs bruce.du...@gmail.com wrote: Whitequill Riclo wrote: I've been looking for this for a very long time, I have this problem too! and I've had it for months, and months... I can't figure it out. Which problem? We need your specific details in order to help. Also the output from the Host System Requirements script is often the right place to start. -- Bruce I'm trying to cross compile... well its not even gotten that far. it just won't find mpfr, though I've done everything I can think of. http://pastebin.com/hsgiNcvB and please don't criticize what I'm doing. I've gotten a lot of that. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC-4.7.1-Pass 2 MPC configure fails
On Sun, Aug 12, 2012 at 3:11 AM, Whitequill Riclo whitequill...@gmail.comwrote: On Thu, Aug 9, 2012 at 4:38 PM, Bruce Dubbs bruce.du...@gmail.com wrote: Whitequill Riclo wrote: I've been looking for this for a very long time, I have this problem too! and I've had it for months, and months... I can't figure it out. Which problem? We need your specific details in order to help. Also the output from the Host System Requirements script is often the right place to start. -- Bruce I'm trying to cross compile... well its not even gotten that far. it just won't find mpfr, though I've done everything I can think of. http://pastebin.com/hsgiNcvB and please don't criticize what I'm doing. I've gotten a lot of that. my initial command is: $LFS_TGT= x86_64-w64-mingw32-gcc CC=$LFS_TGT -B/tools/lib/ AR=/w-environment/bin/$LFS_TGT-ar RANLIB=/w-envronment/bin/$LFS_TGT-ranlib ..source/gcc/configure --prefix=/w-environment/ --with-local-prefix=/w-environment/ --enable-shared --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-libgomp --without-ppl --without-cloog --build=$MACHTYPE --host=$LFS_TGT --with-mpfr-include=/mnt/Share/mpfr-3.0.1 --disable-bootstrap --disable-nls -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC-4.7.1-Pass 2 MPC configure fails
On Sun, Aug 12, 2012 at 3:27 AM, Whitequill Riclo whitequill...@gmail.comwrote: On Sun, Aug 12, 2012 at 3:11 AM, Whitequill Riclo whitequill...@gmail.com wrote: On Thu, Aug 9, 2012 at 4:38 PM, Bruce Dubbs bruce.du...@gmail.comwrote: Whitequill Riclo wrote: I've been looking for this for a very long time, I have this problem too! and I've had it for months, and months... I can't figure it out. Which problem? We need your specific details in order to help. Also the output from the Host System Requirements script is often the right place to start. -- Bruce I'm trying to cross compile... well its not even gotten that far. it just won't find mpfr, though I've done everything I can think of. http://pastebin.com/hsgiNcvB and please don't criticize what I'm doing. I've gotten a lot of that. my initial command is: $LFS_TGT= x86_64-w64-mingw32-gcc CC=$LFS_TGT -B/tools/lib/ AR=/w-environment/bin/$LFS_TGT-ar RANLIB=/w-envronment/bin/$LFS_TGT-ranlib ..source/gcc/configure --prefix=/w-environment/ --with-local-prefix=/w-environment/ --enable-shared --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-libgomp --without-ppl --without-cloog --build=$MACHTYPE --host=$LFS_TGT --with-mpfr-include=/mnt/Share/mpfr-3.0.1 --disable-bootstrap --disable-nls gcc version 4.7.0 20110505 (experimental) -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page