Problems in LFS 7.0 chptr 5.9 Binutils 2.21.1a - Pass 2
I have work exclusively from this book and have been doing fine up to this point. I have searched the archives and not found an answer to this question. When I go to build the configure, I am using this command from the book: CC=$LFS_TGT-gcc -B/tools/lib/ \ AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \ ../binutils-2.21.1/configure --prefix=/tools \ --disable-nls --with-lib-path=/tools/lib I am getting this error: configure: error: cannot run C compiled programs. If you mean to cross configure, use '--host'. Does any one have any insight into how I can fix this? I am working on a 64-bit system. Thank you, Danny Vukobratovich Systems Administrator Marian, Inc. www.marianinc.com -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems in LFS 7.0 chptr 5.9 Binutils 2.21.1a - Pass 2
Danny Vukobratovich wrote: I have work exclusively from this book and have been doing fine up to this point. I have searched the archives and not found an answer to this question. When I go to build the configure, I am using this command from the book: CC=$LFS_TGT-gcc -B/tools/lib/ \ AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \ ../binutils-2.21.1/configure --prefix=/tools \ --disable-nls --with-lib-path=/tools/lib I am getting this error: configure: error: cannot run C compiled programs. If you mean to cross configure, use '--host'. Does any one have any insight into how I can fix this? I am working on a 64-bit system. 1. What is the output of: echo $LFS_TGT 2. What is the output of the script in Section vii? -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems in LFS 7.0 chptr 5.9 Binutils 2.21.1a - Pass 2
On Fri, 04 Nov 2011 13:44:19 -0400 (EDT) Danny Vukobratovich dvukobratov...@marianinc.com wrote: I am getting this error: configure: error: cannot run C compiled programs. If you mean to cross configure, use '--host'. Does any one have any insight into how I can fix this? I am working on a 64-bit system. Thank you, Your compiler is borked. Look through binutils-build/config.log. It contains a log of everything the build system did, including the detailed compiler error. You are looking for something like this (this is a sample from xpdf): [...] configure:4048: checking for DOS (with DJGPP) configure:4064: gcc -std=gnu99 -c -g -O2 conftest.c 5 conftest.c: In function 'main': conftest.c:14: error: '__DJGPP__' undeclared (first use in this function) conftest.c:14: error: (Each undeclared identifier is reported only once conftest.c:14: error: for each function it appears in.) configure:4064: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME | #define PACKAGE_TARNAME | #define PACKAGE_VERSION | #define PACKAGE_STRING | #define PACKAGE_BUGREPORT | #define PACKAGE_URL | #define SYSTEM_XPDFRC /usr/local/etc/xpdfrc | /* end confdefs.h. */ | | int | main () | { | __DJGPP__ | ; | return 0; | } configure:4071: result: no [...] -- Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems in LFS 7.0 chptr 5.9 Binutils 2.21.1a - Pass 2
On Fri, Nov 04, 2011 at 01:44:19PM -0400, Danny Vukobratovich wrote: I have work exclusively from this book and have been doing fine up to this point. I have searched the archives and not found an answer to this question. When I go to build the configure, I am using this command from the book: CC=$LFS_TGT-gcc -B/tools/lib/ \ AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \ ../binutils-2.21.1/configure --prefix=/tools \ --disable-nls --with-lib-path=/tools/lib I am getting this error: configure: error: cannot run C compiled programs. If you mean to cross configure, use '--host'. Does any one have any insight into how I can fix this? I am working on a 64-bit system. Thank you, pedantic mode: on No, but I have insight into how you can get a more useful error message ;-) pedantic mode: off In binutils (and other large packages such as gcc, perhaps glibc) there are configure scripts in several subdirectories. Each one, when it is run, produces a file 'config.log' I think these are probably in the build tree (binutils-build), not the source tree. So, find the newest config.log and then look at it. Search for the error message 'cannot run C compiled programs'. Somewhere a little above that you should be able to see a program fragment, which configure has then attempted to compile. There will be an error message from gcc or ld. When you find that error text, google for it (much quicker than waiting for list replies!) - hopefully you may find a similar error in the archives of lfs-support. If not, please post the error message here. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems in LFS 7.0 chptr 5.9 Binutils 2.21.1a - Pass 2
Ok, sorry to bother everyone. I had to scratch my build. I founds that I was using the wrong source for patches. I was using http://www.linuxfromscratch.org/patches/lfs/development instead of http://www.linuxfromscratch.org/patches/lfs/7.0 I start this build again from the beginning. If I have further problems, I'll be back =D Danny Vukobratovich System Administrator - Original Message - From: Ken Moffat k...@linuxfromscratch.org To: LFS Support List lfs-support@linuxfromscratch.org Sent: Friday, November 4, 2011 2:36:50 PM Subject: Re: Problems in LFS 7.0 chptr 5.9 Binutils 2.21.1a - Pass 2 On Fri, Nov 04, 2011 at 01:44:19PM -0400, Danny Vukobratovich wrote: I have work exclusively from this book and have been doing fine up to this point. I have searched the archives and not found an answer to this question. When I go to build the configure, I am using this command from the book: CC=$LFS_TGT-gcc -B/tools/lib/ \ AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \ ../binutils-2.21.1/configure --prefix=/tools \ --disable-nls --with-lib-path=/tools/lib I am getting this error: configure: error: cannot run C compiled programs. If you mean to cross configure, use '--host'. Does any one have any insight into how I can fix this? I am working on a 64-bit system. Thank you, pedantic mode: on No, but I have insight into how you can get a more useful error message ;-) pedantic mode: off In binutils (and other large packages such as gcc, perhaps glibc) there are configure scripts in several subdirectories. Each one, when it is run, produces a file 'config.log' I think these are probably in the build tree (binutils-build), not the source tree. So, find the newest config.log and then look at it. Search for the error message 'cannot run C compiled programs'. Somewhere a little above that you should be able to see a program fragment, which configure has then attempted to compile. There will be an error message from gcc or ld. When you find that error text, google for it (much quicker than waiting for list replies!) - hopefully you may find a similar error in the archives of lfs-support. If not, please post the error message here. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- 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